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

Side by Side Diff: pkg/compiler/lib/src/resolved_visitor.dart

Issue 1112843004: Refactor to make visitDynamicSend deprecated. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 7 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 dart2js; 5 part of dart2js;
6 6
7 /// Enum for the visit methods added in [ResolvedVisitor]. 7 /// Enum for the visit methods added in [ResolvedVisitor].
8 // TODO(johnniwinther): Remove this. 8 // TODO(johnniwinther): Remove this.
9 enum ResolvedKind { 9 enum ResolvedKind {
10 ASSERT, 10 ASSERT,
(...skipping 16 matching lines...) Expand all
27 abstract class ResolvedKindVisitor<R> { 27 abstract class ResolvedKindVisitor<R> {
28 @deprecated 28 @deprecated
29 R visitSuperSend(Send node); 29 R visitSuperSend(Send node);
30 30
31 @deprecated 31 @deprecated
32 R visitOperatorSend(Send node); 32 R visitOperatorSend(Send node);
33 R visitGetterSend(Send node); 33 R visitGetterSend(Send node);
34 34
35 @deprecated 35 @deprecated
36 R visitClosureSend(Send node); 36 R visitClosureSend(Send node);
37 @deprecated
37 R visitDynamicSend(Send node); 38 R visitDynamicSend(Send node);
38 R visitStaticSend(Send node); 39 R visitStaticSend(Send node);
39 40
40 R handleSuperConstructorInvoke(Send node); 41 R handleSuperConstructorInvoke(Send node);
41 R handleSendSet(SendSet node); 42 R handleSendSet(SendSet node);
42 R handleNewExpression(NewExpression node); 43 R handleNewExpression(NewExpression node);
43 44
44 /// Visitor callback for a type literal. 45 /// Visitor callback for a type literal.
45 @deprecated 46 @deprecated
46 R visitTypeLiteralSend(Send node); 47 R visitTypeLiteralSend(Send node);
(...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after
191 if (sendStructure != null) { 192 if (sendStructure != null) {
192 var arg = sendVisitor == _resolvedKindDispatcher 193 var arg = sendVisitor == _resolvedKindDispatcher
193 ? kindVisitor : sendStructure; 194 ? kindVisitor : sendStructure;
194 return sendStructure.dispatch(sendVisitor, node, arg); 195 return sendStructure.dispatch(sendVisitor, node, arg);
195 } else { 196 } else {
196 return kindVisitor.visitStaticSend(node); 197 return kindVisitor.visitStaticSend(node);
197 } 198 }
198 } 199 }
199 } 200 }
200 201
202 @override
203 R visitDynamicSend(Send node) {
204 return internalError(node, "visitDynamicSend is deprecated");
205 }
201 206
202 @override 207 @override
203 R visitSuperSend(Send node) { 208 R visitSuperSend(Send node) {
204 internalError(node, "visitSuperSend is deprecated"); 209 return internalError(node, "visitSuperSend is deprecated");
205 } 210 }
206 211
207
208 @override 212 @override
209 R visitOperatorSend(Send node) { 213 R visitOperatorSend(Send node) {
210 return internalError(node, "visitOperaterSend is deprecated"); 214 return internalError(node, "visitOperaterSend is deprecated");
211 } 215 }
212 216
213 @override 217 @override
214 R visitClosureSend(Send node) { 218 R visitClosureSend(Send node) {
215 return internalError(node, "visitClosureSend is deprecated"); 219 return internalError(node, "visitClosureSend is deprecated");
216 } 220 }
217 221
(...skipping 547 matching lines...) Expand 10 before | Expand all | Expand 10 after
765 769
766 @override 770 @override
767 R visitSuperIndex( 771 R visitSuperIndex(
768 Send node, 772 Send node,
769 FunctionElement function, 773 FunctionElement function,
770 Node index, 774 Node index,
771 ResolvedKindVisitor<R> visitor) { 775 ResolvedKindVisitor<R> visitor) {
772 return visitor.visitSuperSend(node); 776 return visitor.visitSuperSend(node);
773 } 777 }
774 } 778 }
OLDNEW
« no previous file with comments | « pkg/compiler/lib/src/inferrer/simple_types_inferrer.dart ('k') | pkg/compiler/lib/src/ssa/builder.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698