| 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 '../compiler.dart' show | 8 import '../compiler.dart' show |
| 9 Compiler; | 9 Compiler; |
| 10 import '../core_types.dart' show | 10 import '../core_types.dart' show |
| 11 CoreTypes; | 11 CoreTypes; |
| 12 import '../dart_types.dart' show | 12 import '../dart_types.dart' show |
| 13 DartType; | 13 DartType; |
| 14 import '../diagnostics/diagnostic_listener.dart' show | 14 import '../diagnostics/diagnostic_listener.dart' show |
| 15 DiagnosticListener; | 15 DiagnosticReporter; |
| 16 import '../elements/elements.dart' show | 16 import '../elements/elements.dart' show |
| 17 AstElement, | 17 AstElement, |
| 18 ClassElement, | 18 ClassElement, |
| 19 Element, | 19 Element, |
| 20 ErroneousElement, | 20 ErroneousElement, |
| 21 FunctionElement, | 21 FunctionElement, |
| 22 FunctionSignature, | 22 FunctionSignature, |
| 23 MetadataAnnotation, | 23 MetadataAnnotation, |
| 24 TypedefElement, | 24 TypedefElement, |
| 25 TypeVariableElement; | 25 TypeVariableElement; |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 129 /// Called when resolving the `Symbol` constructor. | 129 /// Called when resolving the `Symbol` constructor. |
| 130 void onSymbolConstructor(Registry registry) {} | 130 void onSymbolConstructor(Registry registry) {} |
| 131 | 131 |
| 132 /// Called when resolving a prefix or postfix expression. | 132 /// Called when resolving a prefix or postfix expression. |
| 133 void onIncDecOperation(Registry registry) {} | 133 void onIncDecOperation(Registry registry) {} |
| 134 } | 134 } |
| 135 | 135 |
| 136 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. | 136 // TODO(johnniwinther): Rename to `Resolver` or `ResolverContext`. |
| 137 abstract class Resolution { | 137 abstract class Resolution { |
| 138 Parsing get parsing; | 138 Parsing get parsing; |
| 139 DiagnosticListener get listener; | 139 DiagnosticReporter get reporter; |
| 140 CoreTypes get coreTypes; | 140 CoreTypes get coreTypes; |
| 141 | 141 |
| 142 void resolveTypedef(TypedefElement typdef); | 142 void resolveTypedef(TypedefElement typdef); |
| 143 void resolveClass(ClassElement cls); | 143 void resolveClass(ClassElement cls); |
| 144 void registerClass(ClassElement cls); | 144 void registerClass(ClassElement cls); |
| 145 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); | 145 void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation); |
| 146 FunctionSignature resolveSignature(FunctionElement function); | 146 FunctionSignature resolveSignature(FunctionElement function); |
| 147 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); | 147 DartType resolveTypeAnnotation(Element element, TypeAnnotation node); |
| 148 } | 148 } |
| 149 | 149 |
| 150 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. | 150 // TODO(johnniwinther): Rename to `Parser` or `ParsingContext`. |
| 151 abstract class Parsing { | 151 abstract class Parsing { |
| 152 DiagnosticListener get listener; | 152 DiagnosticReporter get reporter; |
| 153 void parsePatchClass(ClassElement cls); | 153 void parsePatchClass(ClassElement cls); |
| 154 measure(f()); | 154 measure(f()); |
| 155 } | 155 } |
| OLD | NEW |