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

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

Issue 11953048: Support 'implements' clause on typedef mixin applications. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Merge. 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
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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
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( 120 visitMixinApplication(MixinApplication node) => new MixinApplication(
121 visit(node.modifiers), visit(node.superclass), visit(node.mixins)); 121 visit(node.superclass), visit(node.mixins));
122 122
123 visitNamedMixinApplication(NamedMixinApplication node) => 123 visitNamedMixinApplication(NamedMixinApplication node) =>
124 new NamedMixinApplication(node.name, 124 new NamedMixinApplication(visit(node.name),
125 node.typeParameters, 125 visit(node.typeParameters),
126 node.mixinApplication, 126 visit(node.modifiers),
127 visit(node.mixinApplication),
127 node.typedefKeyword, 128 node.typedefKeyword,
128 node.endToken); 129 node.endToken);
129 130
130 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes)); 131 visitModifiers(Modifiers node) => new Modifiers(visit(node.nodes));
131 132
132 visitNamedArgument(NamedArgument node) => new NamedArgument( 133 visitNamedArgument(NamedArgument node) => new NamedArgument(
133 visit(node.name), node.colonToken, visit(node.expression)); 134 visit(node.name), node.colonToken, visit(node.expression));
134 135
135 visitNewExpression(NewExpression node) => new NewExpression( 136 visitNewExpression(NewExpression node) => new NewExpression(
136 node.newToken, visit(node.send)); 137 node.newToken, visit(node.send));
(...skipping 145 matching lines...) Expand 10 before | Expand all | Expand 10 after
282 } 283 }
283 284
284 Node visitStringNode(StringNode node) { 285 Node visitStringNode(StringNode node) {
285 unimplemented('visitNode', node: node); 286 unimplemented('visitNode', node: node);
286 } 287 }
287 288
288 unimplemented(String message, {Node node}) { 289 unimplemented(String message, {Node node}) {
289 throw message; 290 throw message;
290 } 291 }
291 } 292 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698