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

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

Issue 11021008: Added 'dynamic' keyword, so that 'Dynamic' can be deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Updated tests status file with entered co19 issue. Created 8 years, 2 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 30e633ce5e4c08ce6841f6169a1e575c27e2de1c..2fdbb529a86fcbc1cbef0f85718124c0006ff34b 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -984,7 +984,10 @@ class TypeResolver {
}
if (typeName.source.stringValue === 'void') {
return compiler.types.voidType.element;
- } else if (typeName.source.stringValue === 'Dynamic') {
+ } else if (
+ // TODO(aprelev@gmail.com): Remove deprecated Dynamic keyword support.
+ typeName.source.stringValue === 'Dynamic'
+ || typeName.source.stringValue === 'dynamic') {
return compiler.dynamicClass;
} else if (send !== null) {
Element e = scope.lookup(send.receiver.asIdentifier().source);

Powered by Google App Engine
This is Rietveld 408576698