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 services.completion.computer.dart.relevance; | 5 library services.completion.computer.dart.relevance; |
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/protocol_server.dart' show | 8 import 'package:analysis_server/src/protocol_server.dart' show |
9 CompletionSuggestion, CompletionSuggestionKind; | 9 CompletionSuggestion, CompletionSuggestionKind; |
10 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; | 10 import 'package:analysis_server/src/services/completion/dart_completion_manager.
dart'; |
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
151 DartType visitPropertyAccess(PropertyAccess node) { | 151 DartType visitPropertyAccess(PropertyAccess node) { |
152 if (node.propertyName == entity) { | 152 if (node.propertyName == entity) { |
153 Expression target = node.realTarget; | 153 Expression target = node.realTarget; |
154 if (target != null) { | 154 if (target != null) { |
155 return target.bestType; | 155 return target.bestType; |
156 } | 156 } |
157 } | 157 } |
158 return null; | 158 return null; |
159 } | 159 } |
160 } | 160 } |
OLD | NEW |