@flock/wirespec 0.20.0-RC.13 → 0.20.0-RC.15

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@flock/wirespec",
3
- "version": "0.20.0-RC.13",
3
+ "version": "0.20.0-RC.15",
4
4
  "main": "wirespec-src-plugin-npm.mjs",
5
5
  "types": "wirespec-src-plugin-npm.d.mts",
6
6
  "devDependencies": {
@@ -326,6 +326,7 @@ initMetadataForObject(Number_1, 'Number');
326
326
  initMetadataForObject(Integer_0, 'Integer');
327
327
  initMetadataForObject(Underscore, 'Underscore');
328
328
  initMetadataForObject(Character, 'Character');
329
+ initMetadataForObject(WsAny, 'WsAny', VOID, VOID, [SpecificType]);
329
330
  initMetadataForInterface(PrimitiveType, 'PrimitiveType', VOID, VOID, [SpecificType]);
330
331
  initMetadataForObject(WsBoolean, 'WsBoolean', VOID, VOID, [PrimitiveType]);
331
332
  initMetadataForObject(WsBytes, 'WsBytes', VOID, VOID, [PrimitiveType]);
@@ -530,7 +531,7 @@ function HasLanguageSpec() {
530
531
  }
531
532
  function WirespecType() {
532
533
  WirespecType_instance = this;
533
- this.lo_1 = mapOf([to('Boolean', WsBoolean_instance), to('Bytes', WsBytes_instance), to('Integer', new WsInteger(Precision_P64_getInstance_0())), to('Integer32', new WsInteger(Precision_P32_getInstance_0())), to('Number', new WsNumber(Precision_P64_getInstance_0())), to('Number32', new WsNumber(Precision_P32_getInstance_0())), to('String', WsString_instance), to('Unit', WsUnit_instance)]);
534
+ this.lo_1 = mapOf([to('Any', WsAny_instance), to('Boolean', WsBoolean_instance), to('Bytes', WsBytes_instance), to('Integer', new WsInteger(Precision_P64_getInstance_0())), to('Integer32', new WsInteger(Precision_P32_getInstance_0())), to('Number', new WsNumber(Precision_P64_getInstance_0())), to('Number32', new WsNumber(Precision_P32_getInstance_0())), to('String', WsString_instance), to('Unit', WsUnit_instance)]);
534
535
  }
535
536
  protoOf(WirespecType).mo = function () {
536
537
  return this.lo_1;
@@ -4383,45 +4384,49 @@ function TypeParser$parseType$lambda_0($this_parseType) {
4383
4384
  if (tmp0_subject instanceof WsUnit) {
4384
4385
  tmp = new Unit($this$parseToken.vm(isNullable($this_parseType)));
4385
4386
  } else {
4386
- if (isInterface(tmp0_subject, TypeIdentifier)) {
4387
- tmp = new Custom($this$parseToken.vm($this_parseType.nt(previousToken)).js_1, $this$parseToken.vm(isNullable($this_parseType)));
4387
+ if (tmp0_subject instanceof WsAny) {
4388
+ tmp = new Any($this$parseToken.vm(isNullable($this_parseType)));
4388
4389
  } else {
4389
- // Inline function 'community.flock.wirespec.compiler.core.parse.raiseWrongToken' call
4390
- var this_0 = $this_parseType;
4391
- // Inline function 'arrow.core.raise.either' call
4392
- // Inline function 'arrow.core.raise.fold' call
4393
- // Inline function 'arrow.core.raise.fold' call
4394
- var raise = new DefaultRaise(false);
4395
- var tmp_0;
4396
- try {
4397
- var tmp2 = this_0.ts_1;
4398
- // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4399
- var actual = previousToken == null ? this_0.ws_1 : previousToken;
4400
- // Inline function 'kotlin.also' call
4401
- var this_1 = new WrongTokenException(tmp2, getKClass(TypeDefinitionStart), actual);
4402
- raise.vm(this_0.zs());
4403
- raise.rm(this_1);
4404
- } catch ($p) {
4405
- var tmp_1;
4406
- if ($p instanceof RaiseCancellationException) {
4407
- var e = $p;
4408
- raise.nm();
4409
- var it = raisedOrRethrow(e, raise);
4410
- tmp_1 = new Left(it);
4411
- } else {
4412
- if ($p instanceof Error) {
4413
- var e_0 = $p;
4390
+ if (isInterface(tmp0_subject, TypeIdentifier)) {
4391
+ tmp = new Custom($this$parseToken.vm($this_parseType.nt(previousToken)).js_1, $this$parseToken.vm(isNullable($this_parseType)));
4392
+ } else {
4393
+ // Inline function 'community.flock.wirespec.compiler.core.parse.raiseWrongToken' call
4394
+ var this_0 = $this_parseType;
4395
+ // Inline function 'arrow.core.raise.either' call
4396
+ // Inline function 'arrow.core.raise.fold' call
4397
+ // Inline function 'arrow.core.raise.fold' call
4398
+ var raise = new DefaultRaise(false);
4399
+ var tmp_0;
4400
+ try {
4401
+ var tmp2 = this_0.ts_1;
4402
+ // Inline function 'community.flock.wirespec.compiler.core.exceptions.Companion.invoke' call
4403
+ var actual = previousToken == null ? this_0.ws_1 : previousToken;
4404
+ // Inline function 'kotlin.also' call
4405
+ var this_1 = new WrongTokenException(tmp2, getKClass(TypeDefinitionStart), actual);
4406
+ raise.vm(this_0.zs());
4407
+ raise.rm(this_1);
4408
+ } catch ($p) {
4409
+ var tmp_1;
4410
+ if ($p instanceof RaiseCancellationException) {
4411
+ var e = $p;
4414
4412
  raise.nm();
4415
- throw nonFatalOrThrow(e_0);
4413
+ var it = raisedOrRethrow(e, raise);
4414
+ tmp_1 = new Left(it);
4416
4415
  } else {
4417
- throw $p;
4416
+ if ($p instanceof Error) {
4417
+ var e_0 = $p;
4418
+ raise.nm();
4419
+ throw nonFatalOrThrow(e_0);
4420
+ } else {
4421
+ throw $p;
4422
+ }
4418
4423
  }
4424
+ tmp_0 = tmp_1;
4419
4425
  }
4420
- tmp_0 = tmp_1;
4426
+ var tmp$ret$8 = tmp_0;
4427
+ $this$parseToken.vm(tmp$ret$8);
4428
+ tmp = throwKotlinNothingValueException();
4421
4429
  }
4422
- var tmp$ret$8 = tmp_0;
4423
- $this$parseToken.vm(tmp$ret$8);
4424
- tmp = throwKotlinNothingValueException();
4425
4430
  }
4426
4431
  }
4427
4432
  }
@@ -7600,6 +7605,25 @@ function Character_getInstance() {
7600
7605
  }
7601
7606
  function FieldIdentifier_0() {
7602
7607
  }
7608
+ function WsAny() {
7609
+ }
7610
+ protoOf(WsAny).toString = function () {
7611
+ return 'WsAny';
7612
+ };
7613
+ protoOf(WsAny).hashCode = function () {
7614
+ return 466202121;
7615
+ };
7616
+ protoOf(WsAny).equals = function (other) {
7617
+ if (this === other)
7618
+ return true;
7619
+ if (!(other instanceof WsAny))
7620
+ return false;
7621
+ return true;
7622
+ };
7623
+ var WsAny_instance;
7624
+ function WsAny_getInstance() {
7625
+ return WsAny_instance;
7626
+ }
7603
7627
  function WsBoolean() {
7604
7628
  }
7605
7629
  protoOf(WsBoolean).toString = function () {
@@ -8912,6 +8936,7 @@ Number_instance = new Number_1();
8912
8936
  Integer_instance = new Integer_0();
8913
8937
  Underscore_instance = new Underscore();
8914
8938
  Character_instance = new Character();
8939
+ WsAny_instance = new WsAny();
8915
8940
  WsBoolean_instance = new WsBoolean();
8916
8941
  WsBytes_instance = new WsBytes();
8917
8942
  WsString_instance = new WsString();