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 domains.analysis.implemented_dart; | 5 library domains.analysis.implemented_dart; |
6 | 6 |
7 import 'package:analysis_server/src/protocol_server.dart' as protocol; | 7 import 'package:analysis_server/src/protocol_server.dart' as protocol; |
8 import 'package:analysis_server/src/services/search/hierarchy.dart'; | 8 import 'package:analysis_server/src/services/search/hierarchy.dart'; |
9 import 'package:analysis_server/src/services/search/search_engine.dart'; | 9 import 'package:analysis_server/src/services/search/search_engine.dart'; |
10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/dart/element/element.dart'; |
11 | 11 |
12 class ImplementedComputer { | 12 class ImplementedComputer { |
13 final SearchEngine searchEngine; | 13 final SearchEngine searchEngine; |
14 final CompilationUnitElement unitElement; | 14 final CompilationUnitElement unitElement; |
15 | 15 |
16 List<protocol.ImplementedClass> classes = <protocol.ImplementedClass>[]; | 16 List<protocol.ImplementedClass> classes = <protocol.ImplementedClass>[]; |
17 List<protocol.ImplementedMember> members = <protocol.ImplementedMember>[]; | 17 List<protocol.ImplementedMember> members = <protocol.ImplementedMember>[]; |
18 | 18 |
19 Set<ClassElement> subtypes; | 19 Set<ClassElement> subtypes; |
20 | 20 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 */ | 82 */ |
83 static bool _isStatic(Element element) { | 83 static bool _isStatic(Element element) { |
84 if (element is ExecutableElement) { | 84 if (element is ExecutableElement) { |
85 return element.isStatic; | 85 return element.isStatic; |
86 } else if (element is PropertyInducingElement) { | 86 } else if (element is PropertyInducingElement) { |
87 return element.isStatic; | 87 return element.isStatic; |
88 } | 88 } |
89 return false; | 89 return false; |
90 } | 90 } |
91 } | 91 } |
OLD | NEW |