- 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)
21 lines
No EOL
508 B
Text
21 lines
No EOL
508 B
Text
{
|
|
"@context": {
|
|
"prov": "http://www.w3.org/ns/prov#",
|
|
"speckl": "https://speckl.scoble.me/ns/v0.2#",
|
|
"rdfs": "http://www.w3.org/2000/01/rdf-schema#"
|
|
},
|
|
"@graph": [
|
|
{
|
|
"@type": "prov:Entity",
|
|
"@id": "speck:ToggleSwitch",
|
|
"prov:qualifiedGeneration": {
|
|
"@type": "prov:Generation",
|
|
"prov:activity": {
|
|
"@type": "prov:Activity",
|
|
"prov:startTime": "2026-05-10T05:04:07.209Z"
|
|
}
|
|
},
|
|
"rdfs:label": "ToggleSwitch"
|
|
}
|
|
]
|
|
} |