@danielx/civet 0.2.2 → 0.2.3
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 +42 -4
- package/dist/browser.js.map +2 -2
- package/dist/civet +6 -6
- package/dist/cli.js.map +3 -3
- package/dist/main.js +42 -4
- package/package.json +1 -1
package/dist/browser.js
CHANGED
|
@@ -596,6 +596,9 @@ var Civet = (() => {
|
|
|
596
596
|
InterfaceBlock,
|
|
597
597
|
NestedInterfaceProperties,
|
|
598
598
|
NestedInterfaceProperty,
|
|
599
|
+
InterfaceProperty,
|
|
600
|
+
InterfacePropertyDelimiter,
|
|
601
|
+
TypeIndexSignature,
|
|
599
602
|
TypeSuffix,
|
|
600
603
|
ReturnTypeSuffix,
|
|
601
604
|
TypePredicate,
|
|
@@ -2862,12 +2865,13 @@ var Civet = (() => {
|
|
|
2862
2865
|
}
|
|
2863
2866
|
}
|
|
2864
2867
|
var InterfaceBlock$0 = $S(__, $EXPECT($L11, fail, 'InterfaceBlock "{"'), EOS, NestedInterfaceProperties, __, $EXPECT($L16, fail, 'InterfaceBlock "}"'));
|
|
2865
|
-
var InterfaceBlock$1 = $S(
|
|
2868
|
+
var InterfaceBlock$1 = $S(__, $EXPECT($L11, fail, 'InterfaceBlock "{"'), $Q($S(__, InterfaceProperty)), __, $EXPECT($L16, fail, 'InterfaceBlock "}"'));
|
|
2869
|
+
var InterfaceBlock$2 = $S(InsertOpenBrace, EOS, NestedInterfaceProperties, InsertNewline, InsertIndent, InsertCloseBrace);
|
|
2866
2870
|
function InterfaceBlock(state) {
|
|
2867
2871
|
if (state.tokenize) {
|
|
2868
|
-
return $TOKEN("InterfaceBlock", state, InterfaceBlock$0(state) || InterfaceBlock$1(state));
|
|
2872
|
+
return $TOKEN("InterfaceBlock", state, InterfaceBlock$0(state) || InterfaceBlock$1(state) || InterfaceBlock$2(state));
|
|
2869
2873
|
} else {
|
|
2870
|
-
return InterfaceBlock$0(state) || InterfaceBlock$1(state);
|
|
2874
|
+
return InterfaceBlock$0(state) || InterfaceBlock$1(state) || InterfaceBlock$2(state);
|
|
2871
2875
|
}
|
|
2872
2876
|
}
|
|
2873
2877
|
var NestedInterfaceProperties$0 = $TS($S(PushIndent, $Q(NestedInterfaceProperty), PopIndent), function($skip, $loc, $0, $1, $2, $3) {
|
|
@@ -2885,7 +2889,7 @@ var Civet = (() => {
|
|
|
2885
2889
|
return NestedInterfaceProperties$0(state);
|
|
2886
2890
|
}
|
|
2887
2891
|
}
|
|
2888
|
-
var NestedInterfaceProperty$0 = $S(Nested,
|
|
2892
|
+
var NestedInterfaceProperty$0 = $S(Nested, InterfaceProperty);
|
|
2889
2893
|
function NestedInterfaceProperty(state) {
|
|
2890
2894
|
if (state.verbose)
|
|
2891
2895
|
console.log("ENTER:", "NestedInterfaceProperty");
|
|
@@ -2895,6 +2899,40 @@ var Civet = (() => {
|
|
|
2895
2899
|
return NestedInterfaceProperty$0(state);
|
|
2896
2900
|
}
|
|
2897
2901
|
}
|
|
2902
|
+
var InterfaceProperty$0 = $S($C(TypeIndexSignature, PropertyName), TypeSuffix, InterfacePropertyDelimiter);
|
|
2903
|
+
function InterfaceProperty(state) {
|
|
2904
|
+
if (state.verbose)
|
|
2905
|
+
console.log("ENTER:", "InterfaceProperty");
|
|
2906
|
+
if (state.tokenize) {
|
|
2907
|
+
return $TOKEN("InterfaceProperty", state, InterfaceProperty$0(state));
|
|
2908
|
+
} else {
|
|
2909
|
+
return InterfaceProperty$0(state);
|
|
2910
|
+
}
|
|
2911
|
+
}
|
|
2912
|
+
var InterfacePropertyDelimiter$0 = $S($Q(_), $EXPECT($L85, fail, 'InterfacePropertyDelimiter ";"'));
|
|
2913
|
+
var InterfacePropertyDelimiter$1 = $Y($S($Q(_), $EXPECT($L16, fail, 'InterfacePropertyDelimiter "}"')));
|
|
2914
|
+
var InterfacePropertyDelimiter$2 = $T($Y($S(__, $EXPECT($L16, fail, 'InterfacePropertyDelimiter "}"'))), function(value) {
|
|
2915
|
+
return ";";
|
|
2916
|
+
});
|
|
2917
|
+
var InterfacePropertyDelimiter$3 = $T($Y(EOS), function(value) {
|
|
2918
|
+
return ";";
|
|
2919
|
+
});
|
|
2920
|
+
function InterfacePropertyDelimiter(state) {
|
|
2921
|
+
if (state.tokenize) {
|
|
2922
|
+
return $TOKEN("InterfacePropertyDelimiter", state, InterfacePropertyDelimiter$0(state) || InterfacePropertyDelimiter$1(state) || InterfacePropertyDelimiter$2(state) || InterfacePropertyDelimiter$3(state));
|
|
2923
|
+
} else {
|
|
2924
|
+
return InterfacePropertyDelimiter$0(state) || InterfacePropertyDelimiter$1(state) || InterfacePropertyDelimiter$2(state) || InterfacePropertyDelimiter$3(state);
|
|
2925
|
+
}
|
|
2926
|
+
}
|
|
2927
|
+
var TypeIndexSignature$0 = $S($EXPECT($L24, fail, 'TypeIndexSignature "["'), __, Identifier, TypeSuffix, $EXPECT($L25, fail, 'TypeIndexSignature "]"'));
|
|
2928
|
+
var TypeIndexSignature$1 = $S($EXPECT($L24, fail, 'TypeIndexSignature "["'), __, PropertyName, __, $EXPECT($L78, fail, 'TypeIndexSignature "in"'), Type, $EXPECT($L25, fail, 'TypeIndexSignature "]"'));
|
|
2929
|
+
function TypeIndexSignature(state) {
|
|
2930
|
+
if (state.tokenize) {
|
|
2931
|
+
return $TOKEN("TypeIndexSignature", state, TypeIndexSignature$0(state) || TypeIndexSignature$1(state));
|
|
2932
|
+
} else {
|
|
2933
|
+
return TypeIndexSignature$0(state) || TypeIndexSignature$1(state);
|
|
2934
|
+
}
|
|
2935
|
+
}
|
|
2898
2936
|
var TypeSuffix$0 = $T($S($E($EXPECT($L3, fail, 'TypeSuffix "?"')), __, $EXPECT($L12, fail, 'TypeSuffix ":"'), Type), function(value) {
|
|
2899
2937
|
return { "ts": true, "children": value };
|
|
2900
2938
|
});
|