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

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

Issue 10091037: Clean up handling of types. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Remove debug code. 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
Index: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index f95f53397eeca154118daa996aa34707f5b21d25..99a97c519dd308ae6be0878e36b6a717b789d0bf 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -847,7 +847,7 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
Type resolveTypeTest(Node argument) {
TypeAnnotation node = argument.asTypeAnnotation();
- if (node == null) {
+ if (node === null) {
// node is of the form !Type.
node = argument.asSend().receiver.asTypeAnnotation();
if (node === null) compiler.cancel("malformed send");
@@ -1061,10 +1061,6 @@ class ResolverVisitor extends CommonResolverVisitor<Element> {
typeName = send.selector;
}
if (typeName.source == Types.VOID) return compiler.types.voidType.element;
- if (typeName.source == Types.DYNAMIC ||
- typeName.source.stringValue == "var") {
- return compiler.types.dynamicType.element;
- }
if (send !== null) {
Element e = context.lookup(send.receiver.asIdentifier().source);
if (e !== null && e.kind === ElementKind.PREFIX) {

Powered by Google App Engine
This is Rietveld 408576698