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

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

Issue 1238783003: Handle deferred access as pre-step in SemanticSendVisitor. (Closed) Base URL: https://github.com/dart-lang/sdk.git@master
Patch Set: Updated cf. comments. Created 5 years, 5 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
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_send_data.dart ('k') | no next file » | 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 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 2922 matching lines...) Expand 10 before | Expand all | Expand 10 after
2933 visitConstantInvoke( 2933 visitConstantInvoke(
2934 Send node, 2934 Send node,
2935 ConstantExpression constant, 2935 ConstantExpression constant,
2936 NodeList arguments, 2936 NodeList arguments,
2937 CallStructure callStructure, 2937 CallStructure callStructure,
2938 arg) { 2938 arg) {
2939 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE, 2939 visits.add(new Visit(VisitKind.VISIT_CONSTANT_INVOKE,
2940 constant: constant.getText())); 2940 constant: constant.getText()));
2941 super.visitConstantInvoke(node, constant, arguments, callStructure, arg); 2941 super.visitConstantInvoke(node, constant, arguments, callStructure, arg);
2942 } 2942 }
2943
2944 @override
2945 previsitDeferredAccess(
2946 Send node,
2947 PrefixElement prefix,
2948 arg) {
2949 visits.add(new Visit(VisitKind.PREVISIT_DEFERRED_ACCESS, element: prefix));
2950 }
2943 } 2951 }
OLDNEW
« no previous file with comments | « tests/compiler/dart2js/semantic_visitor_test_send_data.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698