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

Unified Diff: sdk/lib/_internal/compiler/implementation/elements/elements.dart

Issue 16549004: Add type arguments to constants. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Adjust test status. Created 7 years, 6 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
Index: sdk/lib/_internal/compiler/implementation/elements/elements.dart
diff --git a/sdk/lib/_internal/compiler/implementation/elements/elements.dart b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
index ea725059aebe9f18af9dfa941a8d9bcf01c51b34..e51c7196c563197e193b20b38aecb2b53597b29c 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -739,6 +739,16 @@ abstract class FunctionElement extends Element {
bool get isRedirectingFactory;
+ /**
+ * Compute the type of the target of a redirecting constructor or factory
+ * for an instantiation site with type [:newType:].
+ *
+ * TODO(karlklose): get rid of this method and resolve the target type
+ * during resolution when we correctly resolve chains of redirections.
+ */
+ InterfaceType computeTargetType(Compiler compiler,
+ InterfaceType newType);
+
// TODO(kasperl): These are bit fishy. Do we really need them?
void set patch(FunctionElement value);
void set origin(FunctionElement value);

Powered by Google App Engine
This is Rietveld 408576698