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

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: Use reportWarningCode instead of reportWarning, which is going away at some point. 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..ace69a3e8f0b144cc4dbcc32d353efea459dd87e 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.reportWarningCode(node.classKeyword,
+ MessageKind.DEPRECATED_TYPEDEF_MIXIN_SYNTAX);
+ }
+
InterfaceType type = element.computeType(compiler);
scope = new TypeDeclarationScope(scope, element);
resolveTypeVariableBounds(node.typeParameters);

Powered by Google App Engine
This is Rietveld 408576698