OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file |
2 // for details. All rights reserved. Use of this source code is governed by a | 2 // for details. All rights reserved. Use of this source code is governed by a |
3 // BSD-style license that can be found in the LICENSE file. | 3 // BSD-style license that can be found in the LICENSE file. |
4 | 4 |
5 library analyzer.src.generated.parser; | 5 library analyzer.src.generated.parser; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 import "dart:math" as math; | 8 import "dart:math" as math; |
9 | 9 |
10 import 'package:analyzer/dart/ast/ast.dart'; | 10 import 'package:analyzer/dart/ast/ast.dart'; |
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
201 /** | 201 /** |
202 * A flag indicating whether the parser is to parse the non-nullable modifier | 202 * A flag indicating whether the parser is to parse the non-nullable modifier |
203 * in type names. | 203 * in type names. |
204 */ | 204 */ |
205 bool _enableNnbd = false; | 205 bool _enableNnbd = false; |
206 | 206 |
207 /** | 207 /** |
208 * A flag indicating whether the parser is to allow URI's in part-of | 208 * A flag indicating whether the parser is to allow URI's in part-of |
209 * directives. | 209 * directives. |
210 */ | 210 */ |
211 bool _enableUriInPartOf = false; | 211 bool _enableUriInPartOf = true; |
212 | 212 |
213 /** | 213 /** |
214 * A flag indicating whether parser is to parse function bodies. | 214 * A flag indicating whether parser is to parse function bodies. |
215 */ | 215 */ |
216 bool _parseFunctionBodies = true; | 216 bool _parseFunctionBodies = true; |
217 | 217 |
218 /** | 218 /** |
219 * The next token to be parsed. | 219 * The next token to be parsed. |
220 */ | 220 */ |
221 Token _currentToken; | 221 Token _currentToken; |
(...skipping 8283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
8505 */ | 8505 */ |
8506 Parser_SyntheticKeywordToken(Keyword keyword, int offset) | 8506 Parser_SyntheticKeywordToken(Keyword keyword, int offset) |
8507 : super(keyword, offset); | 8507 : super(keyword, offset); |
8508 | 8508 |
8509 @override | 8509 @override |
8510 int get length => 0; | 8510 int get length => 0; |
8511 | 8511 |
8512 @override | 8512 @override |
8513 Token copy() => new Parser_SyntheticKeywordToken(keyword, offset); | 8513 Token copy() => new Parser_SyntheticKeywordToken(keyword, offset); |
8514 } | 8514 } |
OLD | NEW |