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

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

Issue 1097933004: Deprecate ResolvedVisitor.visitTypeLiteralSend. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 5 years, 8 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 R visitSuperSend(Send node); 27 R visitSuperSend(Send node);
28 R visitOperatorSend(Send node); 28 R visitOperatorSend(Send node);
29 R visitGetterSend(Send node); 29 R visitGetterSend(Send node);
30 R visitClosureSend(Send node); 30 R visitClosureSend(Send node);
31 R visitDynamicSend(Send node); 31 R visitDynamicSend(Send node);
32 R visitStaticSend(Send node); 32 R visitStaticSend(Send node);
33 R handleSendSet(SendSet node); 33 R handleSendSet(SendSet node);
34 R handleNewExpression(NewExpression node); 34 R handleNewExpression(NewExpression node);
35 35
36 /// Visitor callback for a type literal. 36 /// Visitor callback for a type literal.
37 @deprecated
37 R visitTypeLiteralSend(Send node); 38 R visitTypeLiteralSend(Send node);
38 39
39 /// Visitor callback for the class prefix of a static access, like `Foo` in 40 /// Visitor callback for the class prefix of a static access, like `Foo` in
40 /// `Foo.staticField`. 41 /// `Foo.staticField`.
41 // TODO(johnniwinther): Remove this when not needed by the inferrer. 42 // TODO(johnniwinther): Remove this when not needed by the inferrer.
42 @deprecated 43 @deprecated
43 R visitTypePrefixSend(Send node); 44 R visitTypePrefixSend(Send node);
44 45
45 @deprecated 46 @deprecated
46 R visitAssertSend(Send node); 47 R visitAssertSend(Send node);
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 var arg = sendVisitor == _resolvedKindDispatcher 178 var arg = sendVisitor == _resolvedKindDispatcher
178 ? kindVisitor : sendStructure; 179 ? kindVisitor : sendStructure;
179 return sendStructure.dispatch(sendVisitor, node, arg); 180 return sendStructure.dispatch(sendVisitor, node, arg);
180 } else { 181 } else {
181 return kindVisitor.visitStaticSend(node); 182 return kindVisitor.visitStaticSend(node);
182 } 183 }
183 } 184 }
184 } 185 }
185 186
186 @deprecated 187 @deprecated
188 R visitTypeLiteralSend(Send node) {
189 return internalError(node, "visitTypeLiteralSend is deprecated");
190 }
191
192 @deprecated
187 R visitTypePrefixSend(Send node) { 193 R visitTypePrefixSend(Send node) {
188 return internalError(node, "visitTypePrefixSend is deprecated"); 194 return internalError(node, "visitTypePrefixSend is deprecated");
189 } 195 }
190 196
191 @deprecated 197 @deprecated
192 R visitAssertSend(Send node) { 198 R visitAssertSend(Send node) {
193 return internalError(node, "visitAssertSend is deprecated"); 199 return internalError(node, "visitAssertSend is deprecated");
194 } 200 }
195 201
196 bool checkResolvedKind(Node node, 202 bool checkResolvedKind(Node node,
(...skipping 565 matching lines...) Expand 10 before | Expand all | Expand 10 after
762 768
763 @override 769 @override
764 R errorUnresolvedSuperIndex( 770 R errorUnresolvedSuperIndex(
765 Send node, 771 Send node,
766 Element function, 772 Element function,
767 Node index, 773 Node index,
768 ResolvedKindVisitor<R> visitor) { 774 ResolvedKindVisitor<R> visitor) {
769 return visitor.visitSuperSend(node); 775 return visitor.visitSuperSend(node);
770 } 776 }
771 } 777 }
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