clarity-pattern-parser 9.2.3 → 9.2.5
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/ast/Node.d.ts +0 -2
- package/dist/index.browser.js +2 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.esm.js +2 -5
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +2 -5
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/ast/Node.test.ts +0 -6
- package/src/ast/Node.ts +1 -5
- package/src/grammar/Grammar.test.ts +11 -0
- package/src/grammar/patterns/body.ts +2 -3
- package/src/grammar/patterns.test.ts +1 -1
package/dist/index.js
CHANGED
|
@@ -187,8 +187,6 @@ class Node {
|
|
|
187
187
|
type: this._type,
|
|
188
188
|
name: this._name,
|
|
189
189
|
value: this.toString(),
|
|
190
|
-
firstIndex: this._firstIndex,
|
|
191
|
-
lastIndex: this._lastIndex,
|
|
192
190
|
startIndex: this.startIndex,
|
|
193
191
|
endIndex: this.endIndex,
|
|
194
192
|
children: this._children.map(c => c.toCycleFreeObject()),
|
|
@@ -2056,13 +2054,12 @@ const statement = new Options("statement", [assignStatement, name$1.clone("expor
|
|
|
2056
2054
|
|
|
2057
2055
|
const bodyLineContent = new Options("body-line-content", [
|
|
2058
2056
|
comment,
|
|
2059
|
-
statement
|
|
2060
|
-
lineSpaces$1
|
|
2057
|
+
statement
|
|
2061
2058
|
]);
|
|
2062
2059
|
const optionalLineSpaces$2 = new Optional("optional-line-spaces", lineSpaces$1);
|
|
2063
2060
|
const bodyLine = new Sequence("body-line", [
|
|
2064
2061
|
optionalLineSpaces$2,
|
|
2065
|
-
bodyLineContent,
|
|
2062
|
+
new Optional("optional-body-line-content", bodyLineContent),
|
|
2066
2063
|
optionalLineSpaces$2,
|
|
2067
2064
|
]);
|
|
2068
2065
|
const body = new Optional("optional-body", new Repeat("body", bodyLine, { divider: newLine$1 }));
|