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

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: Address comments. 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 efa30eb5135224ba429f127ba84fe3c92ecdd183..2bd5812663ef3023a38e94c602f19a8ae01eece0 100644
--- a/sdk/lib/_internal/compiler/implementation/elements/elements.dart
+++ b/sdk/lib/_internal/compiler/implementation/elements/elements.dart
@@ -749,6 +749,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