| 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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 CoreTypes get coreTypes; | 179 CoreTypes get coreTypes; |
| 180 | 180 |
| 181 void resolveTypedef(TypedefElement typdef); | 181 void resolveTypedef(TypedefElement typdef); |
| 182 void resolveClass(ClassElement cls); | 182 void resolveClass(ClassElement cls); |
| 183 void registerClass(ClassElement cls); | 183 void registerClass(ClassElement cls); |
| 184 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); | 184 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); |
| 185 FunctionSignature resolveSignature(FunctionElement function); | 185 FunctionSignature resolveSignature(FunctionElement function); |
| 186 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); | 186 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); |
| 187 | 187 |
| 188 bool hasBeenResolved(Element element); | 188 bool hasBeenResolved(Element element); |
| 189 | |
| 190 /// Returns the precomputed [WorldImpact] for [element]. | |
| 191 WorldImpact getWorldImpact(Element element); | 189 WorldImpact getWorldImpact(Element element); |
| 192 | |
| 193 /// Computes the [WorldImpact] for [element]. | |
| 194 WorldImpact computeWorldImpact(Element element); | 190 WorldImpact computeWorldImpact(Element element); |
| 195 | |
| 196 /// Removes the [WorldImpact] for [element] from the resolution cache. Later | |
| 197 /// calls to [getWorldImpact] or [computeWorldImpact] returns an empty impact. | |
| 198 void uncacheWorldImpact(Element element); | |
| 199 } | 191 } |
| 200 | 192 |
| 201 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. | 193 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. |
| 202 abstract class Parsing { | 194 abstract class Parsing { |
| 203 DiagnosticReporter get reporter; | 195 DiagnosticReporter get reporter; |
| 204 void parsePatchClass(ClassElement cls); | 196 void parsePatchClass(ClassElement cls); |
| 205 measure(f()); | 197 measure(f()); |
| 206 ScannerOptions getScannerOptionsFor(Element element); | 198 ScannerOptions getScannerOptionsFor(Element element); |
| 207 } | 199 } |
| OLD | NEW |