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

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 dart2dart test status file with co19 issue as well. 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 373d01e14180cde4112be7ea551770e63a273bd2..629208757c5f4cbf5be975e972492ce5beddb2f0 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);
« no previous file with comments | « lib/compiler/implementation/dart_backend/placeholder_collector.dart ('k') | lib/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698