| 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; |
| 11 import 'package:analyzer/dart/element/element.dart' show Element; | 11 import 'package:analyzer/dart/element/element.dart' show Element; |
| 12 import '../parser/parser.dart' show FormalParameterType; | 12 import 'package:front_end/src/fasta/parser/parser.dart' show FormalParameterType
; |
| 13 import '../scanner/token.dart' show BeginGroupToken, Token; | 13 import 'package:front_end/src/fasta/scanner/token.dart' show BeginGroupToken, To
ken; |
| 14 | 14 |
| 15 import '../errors.dart' show internalError; | 15 import 'package:front_end/src/fasta/errors.dart' show internalError; |
| 16 import '../kernel/kernel_builder.dart' | 16 import 'package:front_end/src/fasta/kernel/kernel_builder.dart' |
| 17 show Builder, KernelLibraryBuilder, ProcedureBuilder; | 17 show Builder, KernelLibraryBuilder, ProcedureBuilder; |
| 18 import '../parser/identifier_context.dart' show IdentifierContext; | 18 import 'package:front_end/src/fasta/parser/identifier_context.dart' show Identif
ierContext; |
| 19 import '../quote.dart'; | 19 import 'package:front_end/src/fasta/quote.dart'; |
| 20 import '../source/scope_listener.dart' | 20 import 'package:front_end/src/fasta/source/scope_listener.dart' |
| 21 show JumpTargetKind, NullValue, Scope, ScopeListener; | 21 show JumpTargetKind, NullValue, Scope, ScopeListener; |
| 22 import 'analyzer.dart' show toKernel; | 22 import 'analyzer.dart' show toKernel; |
| 23 import 'element_store.dart' | 23 import 'element_store.dart' |
| 24 show | 24 show |
| 25 AnalyzerLocalVariableElemment, | 25 AnalyzerLocalVariableElemment, |
| 26 AnalyzerParameterElement, | 26 AnalyzerParameterElement, |
| 27 ElementStore, | 27 ElementStore, |
| 28 KernelClassElement; | 28 KernelClassElement; |
| 29 import 'token_utils.dart' show toAnalyzerToken, toAnalyzerCommentToken; | 29 import 'token_utils.dart' show toAnalyzerToken, toAnalyzerCommentToken; |
| 30 | 30 |
| (...skipping 1736 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1767 } else if (identical('static', s)) { | 1767 } else if (identical('static', s)) { |
| 1768 staticKeyword = token; | 1768 staticKeyword = token; |
| 1769 } else if (identical('var', s)) { | 1769 } else if (identical('var', s)) { |
| 1770 finalConstOrVarKeyword = token; | 1770 finalConstOrVarKeyword = token; |
| 1771 } else { | 1771 } else { |
| 1772 internalError('Unhandled modifier: $s'); | 1772 internalError('Unhandled modifier: $s'); |
| 1773 } | 1773 } |
| 1774 } | 1774 } |
| 1775 } | 1775 } |
| 1776 } | 1776 } |
| OLD | NEW |