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

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: changes 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 | « no previous file | dart/frog/leg/frog_leg.dart » ('j') | dart/frog/leg/scanner/scanner_task.dart » ('J')
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 0306806b24e4de28b8d060c2cc21694c7fdd49b3..120d41e5bf0b1363d86993a731321f9fe3dfca3f 100644
--- a/dart/frog/leg/elements/elements.dart
+++ b/dart/frog/leg/elements/elements.dart
@@ -323,7 +323,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);
kasperl 2012/02/15 09:22:30 Would it be cleaner to have a way of querying if t
ahe 2012/02/15 09:46:55 Interesting difference of opinion here: I really p
kasperl 2012/02/15 10:01:29 Yeah, I think it would be neater with something li
ahe 2012/02/15 15:08:42 Actually, this entire method is somewhat broken. I
+ if (type === null) {
+ type = compiler.types.dynamicType;
+ }
+ return type;
}
class FunctionParameters {
« no previous file with comments | « no previous file | dart/frog/leg/frog_leg.dart » ('j') | dart/frog/leg/scanner/scanner_task.dart » ('J')

Powered by Google App Engine
This is Rietveld 408576698