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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 26651006: Switch dart2js 'typedef name = mixinApplication' to 'class name = mixinApplication'. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Support modifiers. Created 7 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: sdk/lib/_internal/compiler/implementation/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index f09879ab20914fcddc018b49ab112a750cde9c09..3cdf32615e30a99354416faef39d719eb3c9df9a 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -3686,6 +3686,13 @@ class ClassResolverVisitor extends TypeDefinitionVisitor {
compiler.ensure(element != null);
compiler.ensure(element.resolutionState == STATE_STARTED);
+ if (identical(node.classKeyword.stringValue, 'typedef')) {
+ // TODO(aprelev@gmail.com): Remove this deprecation diagnostic
+ // together with corresponding TODO in parser.dart.
+ compiler.reportWarning(node.classKeyword,
+ MessageKind.DEPRECATED_TYPEDEF_MIXIN_SYNTAX.message());
ahe 2013/10/11 08:32:27 You should use compiler.reportWarningCode instead,
aam-me 2013/10/11 11:21:32 Ah, I understand. Thanks for the explanation. Swit
+ }
+
InterfaceType type = element.computeType(compiler);
scope = new TypeDeclarationScope(scope, element);
resolveTypeVariableBounds(node.typeParameters);

Powered by Google App Engine
This is Rietveld 408576698