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

Unified Diff: pkg/compiler/lib/src/elements/elements.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: Add TODOs. 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/deferred_load.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/compiler/lib/src/elements/elements.dart
diff --git a/pkg/compiler/lib/src/elements/elements.dart b/pkg/compiler/lib/src/elements/elements.dart
index d3e5d5df35af3d876886d830db7f593b48185163..ecf63709dba607ff83a360e8feb364e33559c471 100644
--- a/pkg/compiler/lib/src/elements/elements.dart
+++ b/pkg/compiler/lib/src/elements/elements.dart
@@ -4,6 +4,8 @@
library elements;
+import '../common/resolution.dart' show
+ Resolution;
import '../compiler.dart' show
Compiler;
import '../constants/constructors.dart';
@@ -967,7 +969,7 @@ abstract class TypedefElement extends Element
/// For instance `(int)->void` for `typedef void F(int)`.
DartType get alias;
- void checkCyclicReference(Compiler compiler);
+ void checkCyclicReference(Resolution resolution);
}
/// An executable element is an element that can hold code.
@@ -1315,7 +1317,7 @@ abstract class TypeDeclarationElement extends Element implements AstElement {
/// error and calling [computeType] covers that error.
/// This method will go away!
@deprecated
- GenericType computeType(Compiler compiler);
+ GenericType computeType(Resolution resolution);
/**
* The `this type` for this type declaration.
@@ -1355,7 +1357,7 @@ abstract class TypeDeclarationElement extends Element implements AstElement {
bool get isResolved;
- void ensureResolved(Compiler compiler);
+ void ensureResolved(Resolution resolution);
}
abstract class ClassElement extends TypeDeclarationElement
@@ -1570,7 +1572,7 @@ abstract class MetadataAnnotation implements Spannable {
bool get hasNode;
Node get node;
- MetadataAnnotation ensureResolved(Compiler compiler);
+ MetadataAnnotation ensureResolved(Resolution resolution);
}
/// An [Element] that has a type.
@@ -1582,7 +1584,7 @@ abstract class TypedElement extends Element {
/// error and calling [computeType] covers that error.
/// This method will go away!
@deprecated
- DartType computeType(Compiler compiler);
+ DartType computeType(Resolution resolution);
DartType get type;
}
« no previous file with comments | « pkg/compiler/lib/src/deferred_load.dart ('k') | pkg/compiler/lib/src/elements/modelx.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698