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

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: 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: lib/compiler/implementation/resolver.dart
diff --git a/lib/compiler/implementation/resolver.dart b/lib/compiler/implementation/resolver.dart
index ef8c2274e9123266caef50952b78fc5b8ae411e7..dae6d4f0db1d0674caf5756b7278a3d5955e9ac0 100644
--- a/lib/compiler/implementation/resolver.dart
+++ b/lib/compiler/implementation/resolver.dart
@@ -855,7 +855,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