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

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

Issue 10917170: Improve handling of built-in identifiers. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge
Patch Set: Created 8 years, 3 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: dart/lib/compiler/implementation/resolver.dart
diff --git a/dart/lib/compiler/implementation/resolver.dart b/dart/lib/compiler/implementation/resolver.dart
index afc79e0c9fbb8b0e60db0bb113034f552bb4c75c..978df3e2e2db69cb0ee68ad7338cf472dcd50be4 100644
--- a/dart/lib/compiler/implementation/resolver.dart
+++ b/dart/lib/compiler/implementation/resolver.dart
@@ -828,6 +828,8 @@ class TypeResolver {
}
if (typeName.source.stringValue === 'void') {
return compiler.types.voidType.element;
+ } else if (typeName.source.stringValue === 'Dynamic') {
+ return compiler.dynamicClass;
} else if (send !== null) {
Element e = scope.lookup(send.receiver.asIdentifier().source);
if (e !== null && e.kind === ElementKind.PREFIX) {

Powered by Google App Engine
This is Rietveld 408576698