| OLD | NEW |
| 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2012, 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 dart2js.common.resolution; | 5 library dart2js.common.resolution; |
| 6 | 6 |
| 7 import '../common.dart'; | 7 import '../common.dart'; |
| 8 import '../compiler.dart' show Compiler; | 8 import '../compiler.dart' show Compiler; |
| 9 import '../constants/expressions.dart' show ConstantExpression; | 9 import '../constants/expressions.dart' show ConstantExpression; |
| 10 import '../core_types.dart' show CoreTypes; | 10 import '../core_types.dart' show CoreTypes; |
| 11 import '../dart_types.dart' show DartType, InterfaceType; | 11 import '../dart_types.dart' show DartType, InterfaceType; |
| 12 import '../elements/elements.dart' | 12 import '../elements/elements.dart' |
| 13 show | 13 show |
| 14 AstElement, | 14 AstElement, |
| 15 ClassElement, | 15 ClassElement, |
| 16 Element, | 16 Element, |
| 17 ErroneousElement, | |
| 18 FunctionElement, | 17 FunctionElement, |
| 19 FunctionSignature, | 18 FunctionSignature, |
| 20 LocalFunctionElement, | |
| 21 MetadataAnnotation, | 19 MetadataAnnotation, |
| 22 MethodElement, | |
| 23 ResolvedAst, | 20 ResolvedAst, |
| 24 TypedefElement, | 21 TypedefElement; |
| 25 TypeVariableElement; | |
| 26 import '../enqueue.dart' show ResolutionEnqueuer; | 22 import '../enqueue.dart' show ResolutionEnqueuer; |
| 27 import '../options.dart' show ParserOptions; | 23 import '../options.dart' show ParserOptions; |
| 28 import '../parser/element_listener.dart' show ScannerOptions; | 24 import '../parser/element_listener.dart' show ScannerOptions; |
| 29 import '../tree/tree.dart' show AsyncForIn, Send, TypeAnnotation; | 25 import '../tree/tree.dart' show TypeAnnotation; |
| 30 import '../universe/world_impact.dart' show WorldImpact; | 26 import '../universe/world_impact.dart' show WorldImpact; |
| 31 import 'work.dart' show ItemCompilationContext, WorkItem; | 27 import 'work.dart' show ItemCompilationContext, WorkItem; |
| 32 | 28 |
| 33 /// [WorkItem] used exclusively by the [ResolutionEnqueuer]. | 29 /// [WorkItem] used exclusively by the [ResolutionEnqueuer]. |
| 34 class ResolutionWorkItem extends WorkItem { | 30 class ResolutionWorkItem extends WorkItem { |
| 35 bool _isAnalyzed = false; | 31 bool _isAnalyzed = false; |
| 36 | 32 |
| 37 ResolutionWorkItem( | 33 ResolutionWorkItem( |
| 38 AstElement element, ItemCompilationContext compilationContext) | 34 AstElement element, ItemCompilationContext compilationContext) |
| 39 : super(element, compilationContext); | 35 : super(element, compilationContext); |
| (...skipping 197 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 237 } | 233 } |
| 238 | 234 |
| 239 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. | 235 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. |
| 240 abstract class Parsing { | 236 abstract class Parsing { |
| 241 DiagnosticReporter get reporter; | 237 DiagnosticReporter get reporter; |
| 242 void parsePatchClass(ClassElement cls); | 238 void parsePatchClass(ClassElement cls); |
| 243 measure(f()); | 239 measure(f()); |
| 244 ScannerOptions getScannerOptionsFor(Element element); | 240 ScannerOptions getScannerOptionsFor(Element element); |
| 245 ParserOptions get parserOptions; | 241 ParserOptions get parserOptions; |
| 246 } | 242 } |
| OLD | NEW |