Chromium Code Reviews| 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); |