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

Unified Diff: sdk/lib/_internal/compiler/implementation/scanner/listener.dart

Issue 11970011: Add an element for mixin applications. For now, the resolver complains about mixin applications -- … (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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/scanner/listener.dart
diff --git a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
index c668856a91b242efa1fb4f6b7207f1ab694b5f87..04440fc08af84cb3c4c29b2dc4069e29c2051ab0 100644
--- a/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
+++ b/sdk/lib/_internal/compiler/implementation/scanner/listener.dart
@@ -827,14 +827,14 @@ class ElementListener extends Listener {
}
void endNamedMixinApplication(Token typedefKeyword, Token endToken) {
- Node mixinApplication = popNode();
+ MixinApplication mixinApplication = popNode();
NodeList typeVariables = popNode();
Identifier name = popNode();
+ int id = idGenerator();
+ Element enclosing = compilationUnitElement;
+ pushElement(new MixinApplicationElementX(
+ name.source, enclosing, id, mixinApplication));
rejectBuiltInIdentifier(name);
- // TODO(kasperl): Push an element corresponding to the named mixin
- // application instead of rejecting this.
- recoverableError('unsupported mixin application in typedef',
- node: mixinApplication);
}
void endMixinApplication() {

Powered by Google App Engine
This is Rietveld 408576698