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

Side by Side Diff: tests/compiler/dart2js/semantic_visitor_test_send_visitor.dart

Issue 1149403009: Refactoring resolution of local access and unqualified access of statics (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Fix after rebase Created 5 years, 6 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
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 part of dart2js.semantics_visitor_test; 5 part of dart2js.semantics_visitor_test;
6 6
7 class SemanticSendTestVisitor extends SemanticTestVisitor { 7 class SemanticSendTestVisitor extends SemanticTestVisitor {
8 8
9 SemanticSendTestVisitor(TreeElements elements) : super(elements); 9 SemanticSendTestVisitor(TreeElements elements) : super(elements);
10 10
(...skipping 280 matching lines...) Expand 10 before | Expand all | Expand 10 after
291 291
292 @override 292 @override
293 visitLocalFunctionInvoke( 293 visitLocalFunctionInvoke(
294 Send node, 294 Send node,
295 LocalFunctionElement function, 295 LocalFunctionElement function,
296 NodeList arguments, 296 NodeList arguments,
297 CallStructure callStructure, 297 CallStructure callStructure,
298 arg) { 298 arg) {
299 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE, 299 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INVOKE,
300 element: function, arguments: arguments, selector: callStructure)); 300 element: function, arguments: arguments, selector: callStructure));
301 apply(arguments, arg); 301 super.visitLocalFunctionInvoke(
302 node, function, arguments, callStructure, arg);
302 } 303 }
303 304
304 @override 305 @override
306 visitLocalFunctionIncompatibleInvoke(
307 Send node,
308 LocalFunctionElement function,
309 NodeList arguments,
310 CallStructure callStructure,
311 arg) {
312 visits.add(new Visit(VisitKind.VISIT_LOCAL_FUNCTION_INCOMPATIBLE_INVOKE,
313 element: function, arguments: arguments, selector: callStructure));
314 super.visitLocalFunctionInvoke(
315 node, function, arguments, callStructure, arg);
316 }
317
318 @override
305 visitLocalVariableGet( 319 visitLocalVariableGet(
306 Send node, 320 Send node,
307 LocalVariableElement variable, 321 LocalVariableElement variable,
308 arg) { 322 arg) {
309 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET, 323 visits.add(new Visit(VisitKind.VISIT_LOCAL_VARIABLE_GET,
310 element: variable)); 324 element: variable));
311 } 325 }
312 326
313 @override 327 @override
314 visitLocalVariableInvoke( 328 visitLocalVariableInvoke(
(...skipping 2605 matching lines...) Expand 10 before | Expand all | Expand 10 after
2920 Send node, 2934 Send node,
2921 ConstantExpression constant, 2935 ConstantExpression constant,
2922 NodeList arguments, 2936 NodeList arguments,
2923 CallStructure callStructure, 2937 CallStructure callStructure,
2924 arg) { 2938 arg) {
2925 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE, 2939 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE,
2926 constant: constant.getText())); 2940 constant: constant.getText()));
2927 super.visitConstantInvoke(node, constant, arguments, callStructure, arg); 2941 super.visitConstantInvoke(node, constant, arguments, callStructure, arg);
2928 } 2942 }
2929 } 2943 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_send_data.dart ('k') | tests/compiler/dart2js/simple_inferrer_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698