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

Unified Diff: sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart

Issue 11878043: Start adding support for mixin application syntax. We now parse the typedef variant of mixin applic… (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fix broken language test. 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
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
diff --git a/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart b/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
index 4c4547d72617a7b40080914d47fa70122faca123..cd0f527edfca3afb9721e73d0d41aefc4d3cd504 100644
--- a/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
+++ b/sdk/lib/_internal/compiler/implementation/dart_backend/utils.dart
@@ -117,6 +117,16 @@ class CloningVisitor implements Visitor<Node> {
visitLiteralString(LiteralString node) => new LiteralString(
node.token, node.dartString);
+ visitMixinApplication(MixinApplication node) => new MixinApplication(
+ visit(node.modifiers), visit(node.superclass), visit(node.mixins));
+
+ visitNamedMixinApplication(NamedMixinApplication node) =>
+ new NamedMixinApplication(node.name,
+ node.typeParameters,
+ node.mixinApplication,
+ node.typedefKeyword,
+ node.endToken);
+
visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes));
visitNamedArgument(NamedArgument node) => new NamedArgument(
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698