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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | sdk/lib/_internal/compiler/implementation/scanner/keyword.dart » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 part of dart_backend; 5 part of dart_backend;
6 6
7 class CloningVisitor implements Visitor<Node> { 7 class CloningVisitor implements Visitor<Node> {
8 final TreeElements originalTreeElements; 8 final TreeElements originalTreeElements;
9 final TreeElementMapping cloneTreeElements; 9 final TreeElementMapping cloneTreeElements;
10 10
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 visit(node.typeArguments), visit(node.entries), node.constKeyword); 110 visit(node.typeArguments), visit(node.entries), node.constKeyword);
111 111
112 visitLiteralMapEntry(LiteralMapEntry node) => new LiteralMapEntry( 112 visitLiteralMapEntry(LiteralMapEntry node) => new LiteralMapEntry(
113 visit(node.key), node.colonToken, visit(node.value)); 113 visit(node.key), node.colonToken, visit(node.value));
114 114
115 visitLiteralNull(LiteralNull node) => new LiteralNull(node.token); 115 visitLiteralNull(LiteralNull node) => new LiteralNull(node.token);
116 116
117 visitLiteralString(LiteralString node) => new LiteralString( 117 visitLiteralString(LiteralString node) => new LiteralString(
118 node.token, node.dartString); 118 node.token, node.dartString);
119 119
120 visitMixinApplication(MixinApplication node) => new MixinApplication(
121 visit(node.modifiers), visit(node.superclass), visit(node.mixins));
122
123 visitNamedMixinApplication(NamedMixinApplication node) =>
124 new NamedMixinApplication(node.name,
125 node.typeParameters,
126 node.mixinApplication,
127 node.typedefKeyword,
128 node.endToken);
129
120 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes)); 130 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes));
121 131
122 visitNamedArgument(NamedArgument node) => new NamedArgument( 132 visitNamedArgument(NamedArgument node) => new NamedArgument(
123 visit(node.name), node.colonToken, visit(node.expression)); 133 visit(node.name), node.colonToken, visit(node.expression));
124 134
125 visitNewExpression(NewExpression node) => new NewExpression( 135 visitNewExpression(NewExpression node) => new NewExpression(
126 node.newToken, visit(node.send)); 136 node.newToken, visit(node.send));
127 137
128 rewriteNodeList(NodeList node, Link link) => 138 rewriteNodeList(NodeList node, Link link) =>
129 new NodeList(node.beginToken, link, node.endToken, node.delimiter); 139 new NodeList(node.beginToken, link, node.endToken, node.delimiter);
(...skipping 142 matching lines...) Expand 10 before | Expand all | Expand 10 after
272 } 282 }
273 283
274 Node visitStringNode(StringNode node) { 284 Node visitStringNode(StringNode node) {
275 unimplemented('visitNode', node: node); 285 unimplemented('visitNode', node: node);
276 } 286 }
277 287
278 unimplemented(String message, {Node node}) { 288 unimplemented(String message, {Node node}) {
279 throw message; 289 throw message;
280 } 290 }
281 } 291 }
OLDNEW
« 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