clarity-pattern-parser
Advanced tools
Comparing version 11.0.24 to 11.0.25
@@ -49,2 +49,3 @@ import { Node } from "../ast/Node"; | ||
private _isRecursiveReference; | ||
build(): void; | ||
parse(cursor: Cursor): Node | null; | ||
@@ -51,0 +52,0 @@ private _tryToParse; |
{ | ||
"name": "clarity-pattern-parser", | ||
"version": "11.0.24", | ||
"version": "11.0.25", | ||
"description": "Parsing Library for Typescript and Javascript.", | ||
@@ -5,0 +5,0 @@ "main": "./dist/index.js", |
@@ -255,5 +255,3 @@ import { Node } from "../ast/Node"; | ||
parse(cursor: Cursor): Node | null { | ||
this._firstIndex = cursor.index; | ||
build(){ | ||
if (!this._hasOrganized) { | ||
@@ -263,3 +261,9 @@ this._hasOrganized = true; | ||
} | ||
} | ||
parse(cursor: Cursor): Node | null { | ||
this._firstIndex = cursor.index; | ||
this.build(); | ||
// If there are not any atom nodes then nothing can be found. | ||
@@ -266,0 +270,0 @@ if (this._atomPatterns.length < 1) { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1346350
23444