| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file | 2 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file |
| 3 // for details. All rights reserved. Use of this source code is governed by a | 3 // for details. All rights reserved. Use of this source code is governed by a |
| 4 // BSD-style license that can be found in the LICENSE file. | 4 // BSD-style license that can be found in the LICENSE file. |
| 5 | 5 |
| 6 library dart2js.common.resolution; | 6 library dart2js.common.resolution; |
| 7 | 7 |
| 8 import '../common.dart'; | 8 import '../common.dart'; |
| 9 import '../compiler.dart' show | 9 import '../compiler.dart' show |
| 10 Compiler; | 10 Compiler; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 FunctionElement, | 21 FunctionElement, |
| 22 FunctionSignature, | 22 FunctionSignature, |
| 23 LocalFunctionElement, | 23 LocalFunctionElement, |
| 24 MetadataAnnotation, | 24 MetadataAnnotation, |
| 25 MethodElement, | 25 MethodElement, |
| 26 TypedefElement, | 26 TypedefElement, |
| 27 TypeVariableElement; | 27 TypeVariableElement; |
| 28 import '../enqueue.dart' show | 28 import '../enqueue.dart' show |
| 29 ResolutionEnqueuer, | 29 ResolutionEnqueuer, |
| 30 WorldImpact; | 30 WorldImpact; |
| 31 import '../parser/element_listener.dart' show |
| 32 ScannerOptions; |
| 31 import '../tree/tree.dart' show | 33 import '../tree/tree.dart' show |
| 32 AsyncForIn, | 34 AsyncForIn, |
| 33 Send, | 35 Send, |
| 34 TypeAnnotation; | 36 TypeAnnotation; |
| 35 import '../universe/universe.dart' show | 37 import '../universe/universe.dart' show |
| 36 UniverseSelector; | 38 UniverseSelector; |
| 37 import '../util/util.dart' show | 39 import '../util/util.dart' show |
| 38 Setlet; | 40 Setlet; |
| 39 import 'registry.dart' show | |
| 40 Registry; | |
| 41 import 'work.dart' show | 41 import 'work.dart' show |
| 42 ItemCompilationContext, | 42 ItemCompilationContext, |
| 43 WorkItem; | 43 WorkItem; |
| 44 | 44 |
| 45 /// [WorkItem] used exclusively by the [ResolutionEnqueuer]. | 45 /// [WorkItem] used exclusively by the [ResolutionEnqueuer]. |
| 46 class ResolutionWorkItem extends WorkItem { | 46 class ResolutionWorkItem extends WorkItem { |
| 47 bool _isAnalyzed = false; | 47 bool _isAnalyzed = false; |
| 48 | 48 |
| 49 ResolutionWorkItem(AstElement element, | 49 ResolutionWorkItem(AstElement element, |
| 50 ItemCompilationContext compilationContext) | 50 ItemCompilationContext compilationContext) |
| (...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 bool hasBeenResolved(Element element); | 321 bool hasBeenResolved(Element element); |
| 322 WorldImpact getWorldImpact(Element element); | 322 WorldImpact getWorldImpact(Element element); |
| 323 WorldImpact computeWorldImpact(Element element); | 323 WorldImpact computeWorldImpact(Element element); |
| 324 } | 324 } |
| 325 | 325 |
| 326 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. | 326 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. |
| 327 abstract class Parsing { | 327 abstract class Parsing { |
| 328 DiagnosticReporter get reporter; | 328 DiagnosticReporter get reporter; |
| 329 void parsePatchClass(ClassElement cls); | 329 void parsePatchClass(ClassElement cls); |
| 330 measure(f()); | 330 measure(f()); |
| 331 ScannerOptions getScannerOptionsFor(Element element); |
| 331 } | 332 } |
| OLD | NEW |