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