@ball-lang/compiler 1.24.0 → 1.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"preamble.d.ts","sourceRoot":"","sources":["../src/preamble.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,QA4gD/B,CAAC"}
1
+ {"version":3,"file":"preamble.d.ts","sourceRoot":"","sources":["../src/preamble.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AACH,eAAO,MAAM,mBAAmB,QAshD/B,CAAC"}
package/dist/preamble.js CHANGED
@@ -646,6 +646,16 @@ function hasMetadata(obj: any): boolean { return _has(obj, 'metadata'); }
646
646
  function hasBody(obj: any): boolean { return _has(obj, 'body'); }
647
647
  function hasInput(obj: any): boolean { return _has(obj, 'input'); }
648
648
  function hasDescriptor(obj: any): boolean { return _has(obj, 'descriptor'); }
649
+ // ModuleImport.source oneof (issue #364 — cli_core.dart's _importSource
650
+ // reads these via hasHttp()/hasFile()/hasGit()/hasRegistry()/hasInline()
651
+ // instead of whichSource(), since the self-hosted engine represents proto
652
+ // oneof-case enums as maps and can't self-host a whichSource() ==
653
+ // ModuleImport_Source.x comparison — see cli_core.dart's _importSource doc).
654
+ function hasHttp(obj: any): boolean { return _has(obj, 'http'); }
655
+ function hasFile(obj: any): boolean { return _has(obj, 'file'); }
656
+ function hasGit(obj: any): boolean { return _has(obj, 'git'); }
657
+ function hasRegistry(obj: any): boolean { return _has(obj, 'registry'); }
658
+ function hasInline(obj: any): boolean { return _has(obj, 'inline'); }
649
659
  function hasStringValue(obj: any): boolean { return _has(obj, 'stringValue'); }
650
660
  function hasBoolValue(obj: any): boolean { return _has(obj, 'boolValue'); }
651
661
  function hasNumberValue(obj: any): boolean { return _has(obj, 'numberValue'); }
@@ -1 +1 @@
1
- {"version":3,"file":"preamble.js","sourceRoot":"","sources":["../src/preamble.ts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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAshD5C,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ball-lang/compiler",
3
- "version": "1.24.0",
3
+ "version": "1.26.0",
4
4
  "description": "Ball → TypeScript compiler. Consumes a Ball protobuf Program and emits idiomatic TypeScript via ts-morph. The canonical TS compiler for Ball — lives in TS land so TS syntax knowledge doesn't leak into other languages.",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
package/src/preamble.ts CHANGED
@@ -646,6 +646,16 @@ function hasMetadata(obj: any): boolean { return _has(obj, 'metadata'); }
646
646
  function hasBody(obj: any): boolean { return _has(obj, 'body'); }
647
647
  function hasInput(obj: any): boolean { return _has(obj, 'input'); }
648
648
  function hasDescriptor(obj: any): boolean { return _has(obj, 'descriptor'); }
649
+ // ModuleImport.source oneof (issue #364 — cli_core.dart's _importSource
650
+ // reads these via hasHttp()/hasFile()/hasGit()/hasRegistry()/hasInline()
651
+ // instead of whichSource(), since the self-hosted engine represents proto
652
+ // oneof-case enums as maps and can't self-host a whichSource() ==
653
+ // ModuleImport_Source.x comparison — see cli_core.dart's _importSource doc).
654
+ function hasHttp(obj: any): boolean { return _has(obj, 'http'); }
655
+ function hasFile(obj: any): boolean { return _has(obj, 'file'); }
656
+ function hasGit(obj: any): boolean { return _has(obj, 'git'); }
657
+ function hasRegistry(obj: any): boolean { return _has(obj, 'registry'); }
658
+ function hasInline(obj: any): boolean { return _has(obj, 'inline'); }
649
659
  function hasStringValue(obj: any): boolean { return _has(obj, 'stringValue'); }
650
660
  function hasBoolValue(obj: any): boolean { return _has(obj, 'boolValue'); }
651
661
  function hasNumberValue(obj: any): boolean { return _has(obj, 'numberValue'); }