OLD | NEW |
1 // Copyright (c) 2015, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2015, 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.semantics_visitor.resolver; | 5 library dart2js.semantics_visitor.resolver; |
6 | 6 |
7 import '../constants/expressions.dart'; | 7 import '../constants/expressions.dart'; |
8 import '../dart_types.dart'; | 8 import '../dart_types.dart'; |
9 import '../diagnostics/messages.dart' show | 9 import '../diagnostics/messages.dart' show |
10 MessageKind; | 10 MessageKind; |
11 import '../diagnostics/spannable.dart' show | 11 import '../diagnostics/spannable.dart' show |
12 Spannable, | 12 Spannable, |
13 SpannableAssertionFailure; | 13 SpannableAssertionFailure; |
14 import '../elements/elements.dart'; | 14 import '../elements/elements.dart'; |
15 import '../tree/tree.dart'; | 15 import '../tree/tree.dart'; |
16 import '../universe/universe.dart'; | 16 import '../universe/call_structure.dart' show |
| 17 CallStructure; |
| 18 import '../universe/selector.dart' show |
| 19 Selector; |
17 | 20 |
18 import 'access_semantics.dart'; | 21 import 'access_semantics.dart'; |
19 import 'semantic_visitor.dart'; | 22 import 'semantic_visitor.dart'; |
20 import 'send_structure.dart'; | 23 import 'send_structure.dart'; |
21 import 'tree_elements.dart'; | 24 import 'tree_elements.dart'; |
22 | 25 |
23 abstract class SendResolverMixin { | 26 abstract class SendResolverMixin { |
24 TreeElements get elements; | 27 TreeElements get elements; |
25 | 28 |
26 internalError(Spannable spannable, String message); | 29 internalError(Spannable spannable, String message); |
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
469 return internalError(node, "Unexpected variable $element."); | 472 return internalError(node, "Unexpected variable $element."); |
470 } | 473 } |
471 if (element.isConst) { | 474 if (element.isConst) { |
472 ConstantExpression constant = elements.getConstant(element.initializer); | 475 ConstantExpression constant = elements.getConstant(element.initializer); |
473 return new ConstantVariableStructure(kind, node, element, constant); | 476 return new ConstantVariableStructure(kind, node, element, constant); |
474 } else { | 477 } else { |
475 return new NonConstantVariableStructure(kind, node, element); | 478 return new NonConstantVariableStructure(kind, node, element); |
476 } | 479 } |
477 } | 480 } |
478 } | 481 } |
OLD | NEW |