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

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

Issue 10105027: Remove SimpleType. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 8 years, 8 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/elements/elements.dart ('k') | lib/compiler/implementation/typechecker.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index f95f53397eeca154118daa996aa34707f5b21d25..af44051e16cb658662b9e87929371be9c7283f3b 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -1118,7 +1118,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
} else if (element.isTypedef()) {
// TODO(karlklose): implement typedefs. We return a fake type that the
// code generator can use to detect typedefs in is-checks.
- type = new SimpleType(element.name, element);
+ type = new InterfaceType(element.name, element);
} else {
type = element.computeType(compiler);
}
@@ -1413,7 +1413,7 @@ class ClassResolverVisitor extends CommonResolverVisitor<Type> {
} else if (objectElement === null){
error(node, MessageKind.CANNOT_RESOLVE_TYPE, [Types.OBJECT]);
}
- classElement.supertype = new SimpleType(Types.OBJECT, objectElement);
+ classElement.supertype = new InterfaceType(Types.OBJECT, objectElement);
}
if (node.defaultClause !== null) {
classElement.defaultClass = visit(node.defaultClause);
« no previous file with comments | « lib/compiler/implementation/elements/elements.dart ('k') | lib/compiler/implementation/typechecker.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698