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