OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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 analyzer2dart.semantic_visitor; | 5 library analyzer2dart.semantic_visitor; |
6 | 6 |
7 import 'package:analyzer/analyzer.dart'; | 7 import 'package:analyzer/analyzer.dart'; |
8 import 'package:analyzer/src/generated/source.dart'; | 8 import 'package:analyzer/src/generated/source.dart'; |
9 | 9 |
10 import 'util.dart'; | 10 import 'util.dart'; |
(...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 case AccessKind.LOCAL_VARIABLE: | 181 case AccessKind.LOCAL_VARIABLE: |
182 return visitLocalVariableAccess(node, semantics); | 182 return visitLocalVariableAccess(node, semantics); |
183 case AccessKind.PARAMETER: | 183 case AccessKind.PARAMETER: |
184 return visitParameterAccess(node, semantics); | 184 return visitParameterAccess(node, semantics); |
185 case AccessKind.STATIC_FIELD: | 185 case AccessKind.STATIC_FIELD: |
186 return visitStaticFieldAccess(node, semantics); | 186 return visitStaticFieldAccess(node, semantics); |
187 case AccessKind.STATIC_METHOD: | 187 case AccessKind.STATIC_METHOD: |
188 return visitStaticMethodAccess(node, semantics); | 188 return visitStaticMethodAccess(node, semantics); |
189 case AccessKind.STATIC_PROPERTY: | 189 case AccessKind.STATIC_PROPERTY: |
190 return visitStaticPropertyAccess(node, semantics); | 190 return visitStaticPropertyAccess(node, semantics); |
191 case AccessKind.TOPLEVEL_CLASS: | 191 case AccessKind.TOPLEVEL_TYPE: |
192 return visitToplevelClassAccess(node, semantics); | 192 return visitToplevelClassAccess(node, semantics); |
193 case AccessKind.TYPE_PARAMETER: | 193 case AccessKind.TYPE_PARAMETER: |
194 return visitTypeParameterAccess(node, semantics); | 194 return visitTypeParameterAccess(node, semantics); |
195 default: | 195 default: |
196 // Unexpected access kind. | 196 // Unexpected access kind. |
197 return giveUp(node, | 197 return giveUp(node, |
198 'Unexpected ${semantics} in _handlePropertyAccess.'); | 198 'Unexpected ${semantics} in _handlePropertyAccess.'); |
199 } | 199 } |
200 } | 200 } |
201 | 201 |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
262 case AccessKind.STATIC_PROPERTY: | 262 case AccessKind.STATIC_PROPERTY: |
263 return visitStaticPropertyAssignment(node, semantics); | 263 return visitStaticPropertyAssignment(node, semantics); |
264 default: | 264 default: |
265 // Unexpected access kind. | 265 // Unexpected access kind. |
266 return giveUp(node, | 266 return giveUp(node, |
267 'Unexpected ${semantics} in _handlePropertyAccess.'); | 267 'Unexpected ${semantics} in _handlePropertyAccess.'); |
268 } | 268 } |
269 } | 269 } |
270 } | 270 } |
271 } | 271 } |
OLD | NEW |