A TypeScript-like language for WebAssembly.
This report summarizes scanner evidence for AssemblyScript/assemblyscript, a WebAssembly project with 18,036 GitHub stars. SynthScan examined 125,671 lines of code across 881 source files, recording 122 pattern matches distributed across 6 syntactic categories. The legacy adjusted pattern signal is 2.3 (Low pattern signal); it is not an authorship estimate.
Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.
Use each vector to guide manual verification of the underlying findings.
Payload schema: 1.0.0 · Engine: 2.0.0 · Scoring: heuristic-density-v1 · Scan date: 2026-10-31.
Can maintainers explain intent, assumptions, and trade-offs? 72 finding(s).
Are imports declared and package/API names verified? 0 finding(s).
Are wrappers, guards, and repeated structures necessary? 77 finding(s).
Which changes need focused human review? 122 finding(s).
This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.
Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.
This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.
The scanner identified 122 distinct pattern matches across 6 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.
Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM⚡ | std/assembly/iterator.ts | 14 | // ╒═══════════════════ Iterator layout (32-bit) ══════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/iterator.ts | 19 | // ├─────────────────────────────────────────────────────────┬───┬─┤ | COMMENT |
| MEDIUM⚡ | std/assembly/iterator.ts | 21 | // └─────────────────────────────────────────────────────────┴───┴─┘ | COMMENT |
| MEDIUM⚡ | std/assembly/shared/typeinfo.ts | 3 | // ╒═══════════════════ Typeinfo interpretation ═══════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/shared/typeinfo.ts | 8 | // ╞═══════════════════════════════════════════════════════════════╡ ┐ | COMMENT |
| MEDIUM⚡ | std/assembly/shared/typeinfo.ts | 10 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 9 | // ╒═════════════╤══════════════ Colors ═══════════════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 11 | // ├─────────────┼─────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 16 | // └─────────────┴─────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 64 | // ╒═══════════════ Managed object layout (32-bit) ════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 69 | // ╞═══════════════════════════════════════════════════════════╤═══╡ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 71 | // ├───────────────────────────────────────────────────────────┴───┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 73 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 75 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/itcms.ts | 77 | // ╞>ptr═══════════════════════════════════════════════════════════╡ | COMMENT |
| MEDIUM | std/assembly/rt/common.ts | 23 | // ╒════════════ Memory manager block layout (32-bit) ═════════════╕ | COMMENT |
| MEDIUM | std/assembly/rt/common.ts | 28 | // ╞>ptr═══════════════════════════════════════════════════════════╡ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/common.ts | 45 | // ╒══════════ Garbage collector object layout (32-bit) ═══════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/common.ts | 50 | // ╞═══════════════════════════════════════════════════════════════╡ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/common.ts | 52 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/common.ts | 54 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/common.ts | 56 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/common.ts | 58 | // ╞>ptr═══════════════════════════════════════════════════════════╡ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 55 | // ╒════════════════════ Block layout (32-bit) ════════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 60 | // ╞>ptr═══════════════════════════════════════════════════════╧═╧═╡ │ ┘ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 62 | // ├───────────────────────────────────────────────────────────────┤ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 64 | // ├───────────────────────────────────────────────────────────────┤ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 66 | // ├───────────────────────────────────────────────────────────────┤ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 68 | // └───────────────────────────────────────────────────────────────┘ >= MIN SIZE | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 100 | // ╒═════════════════════ Root layout (32-bit) ════════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 105 | // ╞═══════════════════════════════════════════════════════════════╡ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 107 | // ├───────────────────────────────────────────────────────────────┤ │ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 109 | // ├───────────────────────────────────────────────────────────────┤ u32 │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 111 | // ╞═══════════════════════════════════════════════════════════════╡ usize | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 113 | // ├───────────────────────────────────────────────────────────────┤ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 115 | // ├───────────────────────────────────────────────────────────────┤ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 117 | // ╞═══════════════════════════════════════════════════════════════╡ │ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tlsf.ts | 119 | // └───────────────────────────────────────────────────────────────┘ SIZE ┘ | COMMENT |
| MEDIUM | std/assembly/rt/tlsf.ts | 11 | // ╒══════════════ Block size interpretation (32-bit) ═════════════╕ | COMMENT |
| MEDIUM | std/assembly/rt/tlsf.ts | 16 | // └───────────────────────────────────────────────┴───────╨───────┘ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 7 | // ╒═════════════╤══════════════ Colors ═══════════════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 9 | // ├─────────────┼─────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 13 | // └─────────────┴─────────────────────────────────────────────────┘ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 44 | // ╒═══════════════ Managed object layout (32-bit) ════════════════╕ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 49 | // ╞═══════════════════════════════════════════════════════════╤═══╡ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 51 | // ├───────────────────────────────────────────────────────────┴───┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 53 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 55 | // ├───────────────────────────────────────────────────────────────┤ | COMMENT |
| MEDIUM⚡ | std/assembly/rt/tcms.ts | 57 | // ╞>ptr═══════════════════════════════════════════════════════════╡ | COMMENT |
| MEDIUM | src/compiler.ts | 2613 | // (?block $continue │ │ if loops: (incrementor) ─────┘ | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | util/browser/path.js | 1 | import * as process from "./process.js"; | COMMENT |
| LOW | util/browser/process.js | 21 | // Redistribution and use in source and binary forms, with or without | COMMENT |
| LOW | tests/parser/class.ts.fixture.ts | 21 | } | COMMENT |
| LOW | tests/parser/literals.ts.fixture.ts | 121 | // ERROR 6188: "Numeric separators are not allowed here." in literals.ts(103,2+0) | COMMENT |
| LOW | tests/parser/union.ts.fixture.ts | 1 | export let a = 1; | COMMENT |
| LOW | …sts/parser/definite-assignment-assertion.ts.fixture.ts | 21 | // ERROR 1263: "Declarations with initializers cannot also have definite assignment assertions." in definite-assignment- | COMMENT |
| LOW | tests/parser/interface-errors.ts.fixture.ts | 21 | // ERROR 1176: "Interface declaration cannot have 'implements' clause." in interface-errors.ts(8,15+10) | COMMENT |
| LOW | tests/parser/numeric-separators.ts.fixture.ts | 41 | // ERROR 6189: "Multiple consecutive numeric separators are not permitted." in numeric-separators.ts(21,6+0) | COMMENT |
| LOW | tests/parser/tuple-errors.ts.fixture.ts | 1 | // ERROR 2456: "Type alias 'Loop' circularly references itself." in tuple-errors.ts(1,13+4) | COMMENT |
| LOW | tests/compiler/call-inferred.ts | 41 | COMMENT | |
| LOW | tests/compiler/features/relaxed-simd.ts | 81 | // r = i32x4.relaxed_dot_i8x16_i7x16_add_s(v, v, v); | COMMENT |
| LOW | tests/compiler/std/string.ts | 801 | // Expected: 2.98023223876953125e-8 | COMMENT |
| LOW | tests/compiler/std/math.ts | 361 | // assert(test_acosh(1.00183940730320464, 0.0606439391272710696, -0.27641335129737854, INEXACT)); | COMMENT |
| LOW | tests/compiler/std/math.ts | 501 | // assert(test_asinh(0.24297705017513252, 0.240647613714979003, 0.464605927467346191, INEXACT)); | COMMENT |
| LOW | std/assembly/iterator.ts | 1 | export abstract class Iterable<T> { | COMMENT |
| LOW | std/assembly/rt.ts | 61 | // // @ts-ignore: decorator | COMMENT |
| LOW | std/assembly/rt.ts | 81 | // // @ts-ignore: decorator | COMMENT |
| LOW | std/assembly/object.ts | 21 | } | COMMENT |
| LOW | std/assembly/util/math.ts | 661 | } else { | COMMENT |
| LOW | std/assembly/util/math.ts | 701 | let scale = reinterpret<f64>(sbits); | COMMENT |
| LOW | std/assembly/util/math.ts | 1821 | // #elif EXP_USE_TOINT_NARROW | COMMENT |
| LOW | std/assembly/rt/itcms.ts | 1 | import { BLOCK, BLOCK_OVERHEAD, OBJECT_OVERHEAD, OBJECT_MAXSIZE, TOTAL_OVERHEAD, DEBUG, TRACE, RTRACE, PROFILE } from ". | COMMENT |
| LOW | std/assembly/rt/itcms.ts | 61 | // @ts-ignore: decorator | COMMENT |
| LOW | std/assembly/rt/common.ts | 41 | @inline export const BLOCK_MAXSIZE: usize = (1 << 30) - BLOCK_OVERHEAD; | COMMENT |
| LOW | std/assembly/rt/tlsf.ts | 1 | import { AL_BITS, AL_SIZE, AL_MASK, DEBUG, BLOCK, BLOCK_OVERHEAD, BLOCK_MAXSIZE } from "./common"; | COMMENT |
| LOW | std/assembly/rt/tlsf.ts | 21 | // @ts-ignore: decorator | COMMENT |
| LOW | std/assembly/rt/tlsf.ts | 41 | // [09]: < 128K [21]: < 512M | COMMENT |
| LOW | std/assembly/rt/tlsf.ts | 61 | // │ if free: ◄ prev │ ◄─┤ usize | COMMENT |
| LOW | std/assembly/rt/tlsf.ts | 101 | // 3 2 1 | COMMENT |
| LOW | std/assembly/rt/tcms.ts | 1 | import { BLOCK, BLOCK_OVERHEAD, OBJECT_OVERHEAD, OBJECT_MAXSIZE, TOTAL_OVERHEAD, DEBUG, TRACE, RTRACE } from "./common"; | COMMENT |
| LOW | std/assembly/rt/tcms.ts | 41 | // @ts-ignore: decorator | COMMENT |
| LOW | lib/loader/tests/index.js | 241 | // assert.strictEqual(fn(2), 4); | COMMENT |
| LOW | src/module.ts | 81 | export const Noneref = binaryen._BinaryenTypeNullref(); | COMMENT |
| LOW | src/module.ts | 1401 | } | COMMENT |
| LOW | src/program.ts | 21 | // │ ├─TypedElement Base class of elements resolving to a type | COMMENT |
| LOW | src/program.ts | 2881 | // case BuiltinSymbols.Uint16Array: return Type.u16; | COMMENT |
| LOW | src/compiler.ts | 2481 | let outerFlow = this.currentFlow; | COMMENT |
| LOW | src/compiler.ts | 2601 | /** Statement to compile. */ | COMMENT |
| LOW | src/compiler.ts | 3281 | COMMENT | |
| LOW | src/bindings/js.ts | 61 | // | COMMENT |
| LOW | src/bindings/js.ts | 81 | // - Interface Types `string` will be incompatible with JavaScript `String` and | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/parser/parameter-order.ts | 8 | function optionalCannotPrecedeRequired(a?: i32, b: i32): void {} | CODE |
| LOW | tests/parser/parameter-order.ts | 11 | function optionalWithInitializerCannotPrecedeRequired(a: i32 = 1, b: i32): void {} | CODE |
| LOW | tests/parser/parameter-order.ts.fixture.ts | 4 | function optionalCannotPrecedeRequired(a?: i32, b: i32): void {} | CODE |
| LOW | tests/parser/parameter-order.ts.fixture.ts | 5 | function optionalWithInitializerCannotPrecedeRequired(a: i32 = 1, b: i32): void {} | CODE |
| LOW | tests/compiler/possibly-null.ts | 55 | export function testNotNeNullContinuation(a: Ref | null): void { | CODE |
| LOW | tests/compiler/do.ts | 63 | function testAlwaysTrueNeverBreaks(): i32 { | CODE |
| LOW | tests/compiler/while.ts | 65 | function testAlwaysTrueNeverBreaks(): i32 { | CODE |
| LOW | tests/compiler/while.ts | 179 | function testIfImplicitContinueThen(): void { | CODE |
| LOW | tests/compiler/while.ts | 195 | function testIfImplicitContinueElse(): void { | CODE |
| LOW | tests/compiler/switch.ts | 77 | function doSwitchFallThroughDefault(n: i32): i32 { | CODE |
| LOW | tests/compiler/switch.ts | 285 | function doSwitchClassInstanceWithOverload(foo: BarClass | null): i32 { | CODE |
| LOW | tests/compiler/managed-cast.ts | 46 | function testDowncastFromToNullable(animal: Animal | null): void { | CODE |
| LOW | tests/compiler/std/array.ts | 971 | function createReverseOrderedArray(size: i32): Array<i32> { | CODE |
| LOW | tests/compiler/std/array.ts | 989 | function createReverseOrderedNestedArray(size: i32): Array<Array<i32>> { | CODE |
| LOW | tests/compiler/std/array.ts | 1008 | function createReverseOrderedElementsArray(size: i32): Array<Proxy<i32>> { | CODE |
| LOW | tests/compiler/std/array.ts | 1065 | function assertStableSortedForComplexObjects(): void { | CODE |
| LOW⚡ | tests/compiler/std/array-access.ts | 5 | export function stringArrayPropertyAccess(a: string[]): i32 { | CODE |
| LOW⚡ | tests/compiler/std/array-access.ts | 13 | export function stringArrayArrayPropertyAccess(a: string[][]): i32 { | CODE |
| LOW⚡ | tests/compiler/std/array-access.ts | 17 | export function stringArrayArrayMethodCall(a: string[][]): i32 { | CODE |
| LOW | lib/loader/index.js | 291 | function attachTypedArrayFunctions(ctor, name, align) { | CODE |
| LOW | lib/loader/umd/index.js | 348 | function attachTypedArrayFunctions(ctor, name, align) { | CODE |
| LOW | src/tokenizer.ts | 380 | export function isIllegalVariableIdentifier(name: string): bool { | CODE |
| LOW | src/index-wasm.ts | 285 | export function getDiagnosticRelatedRange(diagnostic: DiagnosticMessage): Range | null { | CODE |
| LOW | src/diagnostics.ts | 87 | export function diagnosticCategoryToString(category: DiagnosticCategory): string { | CODE |
| LOW | src/diagnostics.ts | 101 | export function diagnosticCategoryToColor(category: DiagnosticCategory): string { | CODE |
| LOW | src/bindings/js.ts | 1525 | export function liftRequiresExportRuntime(type: Type): bool { | CODE |
| LOW | src/bindings/js.ts | 1556 | export function lowerRequiresExportRuntime(type: Type): bool { | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | std/assembly/string.ts | 188 | // TODO: implement full locale comparison with locales and Collator options | COMMENT |
| LOW | src/module.ts | 3811 | // TODO: implement and use String.fromCodePoints | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | src/compiler.ts | 983 | // utilize varargs stub to fill in omitted arguments | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | bin/asinit.js | 170 | "Don't forget to install dependencies before you start:", | CODE |