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

Unified Diff: sdk/lib/_internal/compiler/implementation/resolution/members.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/resolution/members.dart
diff --git a/sdk/lib/_internal/compiler/implementation/resolution/members.dart b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
index 1e34e04793b5df4f554fd8ac975354529ea9616a..568ae79229f3a14c7a3cde9e79e84ff009b63f3e 100644
--- a/sdk/lib/_internal/compiler/implementation/resolution/members.dart
+++ b/sdk/lib/_internal/compiler/implementation/resolution/members.dart
@@ -418,6 +418,17 @@ class ResolverTask extends CompilerTask {
ClassElement currentlyResolvedClass;
Queue<ClassElement> pendingClassesToBeResolved = new Queue<ClassElement>();
+ void resolveMixinApplication(MixinApplicationElement element) {
+ // TODO(kasperl): Implement this.
+ assert(element.resolutionState == STATE_NOT_STARTED);
+ element.resolutionState = STATE_STARTED;
+ compiler.reportMessage(
+ compiler.spanFromSpannable(element.cachedNode),
+ MessageKind.GENERIC.error(['unimplemented mixin application']),
+ Diagnostic.ERROR);
+ element.resolutionState = STATE_DONE;
+ }
+
/**
* Resolve the class [element].
*

Powered by Google App Engine
This is Rietveld 408576698