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

Side by Side Diff: pkg/compiler/lib/src/resolution/send_structure.dart

Issue 1001243003: Pass the call selector for local invocations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 9 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 | tests/compiler/dart2js/semantic_visitor_test.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) 2015, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2015, 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 library dart2js.send_structure; 5 library dart2js.send_structure;
6 6
7 import 'access_semantics.dart'; 7 import 'access_semantics.dart';
8 import 'operators.dart'; 8 import 'operators.dart';
9 import 'semantic_visitor.dart'; 9 import 'semantic_visitor.dart';
10 import '../tree/tree.dart'; 10 import '../tree/tree.dart';
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after
137 node, 137 node,
138 node.receiver, 138 node.receiver,
139 node.argumentsNode, 139 node.argumentsNode,
140 selector, 140 selector,
141 arg); 141 arg);
142 case AccessKind.LOCAL_FUNCTION: 142 case AccessKind.LOCAL_FUNCTION:
143 return visitor.visitLocalFunctionInvoke( 143 return visitor.visitLocalFunctionInvoke(
144 node, 144 node,
145 semantics.element, 145 semantics.element,
146 node.argumentsNode, 146 node.argumentsNode,
147 selector, 147 // TODO(johnniwinther): Store the call selector instead of the
Anders Johnsen 2015/03/13 11:46:37 Call -> Pass
148 // selector using the name of the function.
149 new Selector.callClosureFrom(selector),
148 arg); 150 arg);
149 case AccessKind.LOCAL_VARIABLE: 151 case AccessKind.LOCAL_VARIABLE:
150 return visitor.visitLocalVariableInvoke( 152 return visitor.visitLocalVariableInvoke(
151 node, 153 node,
152 semantics.element, 154 semantics.element,
153 node.argumentsNode, 155 node.argumentsNode,
154 selector, 156 // TODO(johnniwinther): Store the call selector instead of the
157 // selector using the name of the variable.
158 new Selector.callClosureFrom(selector),
155 arg); 159 arg);
156 case AccessKind.PARAMETER: 160 case AccessKind.PARAMETER:
157 return visitor.visitParameterInvoke( 161 return visitor.visitParameterInvoke(
158 node, 162 node,
159 semantics.element, 163 semantics.element,
160 node.argumentsNode, 164 node.argumentsNode,
161 selector, 165 // TODO(johnniwinther): Store the call selector instead of the
166 // selector using the name of the parameter.
167 new Selector.callClosureFrom(selector),
162 arg); 168 arg);
163 case AccessKind.STATIC_FIELD: 169 case AccessKind.STATIC_FIELD:
164 return visitor.visitStaticFieldInvoke( 170 return visitor.visitStaticFieldInvoke(
165 node, 171 node,
166 semantics.element, 172 semantics.element,
167 node.argumentsNode, 173 node.argumentsNode,
168 selector, 174 selector,
169 arg); 175 arg);
170 case AccessKind.STATIC_METHOD: 176 case AccessKind.STATIC_METHOD:
171 return visitor.visitStaticFunctionInvoke( 177 return visitor.visitStaticFunctionInvoke(
(...skipping 1413 matching lines...) Expand 10 before | Expand all | Expand 10 after
1585 compoundSemantics.setter, 1591 compoundSemantics.setter,
1586 operator, 1592 operator,
1587 arg); 1593 arg);
1588 } 1594 }
1589 } 1595 }
1590 throw new SpannableAssertionFailure(node, 1596 throw new SpannableAssertionFailure(node,
1591 "Invalid compound assigment: ${semantics}"); 1597 "Invalid compound assigment: ${semantics}");
1592 } 1598 }
1593 } 1599 }
1594 1600
OLDNEW
« no previous file with comments | « no previous file | tests/compiler/dart2js/semantic_visitor_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698