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 part of dart2js; |
6 | |
7 import 'constants/expressions.dart'; | |
8 import 'dart_types.dart' show | |
9 DartType; | |
10 import 'dart2jslib.dart' show | |
11 invariant; | |
12 import 'elements/elements.dart' show | |
13 Element, | |
14 Elements, | |
15 ErroneousElement, | |
16 FunctionElement, | |
17 LocalFunctionElement, | |
18 LocalVariableElement, | |
19 ParameterElement, | |
20 PrefixElement, | |
21 TypeVariableElement; | |
22 import 'resolution/operators.dart' as op; | |
23 import 'resolution/resolution.dart' show | |
24 TreeElements; | |
25 import 'resolution/semantic_visitor.dart'; | |
26 import 'resolution/send_structure.dart' show | |
27 NewStructure, | |
28 SemanticSendStructure, | |
29 SendStructure; | |
30 import 'tree/tree.dart'; | |
31 import 'universe/universe.dart' show | |
32 CallStructure, | |
33 Selector; | |
34 import 'util/util.dart' show | |
35 Spannable; | |
36 | 6 |
37 /// Enum for the visit methods added in [ResolvedVisitor]. | 7 /// Enum for the visit methods added in [ResolvedVisitor]. |
38 // TODO(johnniwinther): Remove this. | 8 // TODO(johnniwinther): Remove this. |
39 enum ResolvedKind { | 9 enum ResolvedKind { |
40 ASSERT, | 10 ASSERT, |
41 TYPE_LITERAL, | 11 TYPE_LITERAL, |
42 SUPER, | 12 SUPER, |
43 OPERATOR, | 13 OPERATOR, |
44 TYPE_PREFIX, | 14 TYPE_PREFIX, |
45 GETTER, | 15 GETTER, |
(...skipping 803 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
849 @override | 819 @override |
850 R visitLocalFunctionIncompatibleInvoke( | 820 R visitLocalFunctionIncompatibleInvoke( |
851 Send node, | 821 Send node, |
852 LocalFunctionElement function, | 822 LocalFunctionElement function, |
853 NodeList arguments, | 823 NodeList arguments, |
854 CallStructure callStructure, | 824 CallStructure callStructure, |
855 ResolvedKindVisitor<R> visitor) { | 825 ResolvedKindVisitor<R> visitor) { |
856 return visitor.visitClosureSend(node); | 826 return visitor.visitClosureSend(node); |
857 } | 827 } |
858 } | 828 } |
OLD | NEW |