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 13 matching lines...) Expand all Loading... |
24 FunctionSignature, | 24 FunctionSignature, |
25 LocalFunctionElement, | 25 LocalFunctionElement, |
26 MetadataAnnotation, | 26 MetadataAnnotation, |
27 MethodElement, | 27 MethodElement, |
28 TypedefElement, | 28 TypedefElement, |
29 TypeVariableElement; | 29 TypeVariableElement; |
30 import '../enqueue.dart' show | 30 import '../enqueue.dart' show |
31 ResolutionEnqueuer; | 31 ResolutionEnqueuer; |
32 import '../parser/element_listener.dart' show | 32 import '../parser/element_listener.dart' show |
33 ScannerOptions; | 33 ScannerOptions; |
| 34 import '../parser/parser.dart' show |
| 35 ParserOptions; |
34 import '../tree/tree.dart' show | 36 import '../tree/tree.dart' show |
35 AsyncForIn, | 37 AsyncForIn, |
36 Send, | 38 Send, |
37 TypeAnnotation; | 39 TypeAnnotation; |
38 import '../universe/world_impact.dart' show | 40 import '../universe/world_impact.dart' show |
39 WorldImpact; | 41 WorldImpact; |
40 import 'work.dart' show | 42 import 'work.dart' show |
41 ItemCompilationContext, | 43 ItemCompilationContext, |
42 WorkItem; | 44 WorkItem; |
43 | 45 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
198 void uncacheWorldImpact(Element element); | 200 void uncacheWorldImpact(Element element); |
199 | 201 |
200 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. , | 202 /// Removes the [WorldImpact]s for all [Element]s in the resolution cache. , |
201 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty | 203 /// Later calls to [getWorldImpact] or [computeWorldImpact] returns an empty |
202 /// impact. | 204 /// impact. |
203 void emptyCache(); | 205 void emptyCache(); |
204 } | 206 } |
205 | 207 |
206 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. | 208 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. |
207 abstract class Parsing { | 209 abstract class Parsing { |
| 210 ParserOptions get parserOptions; |
208 DiagnosticReporter get reporter; | 211 DiagnosticReporter get reporter; |
209 void parsePatchClass(ClassElement cls); | 212 void parsePatchClass(ClassElement cls); |
210 measure(f()); | 213 measure(f()); |
211 ScannerOptions getScannerOptionsFor(Element element); | 214 ScannerOptions getScannerOptionsFor(Element element); |
212 } | 215 } |
OLD | NEW |