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

Side by Side Diff: sdk/lib/_internal/compiler/implementation/resolution/members.dart

Issue 11275316: Add a new interceptor class JsArray, and support intercepting some list methods with the new interc… (Closed) Base URL: http://dart.googlecode.com/svn/branches/bleeding_edge/dart/
Patch Set: Created 8 years, 1 month 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 resolution; 5 part of resolution;
6 6
7 abstract class TreeElements { 7 abstract class TreeElements {
8 Element operator[](Node node); 8 Element operator[](Node node);
9 Selector getSelector(Send send); 9 Selector getSelector(Send send);
10 DartType getType(Node node); 10 DartType getType(Node node);
(...skipping 2080 matching lines...) Expand 10 before | Expand all | Expand 10 after
2091 } 2091 }
2092 return type; 2092 return type;
2093 } 2093 }
2094 2094
2095 visitModifiers(Modifiers node) { 2095 visitModifiers(Modifiers node) {
2096 // TODO(ngeoffray): Implement this. 2096 // TODO(ngeoffray): Implement this.
2097 unimplemented(node, 'modifiers'); 2097 unimplemented(node, 'modifiers');
2098 } 2098 }
2099 2099
2100 visitLiteralList(LiteralList node) { 2100 visitLiteralList(LiteralList node) {
2101 world.registerInstantiatedClass(compiler.listClass);
2101 NodeList arguments = node.typeArguments; 2102 NodeList arguments = node.typeArguments;
2102 if (arguments != null) { 2103 if (arguments != null) {
2103 Link<Node> nodes = arguments.nodes; 2104 Link<Node> nodes = arguments.nodes;
2104 if (nodes.isEmpty) { 2105 if (nodes.isEmpty) {
2105 error(arguments, MessageKind.MISSING_TYPE_ARGUMENT, []); 2106 error(arguments, MessageKind.MISSING_TYPE_ARGUMENT, []);
2106 } else { 2107 } else {
2107 resolveTypeRequired(nodes.head); 2108 resolveTypeRequired(nodes.head);
2108 for (nodes = nodes.tail; !nodes.isEmpty; nodes = nodes.tail) { 2109 for (nodes = nodes.tail; !nodes.isEmpty; nodes = nodes.tail) {
2109 error(nodes.head, MessageKind.ADDITIONAL_TYPE_ARGUMENT, []); 2110 error(nodes.head, MessageKind.ADDITIONAL_TYPE_ARGUMENT, []);
2110 resolveTypeRequired(nodes.head); 2111 resolveTypeRequired(nodes.head);
(...skipping 1009 matching lines...) Expand 10 before | Expand all | Expand 10 after
3120 return e; 3121 return e;
3121 } 3122 }
3122 3123
3123 /// Assumed to be called by [resolveRedirectingFactory]. 3124 /// Assumed to be called by [resolveRedirectingFactory].
3124 Element visitReturn(Return node) { 3125 Element visitReturn(Return node) {
3125 Node expression = node.expression; 3126 Node expression = node.expression;
3126 return finishConstructorReference(visit(expression), 3127 return finishConstructorReference(visit(expression),
3127 expression, expression); 3128 expression, expression);
3128 } 3129 }
3129 } 3130 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698