@digipair/skill-debug 0.136.3 → 0.136.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/index.esm.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { promises } from 'fs';
|
|
2
2
|
|
|
3
|
-
function _mergeNamespaces
|
|
3
|
+
function _mergeNamespaces(n, m) {
|
|
4
4
|
m.forEach(function(e) {
|
|
5
5
|
e && typeof e !== 'string' && !Array.isArray(e) && Object.keys(e).forEach(function(k) {
|
|
6
6
|
if (k !== 'default' && !(k in n)) {
|
|
@@ -20,7 +20,7 @@ var commonjsGlobal = typeof globalThis !== 'undefined' ? globalThis : typeof win
|
|
|
20
20
|
function getDefaultExportFromCjs(x) {
|
|
21
21
|
return x && x.__esModule && Object.prototype.hasOwnProperty.call(x, 'default') ? x['default'] : x;
|
|
22
22
|
}
|
|
23
|
-
var handlebars_min = {
|
|
23
|
+
var handlebars_min$1 = {
|
|
24
24
|
exports: {}
|
|
25
25
|
};
|
|
26
26
|
/**!
|
|
@@ -48,7 +48,7 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
48
48
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
49
49
|
THE SOFTWARE.
|
|
50
50
|
|
|
51
|
-
*/ handlebars_min.exports;
|
|
51
|
+
*/ handlebars_min$1.exports;
|
|
52
52
|
(function(module1, exports1) {
|
|
53
53
|
function _instanceof(left, right) {
|
|
54
54
|
if (right != null && typeof Symbol !== "undefined" && right[Symbol.hasInstance]) {
|
|
@@ -8129,12 +8129,12 @@ THE SOFTWARE.
|
|
|
8129
8129
|
}
|
|
8130
8130
|
]);
|
|
8131
8131
|
});
|
|
8132
|
-
})(handlebars_min, handlebars_min.exports);
|
|
8133
|
-
var handlebars_minExports = handlebars_min.exports;
|
|
8134
|
-
var
|
|
8135
|
-
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces
|
|
8132
|
+
})(handlebars_min$1, handlebars_min$1.exports);
|
|
8133
|
+
var handlebars_minExports = handlebars_min$1.exports;
|
|
8134
|
+
var handlebars_min = /*@__PURE__*/ getDefaultExportFromCjs(handlebars_minExports);
|
|
8135
|
+
var HandlebarsNamespace = /*#__PURE__*/ _mergeNamespaces({
|
|
8136
8136
|
__proto__: null,
|
|
8137
|
-
default:
|
|
8137
|
+
default: handlebars_min
|
|
8138
8138
|
}, [
|
|
8139
8139
|
handlebars_minExports
|
|
8140
8140
|
]);
|
|
@@ -17296,7 +17296,6 @@ class represent prop names.
|
|
|
17296
17296
|
this.deserialize = config.deserialize || function() {
|
|
17297
17297
|
throw new Error("This node type doesn't define a deserialize function");
|
|
17298
17298
|
};
|
|
17299
|
-
this.combine = config.combine || null;
|
|
17300
17299
|
}
|
|
17301
17300
|
_create_class$u(NodeProp, [
|
|
17302
17301
|
{
|
|
@@ -17409,16 +17408,10 @@ represented by another tree.
|
|
|
17409
17408
|
*/ overlay, /**
|
|
17410
17409
|
The parser used to create this subtree.
|
|
17411
17410
|
*/ parser) {
|
|
17412
|
-
var /**
|
|
17413
|
-
[Indicates](#common.IterMode.EnterBracketed) that the nested
|
|
17414
|
-
content is delineated with some kind
|
|
17415
|
-
of bracket token.
|
|
17416
|
-
*/ bracketed = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : false;
|
|
17417
17411
|
_class_call_check$z(this, MountedTree);
|
|
17418
17412
|
this.tree = tree;
|
|
17419
17413
|
this.overlay = overlay;
|
|
17420
17414
|
this.parser = parser;
|
|
17421
|
-
this.bracketed = bracketed;
|
|
17422
17415
|
}
|
|
17423
17416
|
_create_class$u(MountedTree, null, [
|
|
17424
17417
|
{
|
|
@@ -17634,9 +17627,7 @@ types in it, so that the ids fit into 16-bit typed array slots.
|
|
|
17634
17627
|
var add = source(type);
|
|
17635
17628
|
if (add) {
|
|
17636
17629
|
if (!newProps) newProps = Object.assign({}, type.props);
|
|
17637
|
-
|
|
17638
|
-
if (prop.combine && prop.id in newProps) value = prop.combine(newProps[prop.id], value);
|
|
17639
|
-
newProps[prop.id] = value;
|
|
17630
|
+
newProps[add[0].id] = add[1];
|
|
17640
17631
|
}
|
|
17641
17632
|
}
|
|
17642
17633
|
} catch (err) {
|
|
@@ -17702,12 +17693,6 @@ operator to enable multiple ones.
|
|
|
17702
17693
|
library to not enter mounted overlays if one covers the given
|
|
17703
17694
|
position.
|
|
17704
17695
|
*/ IterMode[IterMode["IgnoreOverlays"] = 8] = "IgnoreOverlays";
|
|
17705
|
-
/**
|
|
17706
|
-
When set, positions on the boundary of a mounted overlay tree
|
|
17707
|
-
that has its [`bracketed`](#common.NestedParse.bracketed) flag
|
|
17708
|
-
set will enter that tree regardless of side. Only supported in
|
|
17709
|
-
[`enter`](#common.SyntaxNode.enter), not in cursors.
|
|
17710
|
-
*/ IterMode[IterMode["EnterBracketed"] = 16] = "EnterBracketed";
|
|
17711
17696
|
})(IterMode || (IterMode = {}));
|
|
17712
17697
|
/**
|
|
17713
17698
|
A piece of syntax tree. There are two ways to approach these
|
|
@@ -18266,17 +18251,17 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18266
18251
|
var mode = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : 0;
|
|
18267
18252
|
for(var parent = this;;){
|
|
18268
18253
|
for(var _parent__tree = parent._tree, children = _parent__tree.children, positions = _parent__tree.positions, e = dir > 0 ? children.length : -1; i != e; i += dir){
|
|
18269
|
-
var next = children[i], start = positions[i] + parent.from
|
|
18270
|
-
if (!
|
|
18254
|
+
var next = children[i], start = positions[i] + parent.from;
|
|
18255
|
+
if (!checkSide(side, pos, start, start + next.length)) continue;
|
|
18271
18256
|
if (_instanceof$i(next, TreeBuffer)) {
|
|
18272
18257
|
if (mode & IterMode.ExcludeBuffers) continue;
|
|
18273
18258
|
var index = next.findChild(0, next.buffer.length, dir, pos - start, side);
|
|
18274
18259
|
if (index > -1) return new BufferNode(new BufferContext(parent, next, i, start), null, index);
|
|
18275
18260
|
} else if (mode & IterMode.IncludeAnonymous || !next.type.isAnonymous || hasChild(next)) {
|
|
18276
|
-
var
|
|
18277
|
-
if (!(mode & IterMode.IgnoreMounts) && (
|
|
18261
|
+
var mounted = void 0;
|
|
18262
|
+
if (!(mode & IterMode.IgnoreMounts) && (mounted = MountedTree.get(next)) && !mounted.overlay) return new TreeNode(mounted.tree, start, i, parent);
|
|
18278
18263
|
var inner = new TreeNode(next, start, i, parent);
|
|
18279
|
-
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side
|
|
18264
|
+
return mode & IterMode.IncludeAnonymous || !inner.type.isAnonymous ? inner : inner.nextChild(dir < 0 ? next.children.length - 1 : 0, dir, pos, side);
|
|
18280
18265
|
}
|
|
18281
18266
|
}
|
|
18282
18267
|
if (mode & IterMode.IncludeAnonymous || !parent.type.isAnonymous) return null;
|
|
@@ -18311,24 +18296,18 @@ var TreeNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18311
18296
|
return this.nextChild(this._tree.children.length - 1, -1, pos, -2 /* Side.Before */ );
|
|
18312
18297
|
}
|
|
18313
18298
|
},
|
|
18314
|
-
{
|
|
18315
|
-
key: "prop",
|
|
18316
|
-
value: function prop(prop) {
|
|
18317
|
-
return this._tree.prop(prop);
|
|
18318
|
-
}
|
|
18319
|
-
},
|
|
18320
18299
|
{
|
|
18321
18300
|
key: "enter",
|
|
18322
18301
|
value: function enter(pos, side) {
|
|
18323
18302
|
var mode = arguments.length > 2 && arguments[2] !== void 0 ? arguments[2] : 0;
|
|
18324
18303
|
var mounted;
|
|
18325
18304
|
if (!(mode & IterMode.IgnoreOverlays) && (mounted = MountedTree.get(this._tree)) && mounted.overlay) {
|
|
18326
|
-
var rPos = pos - this.from
|
|
18305
|
+
var rPos = pos - this.from;
|
|
18327
18306
|
var _iteratorNormalCompletion = true, _didIteratorError = false, _iteratorError = undefined;
|
|
18328
18307
|
try {
|
|
18329
18308
|
for(var _iterator = mounted.overlay[Symbol.iterator](), _step; !(_iteratorNormalCompletion = (_step = _iterator.next()).done); _iteratorNormalCompletion = true){
|
|
18330
18309
|
var _step_value = _step.value, from = _step_value.from, to = _step_value.to;
|
|
18331
|
-
if ((side > 0
|
|
18310
|
+
if ((side > 0 ? from <= rPos : from < rPos) && (side < 0 ? to >= rPos : to > rPos)) return new TreeNode(mounted.tree, mounted.overlay[0].from + this.from, -1, this);
|
|
18332
18311
|
}
|
|
18333
18312
|
} catch (err) {
|
|
18334
18313
|
_didIteratorError = true;
|
|
@@ -18492,12 +18471,6 @@ var BufferNode = /*#__PURE__*/ function(BaseNode) {
|
|
|
18492
18471
|
return this.child(-1, pos, -2 /* Side.Before */ );
|
|
18493
18472
|
}
|
|
18494
18473
|
},
|
|
18495
|
-
{
|
|
18496
|
-
key: "prop",
|
|
18497
|
-
value: function prop(prop) {
|
|
18498
|
-
return this.type.prop(prop);
|
|
18499
|
-
}
|
|
18500
|
-
},
|
|
18501
18474
|
{
|
|
18502
18475
|
key: "enter",
|
|
18503
18476
|
value: function enter(pos, side) {
|
|
@@ -18628,8 +18601,11 @@ A tree cursor object focuses on a given node in a syntax tree, and
|
|
|
18628
18601
|
allows you to move to adjacent nodes.
|
|
18629
18602
|
*/ var TreeCursor = /*#__PURE__*/ function() {
|
|
18630
18603
|
function TreeCursor(node) {
|
|
18631
|
-
var
|
|
18604
|
+
var /**
|
|
18605
|
+
@internal
|
|
18606
|
+
*/ mode = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
|
|
18632
18607
|
_class_call_check$z(this, TreeCursor);
|
|
18608
|
+
this.mode = mode;
|
|
18633
18609
|
/**
|
|
18634
18610
|
@internal
|
|
18635
18611
|
*/ this.buffer = null;
|
|
@@ -18638,7 +18614,6 @@ allows you to move to adjacent nodes.
|
|
|
18638
18614
|
@internal
|
|
18639
18615
|
*/ this.index = 0;
|
|
18640
18616
|
this.bufferNode = null;
|
|
18641
|
-
this.mode = mode & ~IterMode.EnterBracketed;
|
|
18642
18617
|
if (_instanceof$i(node, TreeNode)) {
|
|
18643
18618
|
this.yieldNode(node);
|
|
18644
18619
|
} else {
|
|
@@ -18982,7 +18957,7 @@ function buildTree(data) {
|
|
|
18982
18957
|
function takeNode(parentStart, minPos, children, positions, inRepeat, depth) {
|
|
18983
18958
|
var id = cursor.id, start = cursor.start, end = cursor.end, size = cursor.size;
|
|
18984
18959
|
var lookAheadAtStart = lookAhead, contextAtStart = contextHash;
|
|
18985
|
-
|
|
18960
|
+
while(size < 0){
|
|
18986
18961
|
cursor.next();
|
|
18987
18962
|
if (size == -1 /* SpecialRecord.Reuse */ ) {
|
|
18988
18963
|
var node = reused[id];
|
|
@@ -19149,7 +19124,7 @@ function buildTree(data) {
|
|
|
19149
19124
|
fork.next();
|
|
19150
19125
|
while(fork.pos > startPos){
|
|
19151
19126
|
if (fork.size < 0) {
|
|
19152
|
-
if (fork.size == -3 /* SpecialRecord.ContextChange */
|
|
19127
|
+
if (fork.size == -3 /* SpecialRecord.ContextChange */ ) localSkipped += 4;
|
|
19153
19128
|
else break scan;
|
|
19154
19129
|
} else if (fork.id >= minRepeatType) {
|
|
19155
19130
|
localSkipped += 4;
|
|
@@ -19584,11 +19559,11 @@ about the parse state.
|
|
|
19584
19559
|
var _a;
|
|
19585
19560
|
var depth = action >> 19 /* Action.ReduceDepthShift */ , type = action & 65535 /* Action.ValueMask */ ;
|
|
19586
19561
|
var parser = this.p.parser;
|
|
19587
|
-
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */
|
|
19562
|
+
var lookaheadRecord = this.reducePos < this.pos - 25 /* Lookahead.Margin */ ;
|
|
19563
|
+
if (lookaheadRecord) this.setLookAhead(this.pos);
|
|
19588
19564
|
var dPrec = parser.dynamicPrecedence(type);
|
|
19589
19565
|
if (dPrec) this.score += dPrec;
|
|
19590
19566
|
if (depth == 0) {
|
|
19591
|
-
if (type < parser.minRepeatTerm && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19592
19567
|
this.pushState(parser.getGoto(this.state, type, true), this.reducePos);
|
|
19593
19568
|
// Zero-depth reductions are a special case—they add stuff to
|
|
19594
19569
|
// the stack without popping anything off.
|
|
@@ -19602,9 +19577,7 @@ about the parse state.
|
|
|
19602
19577
|
// expression and the state that we'll be staying in, which should
|
|
19603
19578
|
// be moved to `this.state`).
|
|
19604
19579
|
var base = this.stack.length - (depth - 1) * 3 - (action & 262144 /* Action.StayFlag */ ? 6 : 0);
|
|
19605
|
-
var start = base ? this.stack[base - 2] : this.p.ranges[0].from;
|
|
19606
|
-
if (type < parser.minRepeatTerm && start == this.reducePos && this.reducePos < this.pos) this.reducePos = this.pos;
|
|
19607
|
-
var size = this.reducePos - start;
|
|
19580
|
+
var start = base ? this.stack[base - 2] : this.p.ranges[0].from, size = this.reducePos - start;
|
|
19608
19581
|
// This is a kludge to try and detect overly deep left-associative
|
|
19609
19582
|
// trees, which will not increase the parse stack depth and thus
|
|
19610
19583
|
// won't be caught by the regular stack-depth limit check.
|
|
@@ -19643,11 +19616,15 @@ about the parse state.
|
|
|
19643
19616
|
var size = arguments.length > 3 && arguments[3] !== void 0 ? arguments[3] : 4, mustSink = arguments.length > 4 && arguments[4] !== void 0 ? arguments[4] : false;
|
|
19644
19617
|
if (term == 0 /* Term.Err */ && (!this.stack.length || this.stack[this.stack.length - 1] < this.buffer.length + this.bufferBase)) {
|
|
19645
19618
|
// Try to omit/merge adjacent error nodes
|
|
19646
|
-
var top = this.buffer.length;
|
|
19647
|
-
if (top
|
|
19619
|
+
var cur = this, top = this.buffer.length;
|
|
19620
|
+
if (top == 0 && cur.parent) {
|
|
19621
|
+
top = cur.bufferBase - cur.parent.bufferBase;
|
|
19622
|
+
cur = cur.parent;
|
|
19623
|
+
}
|
|
19624
|
+
if (top > 0 && cur.buffer[top - 4] == 0 /* Term.Err */ && cur.buffer[top - 1] > -1) {
|
|
19648
19625
|
if (start == end) return;
|
|
19649
|
-
if (
|
|
19650
|
-
|
|
19626
|
+
if (cur.buffer[top - 2] >= start) {
|
|
19627
|
+
cur.buffer[top - 2] = end;
|
|
19651
19628
|
return;
|
|
19652
19629
|
}
|
|
19653
19630
|
}
|
|
@@ -19656,7 +19633,7 @@ about the parse state.
|
|
|
19656
19633
|
this.buffer.push(term, start, end, size);
|
|
19657
19634
|
} else {
|
|
19658
19635
|
var index = this.buffer.length;
|
|
19659
|
-
if (index > 0 &&
|
|
19636
|
+
if (index > 0 && this.buffer[index - 4] != 0 /* Term.Err */ ) {
|
|
19660
19637
|
var mustMove = false;
|
|
19661
19638
|
for(var scan = index; scan > 0 && this.buffer[scan - 2] > end; scan -= 4){
|
|
19662
19639
|
if (this.buffer[scan - 1] >= 0) {
|
|
@@ -19691,11 +19668,11 @@ about the parse state.
|
|
|
19691
19668
|
this.pushState(action & 65535 /* Action.ValueMask */ , this.pos);
|
|
19692
19669
|
} else if ((action & 262144 /* Action.StayFlag */ ) == 0) {
|
|
19693
19670
|
var nextState = action, parser = this.p.parser;
|
|
19694
|
-
this.pos
|
|
19695
|
-
|
|
19696
|
-
|
|
19697
|
-
|
|
19698
|
-
this.pushState(nextState,
|
|
19671
|
+
if (end > this.pos || type <= parser.maxNode) {
|
|
19672
|
+
this.pos = end;
|
|
19673
|
+
if (!parser.stateFlag(nextState, 1 /* StateFlag.Skipped */ )) this.reducePos = end;
|
|
19674
|
+
}
|
|
19675
|
+
this.pushState(nextState, start);
|
|
19699
19676
|
this.shiftContext(type, start);
|
|
19700
19677
|
if (type <= parser.maxNode) this.buffer.push(type, start, end, 4);
|
|
19701
19678
|
} else {
|
|
@@ -19743,9 +19720,6 @@ about the parse state.
|
|
|
19743
19720
|
value: function split() {
|
|
19744
19721
|
var parent = this;
|
|
19745
19722
|
var off = parent.buffer.length;
|
|
19746
|
-
// Leave off top error node, if there, because that might be
|
|
19747
|
-
// merged with other nodes.
|
|
19748
|
-
if (off && parent.buffer[off - 4] == 0 /* Term.Err */ ) off -= 4;
|
|
19749
19723
|
// Because the top of the buffer (after this.pos) may be mutated
|
|
19750
19724
|
// to reorder reductions and skipped tokens, and shared buffers
|
|
19751
19725
|
// should be immutable, this copies any outstanding skipped tokens
|
|
@@ -19989,10 +19963,10 @@ about the parse state.
|
|
|
19989
19963
|
@internal
|
|
19990
19964
|
*/ key: "setLookAhead",
|
|
19991
19965
|
value: function setLookAhead(lookAhead) {
|
|
19992
|
-
if (lookAhead
|
|
19993
|
-
|
|
19994
|
-
|
|
19995
|
-
|
|
19966
|
+
if (lookAhead > this.lookAhead) {
|
|
19967
|
+
this.emitLookAhead();
|
|
19968
|
+
this.lookAhead = lookAhead;
|
|
19969
|
+
}
|
|
19996
19970
|
}
|
|
19997
19971
|
},
|
|
19998
19972
|
{
|
|
@@ -20885,12 +20859,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20885
20859
|
}
|
|
20886
20860
|
}
|
|
20887
20861
|
}
|
|
20888
|
-
if (newStacks.length > 12 /* Rec.MaxStackCount */ )
|
|
20889
|
-
newStacks.sort(function(a, b) {
|
|
20890
|
-
return b.score - a.score;
|
|
20891
|
-
});
|
|
20892
|
-
newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20893
|
-
}
|
|
20862
|
+
if (newStacks.length > 12 /* Rec.MaxStackCount */ ) newStacks.splice(12 /* Rec.MaxStackCount */ , newStacks.length - 12 /* Rec.MaxStackCount */ );
|
|
20894
20863
|
}
|
|
20895
20864
|
this.minStackPos = newStacks[0].pos;
|
|
20896
20865
|
for(var i2 = 1; i2 < newStacks.length; i2++)if (newStacks[i2].pos < this.minStackPos) this.minStackPos = newStacks[i2].pos;
|
|
@@ -20985,7 +20954,7 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
20985
20954
|
if (done) continue;
|
|
20986
20955
|
}
|
|
20987
20956
|
var force = stack.split(), forceBase = base;
|
|
20988
|
-
for(var j = 0; j < 10 /* Rec.ForceReduceLimit */
|
|
20957
|
+
for(var j = 0; force.forceReduce() && j < 10 /* Rec.ForceReduceLimit */ ; j++){
|
|
20989
20958
|
if (verbose) console.log(forceBase + this.stackID(force) + " (via force-reduce)");
|
|
20990
20959
|
var done1 = this.advanceFully(force, newStacks);
|
|
20991
20960
|
if (done1) break;
|
|
@@ -21020,8 +20989,8 @@ var Parse = /*#__PURE__*/ function() {
|
|
|
21020
20989
|
stack.recoverByDelete(token, tokenEnd);
|
|
21021
20990
|
if (verbose) console.log(base + this.stackID(stack) + " (via recover-delete ".concat(this.parser.getName(token), ")"));
|
|
21022
20991
|
pushStackDedup(stack, newStacks);
|
|
21023
|
-
} else if (!finished || finished.score <
|
|
21024
|
-
finished =
|
|
20992
|
+
} else if (!finished || finished.score < stack.score) {
|
|
20993
|
+
finished = stack;
|
|
21025
20994
|
}
|
|
21026
20995
|
}
|
|
21027
20996
|
return finished;
|
|
@@ -21870,7 +21839,7 @@ must be quoted as JSON strings.
|
|
|
21870
21839
|
For example:
|
|
21871
21840
|
|
|
21872
21841
|
```javascript
|
|
21873
|
-
parser.
|
|
21842
|
+
parser.withProps(
|
|
21874
21843
|
styleTags({
|
|
21875
21844
|
// Style Number and BigNumber nodes
|
|
21876
21845
|
"Number BigNumber": tags.number,
|
|
@@ -21885,7 +21854,7 @@ parser.configure({props: [
|
|
|
21885
21854
|
// Style the node named "/" as punctuation
|
|
21886
21855
|
'"/"': tags.punctuation
|
|
21887
21856
|
})
|
|
21888
|
-
|
|
21857
|
+
)
|
|
21889
21858
|
```
|
|
21890
21859
|
*/ function styleTags(spec) {
|
|
21891
21860
|
var byName = Object.create(null);
|
|
@@ -21941,26 +21910,7 @@ parser.configure({props: [
|
|
|
21941
21910
|
}
|
|
21942
21911
|
return ruleNodeProp.add(byName);
|
|
21943
21912
|
}
|
|
21944
|
-
var ruleNodeProp = new NodeProp(
|
|
21945
|
-
combine: function combine(a, b) {
|
|
21946
|
-
var cur, root, take;
|
|
21947
|
-
while(a || b){
|
|
21948
|
-
if (!a || b && a.depth >= b.depth) {
|
|
21949
|
-
take = b;
|
|
21950
|
-
b = b.next;
|
|
21951
|
-
} else {
|
|
21952
|
-
take = a;
|
|
21953
|
-
a = a.next;
|
|
21954
|
-
}
|
|
21955
|
-
if (cur && cur.mode == take.mode && !take.context && !cur.context) continue;
|
|
21956
|
-
var copy = new Rule$1(take.tags, take.mode, take.context);
|
|
21957
|
-
if (cur) cur.next = copy;
|
|
21958
|
-
else root = copy;
|
|
21959
|
-
cur = copy;
|
|
21960
|
-
}
|
|
21961
|
-
return root;
|
|
21962
|
-
}
|
|
21963
|
-
});
|
|
21913
|
+
var ruleNodeProp = new NodeProp();
|
|
21964
21914
|
var Rule$1 = /*#__PURE__*/ function() {
|
|
21965
21915
|
function Rule(tags, mode, context, next) {
|
|
21966
21916
|
_class_call_check$x(this, Rule);
|
|
@@ -22885,14 +22835,14 @@ function indent(str, spaces) {
|
|
|
22885
22835
|
var match = parseIdentifier(input, i1, namePart) || namePart && parseAdditionalSymbol(input, i1) || maybeSpace && parseSpaces(input, i1);
|
|
22886
22836
|
// match is required
|
|
22887
22837
|
if (!match) {
|
|
22888
|
-
return
|
|
22838
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22889
22839
|
v: nextMatch1
|
|
22890
22840
|
};
|
|
22891
22841
|
}
|
|
22892
22842
|
var token = match.token, offset = match.offset;
|
|
22893
22843
|
i1 += offset;
|
|
22894
22844
|
if (token === ' ') {
|
|
22895
|
-
return
|
|
22845
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22896
22846
|
}
|
|
22897
22847
|
tokens1 = _to_consumable_array$4(tokens1).concat([
|
|
22898
22848
|
token
|
|
@@ -22911,7 +22861,7 @@ function indent(str, spaces) {
|
|
|
22911
22861
|
if (contextKeys.some(function(el) {
|
|
22912
22862
|
return el.startsWith(name);
|
|
22913
22863
|
})) {
|
|
22914
|
-
return
|
|
22864
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22915
22865
|
}
|
|
22916
22866
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22917
22867
|
return el === name;
|
|
@@ -22930,9 +22880,9 @@ function indent(str, spaces) {
|
|
|
22930
22880
|
if (dateTimeIdentifiers.some(function(el) {
|
|
22931
22881
|
return el.startsWith(name);
|
|
22932
22882
|
})) {
|
|
22933
|
-
return
|
|
22883
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, "continue";
|
|
22934
22884
|
}
|
|
22935
|
-
return
|
|
22885
|
+
return nextMatch = nextMatch1, i = i1, tokens = tokens1, {
|
|
22936
22886
|
v: nextMatch1
|
|
22937
22887
|
};
|
|
22938
22888
|
};
|
|
@@ -42657,7 +42607,7 @@ var CelParser = /*#__PURE__*/ function(CstParser) {
|
|
|
42657
42607
|
var parserInstance$1 = new CelParser();
|
|
42658
42608
|
parserInstance$1.getBaseCstVisitorConstructor();
|
|
42659
42609
|
new CelParser();
|
|
42660
|
-
const Handlebars =
|
|
42610
|
+
const Handlebars = handlebars_min || HandlebarsNamespace;
|
|
42661
42611
|
Handlebars.registerHelper('JSONstringify', function(value) {
|
|
42662
42612
|
return JSON.stringify(value);
|
|
42663
42613
|
});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"skill-debug.d.ts","sourceRoot":"","sources":["../../../src/lib/skill-debug.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,YAAY,EAAE,MAAM,kBAAkB,CAAC;AAmBhD,eAAO,MAAM,GAAG,GAAI,QAAQ,GAAG,EAAE,kBAAkB,YAAY,EAAE,EAAE,SAAS,GAAG,iBACpB,CAAC"}
|