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

Unified Diff: dart/frog/leg/elements/elements.dart

Issue 9359039: Source in most stuff. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: rebased Created 8 years, 10 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 | « dart/frog/leg/compiler.dart ('k') | dart/frog/leg/frog_leg.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: dart/frog/leg/elements/elements.dart
diff --git a/dart/frog/leg/elements/elements.dart b/dart/frog/leg/elements/elements.dart
index 679a878b0d3275e000a472c701019c68518da02d..a040957d5cce3957361a4c547c3b2947d5bc0519 100644
--- a/dart/frog/leg/elements/elements.dart
+++ b/dart/frog/leg/elements/elements.dart
@@ -327,7 +327,11 @@ Type getType(TypeAnnotation typeAnnotation,
// TODO(karlklose): substitute type parameters.
return element.computeType(compiler);
}
- return compiler.types.lookup(name);
+ Type type = compiler.types.lookup(name);
+ if (type === null) {
+ type = compiler.types.dynamicType;
+ }
+ return type;
}
class FunctionParameters {
« no previous file with comments | « dart/frog/leg/compiler.dart ('k') | dart/frog/leg/frog_leg.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698