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 analyzer.src.generated.resolver; | 5 library analyzer.src.generated.resolver; |
6 | 6 |
7 import 'dart:collection'; | 7 import 'dart:collection'; |
8 | 8 |
9 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
10 import 'package:analyzer/dart/ast/token.dart'; | 10 import 'package:analyzer/dart/ast/token.dart'; |
11 import 'package:analyzer/dart/ast/visitor.dart'; | 11 import 'package:analyzer/dart/ast/visitor.dart'; |
12 import 'package:analyzer/dart/element/element.dart'; | 12 import 'package:analyzer/dart/element/element.dart'; |
13 import 'package:analyzer/dart/element/type.dart'; | 13 import 'package:analyzer/dart/element/type.dart'; |
14 import 'package:analyzer/dart/element/visitor.dart'; | 14 import 'package:analyzer/dart/element/visitor.dart'; |
| 15 import 'package:analyzer/error/error.dart'; |
| 16 import 'package:analyzer/error/listener.dart'; |
15 import 'package:analyzer/exception/exception.dart'; | 17 import 'package:analyzer/exception/exception.dart'; |
16 import 'package:analyzer/src/dart/ast/ast.dart'; | 18 import 'package:analyzer/src/dart/ast/ast.dart'; |
17 import 'package:analyzer/src/dart/ast/utilities.dart'; | 19 import 'package:analyzer/src/dart/ast/utilities.dart'; |
18 import 'package:analyzer/src/dart/element/element.dart'; | 20 import 'package:analyzer/src/dart/element/element.dart'; |
19 import 'package:analyzer/src/dart/element/type.dart'; | 21 import 'package:analyzer/src/dart/element/type.dart'; |
20 import 'package:analyzer/src/dart/element/utilities.dart'; | 22 import 'package:analyzer/src/dart/element/utilities.dart'; |
21 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; | 23 import 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; |
22 import 'package:analyzer/src/dart/resolver/scope.dart'; | 24 import 'package:analyzer/src/dart/resolver/scope.dart'; |
| 25 import 'package:analyzer/src/error/codes.dart'; |
23 import 'package:analyzer/src/generated/constant.dart'; | 26 import 'package:analyzer/src/generated/constant.dart'; |
24 import 'package:analyzer/src/generated/element_resolver.dart'; | 27 import 'package:analyzer/src/generated/element_resolver.dart'; |
25 import 'package:analyzer/src/generated/engine.dart'; | 28 import 'package:analyzer/src/generated/engine.dart'; |
26 import 'package:analyzer/src/generated/error.dart'; | |
27 import 'package:analyzer/src/generated/error_verifier.dart'; | 29 import 'package:analyzer/src/generated/error_verifier.dart'; |
28 import 'package:analyzer/src/generated/java_core.dart'; | 30 import 'package:analyzer/src/generated/java_core.dart'; |
29 import 'package:analyzer/src/generated/source.dart'; | 31 import 'package:analyzer/src/generated/source.dart'; |
30 import 'package:analyzer/src/generated/static_type_analyzer.dart'; | 32 import 'package:analyzer/src/generated/static_type_analyzer.dart'; |
31 import 'package:analyzer/src/generated/type_system.dart'; | 33 import 'package:analyzer/src/generated/type_system.dart'; |
32 import 'package:analyzer/src/generated/utilities_dart.dart'; | 34 import 'package:analyzer/src/generated/utilities_dart.dart'; |
33 | 35 |
34 export 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; | 36 export 'package:analyzer/src/dart/resolver/inheritance_manager.dart'; |
35 export 'package:analyzer/src/dart/resolver/scope.dart'; | 37 export 'package:analyzer/src/dart/resolver/scope.dart'; |
36 export 'package:analyzer/src/generated/type_system.dart'; | 38 export 'package:analyzer/src/generated/type_system.dart'; |
(...skipping 11153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
11190 return null; | 11192 return null; |
11191 } | 11193 } |
11192 if (identical(node.staticElement, variable)) { | 11194 if (identical(node.staticElement, variable)) { |
11193 if (node.inSetterContext()) { | 11195 if (node.inSetterContext()) { |
11194 result = true; | 11196 result = true; |
11195 } | 11197 } |
11196 } | 11198 } |
11197 return null; | 11199 return null; |
11198 } | 11200 } |
11199 } | 11201 } |
OLD | NEW |