mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 10:49:00 +00:00
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:
parent
42e2ae40e8
commit
ebdc0eda11
1 changed files with 2 additions and 2 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue