add Parser.withoutFasta constructor

This renames an existing private Parser constructor as a short term fix
so that the angular plugin can extend the Parser.

R=brianwilkerson@google.com

Review-Url: https://codereview.chromium.org/2952113002 .
This commit is contained in:
danrubel 2017-06-22 09:41:40 -04:00
parent 42e2ae40e8
commit ebdc0eda11

View file

@ -284,11 +284,11 @@ class Parser {
if (useFasta ?? Parser.useFasta) {
return new _Parser2(source, errorListener);
} else {
return new Parser._(source, errorListener);
return new Parser.withoutFasta(source, errorListener);
}
}
Parser._(this._source, this._errorListener);
Parser.withoutFasta(this._source, this._errorListener);
/**
* Return the current token.