OLD | NEW |
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 library dart2js.resolved_visitor; | 5 library dart2js.resolved_visitor; |
6 | 6 |
7 import 'constants/expressions.dart'; | 7 import 'constants/expressions.dart'; |
8 import 'dart_types.dart' show | 8 import 'dart_types.dart' show |
9 DartType; | 9 DartType; |
10 import 'diagnostics/invariant.dart' show | 10 import 'diagnostics/invariant.dart' show |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 R visitSuperSend(Send node); | 61 R visitSuperSend(Send node); |
62 | 62 |
63 @deprecated | 63 @deprecated |
64 R visitOperatorSend(Send node); | 64 R visitOperatorSend(Send node); |
65 R visitGetterSend(Send node); | 65 R visitGetterSend(Send node); |
66 | 66 |
67 @deprecated | 67 @deprecated |
68 R visitClosureSend(Send node); | 68 R visitClosureSend(Send node); |
69 @deprecated | 69 @deprecated |
70 R visitDynamicSend(Send node); | 70 R visitDynamicSend(Send node); |
| 71 @deprecated |
71 R visitStaticSend(Send node); | 72 R visitStaticSend(Send node); |
72 | 73 |
73 R handleSuperConstructorInvoke(Send node); | 74 R handleSuperConstructorInvoke(Send node); |
74 R handleSendSet(SendSet node); | 75 R handleSendSet(SendSet node); |
75 R handleNewExpression(NewExpression node); | 76 R handleNewExpression(NewExpression node); |
76 | 77 |
77 /// Visitor callback for a type literal. | 78 /// Visitor callback for a type literal. |
78 @deprecated | 79 @deprecated |
79 R visitTypeLiteralSend(Send node); | 80 R visitTypeLiteralSend(Send node); |
80 | 81 |
(...skipping 187 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 @override | 269 @override |
269 R visitTypePrefixSend(Send node) { | 270 R visitTypePrefixSend(Send node) { |
270 return internalError(node, "visitTypePrefixSend is deprecated"); | 271 return internalError(node, "visitTypePrefixSend is deprecated"); |
271 } | 272 } |
272 | 273 |
273 @override | 274 @override |
274 R visitAssertSend(Send node) { | 275 R visitAssertSend(Send node) { |
275 return internalError(node, "visitAssertSend is deprecated"); | 276 return internalError(node, "visitAssertSend is deprecated"); |
276 } | 277 } |
277 | 278 |
| 279 @override |
| 280 R visitStaticSend(Send node) { |
| 281 return internalError(node, "visitStaticSend is deprecated"); |
| 282 } |
| 283 |
278 bool checkResolvedKind(Node node, | 284 bool checkResolvedKind(Node node, |
279 ResolvedKind oldKind, | 285 ResolvedKind oldKind, |
280 ResolvedKind newKind) { | 286 ResolvedKind newKind) { |
281 return invariant(node, oldKind == newKind, | 287 return invariant(node, oldKind == newKind, |
282 message: 'old=$oldKind != new=$newKind'); | 288 message: 'old=$oldKind != new=$newKind'); |
283 } | 289 } |
284 | 290 |
285 ResolvedKind computeResolvedKindFromStructure( | 291 ResolvedKind computeResolvedKindFromStructure( |
286 Node node, SemanticSendStructure structure) { | 292 Node node, SemanticSendStructure structure) { |
287 return structure.dispatch( | 293 return structure.dispatch( |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
858 @override | 864 @override |
859 R visitLocalFunctionIncompatibleInvoke( | 865 R visitLocalFunctionIncompatibleInvoke( |
860 Send node, | 866 Send node, |
861 LocalFunctionElement function, | 867 LocalFunctionElement function, |
862 NodeList arguments, | 868 NodeList arguments, |
863 CallStructure callStructure, | 869 CallStructure callStructure, |
864 ResolvedKindVisitor<R> visitor) { | 870 ResolvedKindVisitor<R> visitor) { |
865 return visitor.visitClosureSend(node); | 871 return visitor.visitClosureSend(node); |
866 } | 872 } |
867 } | 873 } |
OLD | NEW |