| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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 fasta.analyzer.ast_builder; | 5 library fasta.analyzer.ast_builder; |
| 6 | 6 |
| 7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
| 8 import 'package:analyzer/dart/ast/ast_factory.dart' show AstFactory; | 8 import 'package:analyzer/dart/ast/ast_factory.dart' show AstFactory; |
| 9 import 'package:analyzer/dart/ast/standard_ast_factory.dart' as standard; | 9 import 'package:analyzer/dart/ast/standard_ast_factory.dart' as standard; |
| 10 import 'package:analyzer/dart/ast/token.dart' as analyzer show Token; | 10 import 'package:analyzer/dart/ast/token.dart' as analyzer show Token; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 37 | 37 |
| 38 final KernelLibraryBuilder library; | 38 final KernelLibraryBuilder library; |
| 39 | 39 |
| 40 final Builder member; | 40 final Builder member; |
| 41 | 41 |
| 42 final ElementStore elementStore; | 42 final ElementStore elementStore; |
| 43 | 43 |
| 44 @override | 44 @override |
| 45 final Uri uri; | 45 final Uri uri; |
| 46 | 46 |
| 47 /// If `true`, the first call to [handleIdentifier] should push a | |
| 48 /// List<SimpleIdentifier> on the stack, and [handleQualified] should append | |
| 49 /// to the list. | |
| 50 var accumulateIdentifierComponents = false; | |
| 51 | |
| 52 /// The name of the class currently being parsed, or `null` if no class is | 47 /// The name of the class currently being parsed, or `null` if no class is |
| 53 /// being parsed. | 48 /// being parsed. |
| 54 String className; | 49 String className; |
| 55 | 50 |
| 56 AstBuilder(this.library, this.member, this.elementStore, Scope scope, | 51 AstBuilder(this.library, this.member, this.elementStore, Scope scope, |
| 57 [Uri uri]) | 52 [Uri uri]) |
| 58 : uri = uri ?? library.fileUri, | 53 : uri = uri ?? library.fileUri, |
| 59 super(scope); | 54 super(scope); |
| 60 | 55 |
| 61 createJumpTarget(JumpTargetKind kind, int charOffset) { | 56 createJumpTarget(JumpTargetKind kind, int charOffset) { |
| (...skipping 1395 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1457 } else if (identical('static', s)) { | 1452 } else if (identical('static', s)) { |
| 1458 staticKeyword = token; | 1453 staticKeyword = token; |
| 1459 } else if (identical('var', s)) { | 1454 } else if (identical('var', s)) { |
| 1460 finalConstOrVarKeyword = token; | 1455 finalConstOrVarKeyword = token; |
| 1461 } else { | 1456 } else { |
| 1462 internalError('Unhandled modifier: $s'); | 1457 internalError('Unhandled modifier: $s'); |
| 1463 } | 1458 } |
| 1464 } | 1459 } |
| 1465 } | 1460 } |
| 1466 } | 1461 } |
| OLD | NEW |