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

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

Issue 10825177: Unify ClassElement and TypedefElement. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
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
« no previous file with comments | « lib/compiler/implementation/ssa/ssa.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/typechecker.dart
diff --git a/lib/compiler/implementation/typechecker.dart b/lib/compiler/implementation/typechecker.dart
index f5a600fa3e08f04b40f497efe977c7630b43dbe0..fbf0cece90c33e08aaf529e95ae8eaeff874b575 100644
--- a/lib/compiler/implementation/typechecker.dart
+++ b/lib/compiler/implementation/typechecker.dart
@@ -30,9 +30,11 @@ interface Type {
}
class TypeVariableType implements Type {
- final SourceString name;
- TypeVariableElement element;
- TypeVariableType(this.name, [this.element]);
+ final TypeVariableElement element;
+
+ TypeVariableType(this.element);
+
+ SourceString get name() => element.name;
toString() => name.slowToString();
}
« no previous file with comments | « lib/compiler/implementation/ssa/ssa.dart ('k') | lib/compiler/implementation/warnings.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698