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 '../dart2jslib.dart' hide Selector, TypedSelector; | 8 import '../dart2jslib.dart' hide Selector, TypedSelector; |
8 import '../dart_types.dart'; | 9 import '../dart_types.dart'; |
9 import '../elements/elements.dart'; | 10 import '../elements/elements.dart'; |
10 import '../tree/tree.dart'; | 11 import '../tree/tree.dart'; |
11 import '../universe/universe.dart'; | 12 import '../universe/universe.dart'; |
12 import '../util/util.dart'; | 13 import '../util/util.dart'; |
13 import '../types/types.dart' show TypeMask; | 14 import '../types/types.dart' show TypeMask; |
14 import '../types/constants.dart' show computeTypeMask; | 15 import '../types/constants.dart' show computeTypeMask; |
15 import 'dart:collection' show IterableMixin; | 16 import 'dart:collection' show IterableMixin; |
16 | 17 |
(...skipping 1290 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1307 return type; | 1308 return type; |
1308 } | 1309 } |
1309 | 1310 |
1310 T visitCascade(Cascade node) { | 1311 T visitCascade(Cascade node) { |
1311 // Ignore the result of the cascade send and return the type of the cascade | 1312 // Ignore the result of the cascade send and return the type of the cascade |
1312 // receiver. | 1313 // receiver. |
1313 visit(node.expression); | 1314 visit(node.expression); |
1314 return cascadeReceiverStack.removeLast(); | 1315 return cascadeReceiverStack.removeLast(); |
1315 } | 1316 } |
1316 } | 1317 } |
OLD | NEW |