@danielx/civet 0.5.3 → 0.5.4

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/dist/browser.js CHANGED
@@ -898,6 +898,8 @@ ${input.slice(result.pos)}
898
898
  FunctionType,
899
899
  TypeArguments,
900
900
  CompactTypeArguments,
901
+ TypeArgument,
902
+ TypeArgumentDelimiter,
901
903
  TypeParameters,
902
904
  TypeParameter,
903
905
  TypeConstraint,
@@ -10661,7 +10663,7 @@ ${input.slice(result.pos)}
10661
10663
  return result;
10662
10664
  }
10663
10665
  }
10664
- var JSXFragment$0 = $S($EXPECT($L149, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L150, fail, 'JSXFragment "</>"'));
10666
+ var JSXFragment$0 = $S($EXPECT($L149, fail, 'JSXFragment "<>"'), $E(JSXChildren), __, $EXPECT($L150, fail, 'JSXFragment "</>"'));
10665
10667
  var JSXFragment$1 = $TS($S($EXPECT($L149, fail, 'JSXFragment "<>"'), JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10666
10668
  return [...$0, "</>"];
10667
10669
  });
@@ -11993,7 +11995,7 @@ ${input.slice(result.pos)}
11993
11995
  return result;
11994
11996
  }
11995
11997
  }
11996
- var TypeArguments$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeArguments "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
11998
+ var TypeArguments$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
11997
11999
  return { ts: true, children: $0 };
11998
12000
  });
11999
12001
  function TypeArguments(state) {
@@ -12014,7 +12016,7 @@ ${input.slice(result.pos)}
12014
12016
  return result;
12015
12017
  }
12016
12018
  }
12017
- var CompactTypeArguments$0 = $TS($S($EXPECT($L5, fail, 'CompactTypeArguments "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L27, fail, 'CompactTypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
12019
+ var CompactTypeArguments$0 = $TS($S($EXPECT($L5, fail, 'CompactTypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'CompactTypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
12018
12020
  return { ts: true, children: $0 };
12019
12021
  });
12020
12022
  function CompactTypeArguments(state) {
@@ -12035,6 +12037,44 @@ ${input.slice(result.pos)}
12035
12037
  return result;
12036
12038
  }
12037
12039
  }
12040
+ var TypeArgument$0 = $S(__, Type, TypeArgumentDelimiter);
12041
+ function TypeArgument(state) {
12042
+ if (state.events) {
12043
+ const result = state.events.enter?.("TypeArgument", state);
12044
+ if (result)
12045
+ return result.cache;
12046
+ }
12047
+ if (state.tokenize) {
12048
+ const result = $TOKEN("TypeArgument", state, TypeArgument$0(state));
12049
+ if (state.events)
12050
+ state.events.exit?.("TypeArgument", state, result);
12051
+ return result;
12052
+ } else {
12053
+ const result = TypeArgument$0(state);
12054
+ if (state.events)
12055
+ state.events.exit?.("TypeArgument", state, result);
12056
+ return result;
12057
+ }
12058
+ }
12059
+ var TypeArgumentDelimiter$0 = TypeParameterDelimiter;
12060
+ function TypeArgumentDelimiter(state) {
12061
+ if (state.events) {
12062
+ const result = state.events.enter?.("TypeArgumentDelimiter", state);
12063
+ if (result)
12064
+ return result.cache;
12065
+ }
12066
+ if (state.tokenize) {
12067
+ const result = $TOKEN("TypeArgumentDelimiter", state, TypeArgumentDelimiter$0(state));
12068
+ if (state.events)
12069
+ state.events.exit?.("TypeArgumentDelimiter", state, result);
12070
+ return result;
12071
+ } else {
12072
+ const result = TypeArgumentDelimiter$0(state);
12073
+ if (state.events)
12074
+ state.events.exit?.("TypeArgumentDelimiter", state, result);
12075
+ return result;
12076
+ }
12077
+ }
12038
12078
  var TypeParameters$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
12039
12079
  var parameters = $3;
12040
12080
  return {
package/dist/main.js CHANGED
@@ -897,6 +897,8 @@ ${input.slice(result.pos)}
897
897
  FunctionType,
898
898
  TypeArguments,
899
899
  CompactTypeArguments,
900
+ TypeArgument,
901
+ TypeArgumentDelimiter,
900
902
  TypeParameters,
901
903
  TypeParameter,
902
904
  TypeConstraint,
@@ -10660,7 +10662,7 @@ ${input.slice(result.pos)}
10660
10662
  return result;
10661
10663
  }
10662
10664
  }
10663
- var JSXFragment$0 = $S($EXPECT($L149, fail, 'JSXFragment "<>"'), $E(JSXChildren), $EXPECT($L150, fail, 'JSXFragment "</>"'));
10665
+ var JSXFragment$0 = $S($EXPECT($L149, fail, 'JSXFragment "<>"'), $E(JSXChildren), __, $EXPECT($L150, fail, 'JSXFragment "</>"'));
10664
10666
  var JSXFragment$1 = $TS($S($EXPECT($L149, fail, 'JSXFragment "<>"'), JSXMixedChildren, InsertNewline, InsertIndent), function($skip, $loc, $0, $1, $2, $3, $4) {
10665
10667
  return [...$0, "</>"];
10666
10668
  });
@@ -11992,7 +11994,7 @@ ${input.slice(result.pos)}
11992
11994
  return result;
11993
11995
  }
11994
11996
  }
11995
- var TypeArguments$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeArguments "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7, $8) {
11997
+ var TypeArguments$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'TypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
11996
11998
  return { ts: true, children: $0 };
11997
11999
  });
11998
12000
  function TypeArguments(state) {
@@ -12013,7 +12015,7 @@ ${input.slice(result.pos)}
12013
12015
  return result;
12014
12016
  }
12015
12017
  }
12016
- var CompactTypeArguments$0 = $TS($S($EXPECT($L5, fail, 'CompactTypeArguments "<"'), __, Type, $Q($S(__, Comma, __, Type)), $E($S(__, Comma)), __, $EXPECT($L27, fail, 'CompactTypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5, $6, $7) {
12018
+ var CompactTypeArguments$0 = $TS($S($EXPECT($L5, fail, 'CompactTypeArguments "<"'), $P(TypeArgument), __, $EXPECT($L27, fail, 'CompactTypeArguments ">"')), function($skip, $loc, $0, $1, $2, $3, $4) {
12017
12019
  return { ts: true, children: $0 };
12018
12020
  });
12019
12021
  function CompactTypeArguments(state) {
@@ -12034,6 +12036,44 @@ ${input.slice(result.pos)}
12034
12036
  return result;
12035
12037
  }
12036
12038
  }
12039
+ var TypeArgument$0 = $S(__, Type, TypeArgumentDelimiter);
12040
+ function TypeArgument(state) {
12041
+ if (state.events) {
12042
+ const result = state.events.enter?.("TypeArgument", state);
12043
+ if (result)
12044
+ return result.cache;
12045
+ }
12046
+ if (state.tokenize) {
12047
+ const result = $TOKEN("TypeArgument", state, TypeArgument$0(state));
12048
+ if (state.events)
12049
+ state.events.exit?.("TypeArgument", state, result);
12050
+ return result;
12051
+ } else {
12052
+ const result = TypeArgument$0(state);
12053
+ if (state.events)
12054
+ state.events.exit?.("TypeArgument", state, result);
12055
+ return result;
12056
+ }
12057
+ }
12058
+ var TypeArgumentDelimiter$0 = TypeParameterDelimiter;
12059
+ function TypeArgumentDelimiter(state) {
12060
+ if (state.events) {
12061
+ const result = state.events.enter?.("TypeArgumentDelimiter", state);
12062
+ if (result)
12063
+ return result.cache;
12064
+ }
12065
+ if (state.tokenize) {
12066
+ const result = $TOKEN("TypeArgumentDelimiter", state, TypeArgumentDelimiter$0(state));
12067
+ if (state.events)
12068
+ state.events.exit?.("TypeArgumentDelimiter", state, result);
12069
+ return result;
12070
+ } else {
12071
+ const result = TypeArgumentDelimiter$0(state);
12072
+ if (state.events)
12073
+ state.events.exit?.("TypeArgumentDelimiter", state, result);
12074
+ return result;
12075
+ }
12076
+ }
12037
12077
  var TypeParameters$0 = $TS($S(__, $EXPECT($L5, fail, 'TypeParameters "<"'), $P(TypeParameter), __, $EXPECT($L27, fail, 'TypeParameters ">"')), function($skip, $loc, $0, $1, $2, $3, $4, $5) {
12038
12078
  var parameters = $3;
12039
12079
  return {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@danielx/civet",
3
- "version": "0.5.3",
3
+ "version": "0.5.4",
4
4
  "description": "CoffeeScript style syntax for TypeScript",
5
5
  "main": "dist/main.js",
6
6
  "exports": {
@@ -75,4 +75,4 @@
75
75
  "test"
76
76
  ]
77
77
  }
78
- }
78
+ }