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

Unified Diff: dart/lib/compiler/implementation/typechecker.dart

Issue 10661029: Ensure interfaces are loaded. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 4 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: dart/lib/compiler/implementation/typechecker.dart
diff --git a/dart/lib/compiler/implementation/typechecker.dart b/dart/lib/compiler/implementation/typechecker.dart
index fbf0cece90c33e08aaf529e95ae8eaeff874b575..2c259b3ce7f096e28e5549fd5f2fb0e7669813e8 100644
--- a/dart/lib/compiler/implementation/typechecker.dart
+++ b/dart/lib/compiler/implementation/typechecker.dart
@@ -93,11 +93,11 @@ class InterfaceType implements Type {
class FunctionType implements Type {
final Element element;
- final Type returnType;
- final Link<Type> parameterTypes;
+ Type returnType;
+ Link<Type> parameterTypes;
- const FunctionType(Type this.returnType, Link<Type> this.parameterTypes,
- Element this.element);
+ FunctionType(Type this.returnType, Link<Type> this.parameterTypes,
+ Element this.element);
toString() {
StringBuffer sb = new StringBuffer();
@@ -115,6 +115,13 @@ class FunctionType implements Type {
parameterTypes.forEach((_) { arity++; });
return arity;
}
+
+ void initializeFrom(FunctionType other) {
Lasse Reichstein Nielsen 2012/08/07 09:02:17 Why is this not a constructor? I only see one use
+ assert(returnType === null);
+ assert(parameterTypes === null);
+ returnType = other.returnType;
+ parameterTypes = other.parameterTypes;
+ }
}
class Types {

Powered by Google App Engine
This is Rietveld 408576698