Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(38)

Unified Diff: pkg/compiler/lib/src/common/resolution.dart

Issue 1383503002: Add Resolution and Parsing interfaces for computeType, ensureResolved and parseNode. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Created 5 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/common/resolution.dart
diff --git a/pkg/compiler/lib/src/common/resolution.dart b/pkg/compiler/lib/src/common/resolution.dart
index 86a21bd10afd65ab064488a894d3c5613006af02..b52daaa53095c65fda23f5f3a313d4a91e11eeff 100644
--- a/pkg/compiler/lib/src/common/resolution.dart
+++ b/pkg/compiler/lib/src/common/resolution.dart
@@ -6,18 +6,29 @@ library dart2js.common.resolution;
import '../compiler.dart' show
Compiler;
+import '../core_types.dart' show
+ CoreTypes;
import '../dart_types.dart' show
DartType;
+import '../diagnostics/diagnostic_listener.dart' show
+ DiagnosticListener;
import '../elements/elements.dart' show
AstElement,
+ ClassElement,
+ Element,
ErroneousElement,
+ FunctionElement,
+ FunctionSignature,
+ MetadataAnnotation,
+ TypedefElement,
TypeVariableElement;
import '../enqueue.dart' show
ResolutionEnqueuer,
WorldImpact;
import '../tree/tree.dart' show
AsyncForIn,
- Send;
+ Send,
+ TypeAnnotation;
import 'registry.dart' show
Registry;
import 'work.dart' show
@@ -120,3 +131,22 @@ class ResolutionCallbacks {
/// Called when resolving a prefix or postfix expression.
void onIncDecOperation(Registry registry) {}
}
+
+abstract class Resolution {
sigurdm 2015/10/01 08:54:13 Perhaps `Resolver`
Johnni Winther 2015/10/01 09:33:52 Added a TODO.
+ Parsing get parsing;
+ DiagnosticListener get listener;
+ CoreTypes get coreTypes;
+
+ void resolveTypedef(TypedefElement typdef);
+ void resolveClass(ClassElement cls);
+ void registerClass(ClassElement cls);
+ void resolveMetadataAnnotation(MetadataAnnotation metadataAnnotation);
+ FunctionSignature resolveSignature(FunctionElement function);
+ DartType resolveTypeAnnotation(Element element, TypeAnnotation node);
+}
+
+abstract class Parsing {
sigurdm 2015/10/01 08:54:13 Perhaps `ParsingContext`
Johnni Winther 2015/10/01 09:33:53 Added a TODO.
+ DiagnosticListener get listener;
+ void parsePatchClass(ClassElement cls);
+ measure(f());
+}
« no previous file with comments | « pkg/compiler/lib/src/closure.dart ('k') | pkg/compiler/lib/src/compile_time_constants.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698