speckl/compiler/test-output
Marcus (agent-cos) 1cbad9d756 fix(compiler): translate Map/Set expression patterns to JavaScript (#18)
- 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)
2026-05-09 22:07:32 -07:00
..
RetryHandler.prov.jsonld fix(compiler): translate Map/Set expression patterns to JavaScript (#18) 2026-05-09 22:07:32 -07:00
RetryHandler.specbom.cdx.json fix(compiler): translate Map/Set expression patterns to JavaScript (#18) 2026-05-09 22:07:32 -07:00
RetryHandler.specbom.spdx.json fix(compiler): translate Map/Set expression patterns to JavaScript (#18) 2026-05-09 22:07:32 -07:00