| OLD | NEW |
| 1 // Copyright (c) 2013, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2013, 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 inferrer_visitor; | 5 library inferrer_visitor; |
| 6 | 6 |
| 7 import '../constants/constant_system.dart'; | 7 import '../constants/constant_system.dart'; |
| 8 import '../constants/expressions.dart'; | 8 import '../constants/expressions.dart'; |
| 9 import '../dart2jslib.dart' hide Selector, TypedSelector; | 9 import '../dart2jslib.dart' hide Selector, TypedSelector; |
| 10 import '../dart_types.dart'; | 10 import '../dart_types.dart'; |
| (...skipping 690 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 701 Node node = analyzedElement.node; | 701 Node node = analyzedElement.node; |
| 702 FieldInitializationScope<T> fieldScope = | 702 FieldInitializationScope<T> fieldScope = |
| 703 analyzedElement.isGenerativeConstructor | 703 analyzedElement.isGenerativeConstructor |
| 704 ? new FieldInitializationScope<T>(types) | 704 ? new FieldInitializationScope<T>(types) |
| 705 : null; | 705 : null; |
| 706 locals = new LocalsHandler<T>(inferrer, types, compiler, node, fieldScope); | 706 locals = new LocalsHandler<T>(inferrer, types, compiler, node, fieldScope); |
| 707 } | 707 } |
| 708 | 708 |
| 709 T handleSendSet(SendSet node); | 709 T handleSendSet(SendSet node); |
| 710 | 710 |
| 711 T visitSuperSend(Send node); | |
| 712 | |
| 713 T visitStaticSend(Send node); | 711 T visitStaticSend(Send node); |
| 714 | 712 |
| 715 T visitGetterSend(Send node); | 713 T visitGetterSend(Send node); |
| 716 | 714 |
| 717 T visitDynamicSend(Send node); | 715 T visitDynamicSend(Send node); |
| 718 | 716 |
| 719 T visitAsyncForIn(AsyncForIn node); | 717 T visitAsyncForIn(AsyncForIn node); |
| 720 | 718 |
| 721 T visitSyncForIn(SyncForIn node); | 719 T visitSyncForIn(SyncForIn node); |
| 722 | 720 |
| (...skipping 680 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1403 return type; | 1401 return type; |
| 1404 } | 1402 } |
| 1405 | 1403 |
| 1406 T visitCascade(Cascade node) { | 1404 T visitCascade(Cascade node) { |
| 1407 // Ignore the result of the cascade send and return the type of the cascade | 1405 // Ignore the result of the cascade send and return the type of the cascade |
| 1408 // receiver. | 1406 // receiver. |
| 1409 visit(node.expression); | 1407 visit(node.expression); |
| 1410 return cascadeReceiverStack.removeLast(); | 1408 return cascadeReceiverStack.removeLast(); |
| 1411 } | 1409 } |
| 1412 } | 1410 } |
| OLD | NEW |