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 visitor; | 5 library visitor; |
6 | 6 |
7 import 'elements.dart'; | 7 import 'elements.dart'; |
8 import '../closure.dart' | 8 import '../closure.dart' |
9 show BoxFieldElement, | 9 show BoxFieldElement, |
10 ClosureClassElement, | 10 ClosureClassElement, |
(...skipping 12 matching lines...) Expand all Loading... |
23 R visitImportElement(ImportElement e, A arg) => null; | 23 R visitImportElement(ImportElement e, A arg) => null; |
24 R visitExportElement(ExportElement e, A arg) => null; | 24 R visitExportElement(ExportElement e, A arg) => null; |
25 R visitPrefixElement(PrefixElement e, A arg) => null; | 25 R visitPrefixElement(PrefixElement e, A arg) => null; |
26 R visitTypedefElement(TypedefElement e, A arg) => null; | 26 R visitTypedefElement(TypedefElement e, A arg) => null; |
27 R visitVariableElement(VariableElement e, A arg) => null; | 27 R visitVariableElement(VariableElement e, A arg) => null; |
28 R visitParameterElement(ParameterElement e, A arg) => null; | 28 R visitParameterElement(ParameterElement e, A arg) => null; |
29 R visitFormalElement(FormalElement e, A arg) => null; | 29 R visitFormalElement(FormalElement e, A arg) => null; |
30 R visitFieldElement(FieldElement e, A arg) => null; | 30 R visitFieldElement(FieldElement e, A arg) => null; |
31 R visitFieldParameterElement(InitializingFormalElement e, A arg) => null; | 31 R visitFieldParameterElement(InitializingFormalElement e, A arg) => null; |
32 R visitAbstractFieldElement(AbstractFieldElement e, A arg) => null; | 32 R visitAbstractFieldElement(AbstractFieldElement e, A arg) => null; |
33 R visitFunctionElement(FunctionElement e, A arg) => null; | 33 R visitMethodElement(FunctionElement e, A arg) => null; |
| 34 R visitGetterElement(GetterElement e, A arg) => null; |
| 35 R visitSetterElement(SetterElement e, A arg) => null; |
| 36 R visitLocalFunctionElement(LocalFunctionElement e, A arg) => null; |
34 R visitConstructorElement(ConstructorElement e, A arg) => null; | 37 R visitConstructorElement(ConstructorElement e, A arg) => null; |
35 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) => null; | 38 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) => null; |
36 R visitClassElement(ClassElement e, A arg) => null; | 39 R visitClassElement(ClassElement e, A arg) => null; |
37 R visitMixinApplicationElement(MixinApplicationElement e, A arg) => null; | 40 R visitMixinApplicationElement(MixinApplicationElement e, A arg) => null; |
38 R visitEnumClassElement(EnumClassElement e, A arg) => null; | 41 R visitEnumClassElement(EnumClassElement e, A arg) => null; |
39 R visitTypeVariableElement(TypeVariableElement e, A arg) => null; | 42 R visitTypeVariableElement(TypeVariableElement e, A arg) => null; |
40 R visitBoxFieldElement(BoxFieldElement e, A arg) => null; | 43 R visitBoxFieldElement(BoxFieldElement e, A arg) => null; |
41 R visitClosureClassElement(ClosureClassElement e, A arg) => null; | 44 R visitClosureClassElement(ClosureClassElement e, A arg) => null; |
42 R visitClosureFieldElement(ClosureFieldElement e, A arg) => null; | 45 R visitClosureFieldElement(ClosureFieldElement e, A arg) => null; |
43 } | 46 } |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
120 @override | 123 @override |
121 R visitFieldParameterElement(InitializingFormalElement e, A arg) { | 124 R visitFieldParameterElement(InitializingFormalElement e, A arg) { |
122 return visitParameterElement(e, arg); | 125 return visitParameterElement(e, arg); |
123 } | 126 } |
124 | 127 |
125 @override | 128 @override |
126 R visitAbstractFieldElement(AbstractFieldElement e, A arg) { | 129 R visitAbstractFieldElement(AbstractFieldElement e, A arg) { |
127 return visitElement(e, arg); | 130 return visitElement(e, arg); |
128 } | 131 } |
129 | 132 |
| 133 R visitFunctionElement(FunctionElement e, A arg) { |
| 134 return visitElement(e, arg); |
| 135 } |
| 136 |
130 @override | 137 @override |
131 R visitFunctionElement(FunctionElement e, A arg) { | 138 R visitMethodElement(MethodElement e, A arg) { |
132 return visitElement(e, arg); | 139 return visitFunctionElement(e, arg); |
| 140 } |
| 141 |
| 142 @override |
| 143 R visitGetterElement(GetterElement e, A arg) { |
| 144 return visitFunctionElement(e, arg); |
| 145 } |
| 146 |
| 147 @override |
| 148 R visitSetterElement(SetterElement e, A arg) { |
| 149 return visitFunctionElement(e, arg); |
| 150 } |
| 151 |
| 152 @override |
| 153 R visitLocalFunctionElement(LocalFunctionElement e, A arg) { |
| 154 return visitFunctionElement(e, arg); |
133 } | 155 } |
134 | 156 |
135 @override | 157 @override |
136 R visitConstructorElement(ConstructorElement e, A arg) { | 158 R visitConstructorElement(ConstructorElement e, A arg) { |
137 return visitFunctionElement(e, arg); | 159 return visitFunctionElement(e, arg); |
138 } | 160 } |
139 | 161 |
140 @override | 162 @override |
141 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) { | 163 R visitConstructorBodyElement(ConstructorBodyElement e, A arg) { |
142 return visitElement(e, arg); | 164 return visitElement(e, arg); |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 @override | 196 @override |
175 R visitClosureClassElement(ClosureClassElement e, A arg) { | 197 R visitClosureClassElement(ClosureClassElement e, A arg) { |
176 return visitClassElement(e, arg); | 198 return visitClassElement(e, arg); |
177 } | 199 } |
178 | 200 |
179 @override | 201 @override |
180 R visitClosureFieldElement(ClosureFieldElement e, A arg) { | 202 R visitClosureFieldElement(ClosureFieldElement e, A arg) { |
181 return visitVariableElement(e, arg); | 203 return visitVariableElement(e, arg); |
182 } | 204 } |
183 } | 205 } |
OLD | NEW |