- x in someSet → someSet.has(x) - x in someMap.keys → someMap.has(x) - x notIn someMap.keys → !someMap.has(x) - m[k] → m.get(k) for Map state variables - s.size() → s.size (property, not method) - Track Map-typed state variables via mapVarNames for accurate .get() translation - Thread mapVarNames through emitAction and rewriteExpr All 41 tests passing. TigerBeetleLedger now generates correct TypeScript with .get() for Map access and .has() for Set membership. Part of M0.1: Fix TS generator bugs (speckl#18)
26 lines
No EOL
576 B
JSON
26 lines
No EOL
576 B
JSON
{
|
|
"@context": [
|
|
"https://spdx.github.io/spdx-v3/spdx-context.jsonld",
|
|
{
|
|
"speckl": "https://speckl.scoble.me/ns/v0.2#"
|
|
}
|
|
],
|
|
"@type": "spdx:Document",
|
|
"spdx": {
|
|
"@id": "spdx:TigerBeetleLedger",
|
|
"@type": "spdx:Snippet",
|
|
"name": "TigerBeetleLedger",
|
|
"spdxVersion": "3.0.1",
|
|
"dataLicense": "CC0-1.0",
|
|
"creationInfo": {
|
|
"created": "2026-05-10T05:07:04.787Z",
|
|
"createdBy": [
|
|
"Organization: Speckl",
|
|
"tool: speckl-compile-0.2.0"
|
|
]
|
|
}
|
|
},
|
|
"builtBy": [],
|
|
"relationships": [],
|
|
"elements": []
|
|
} |