| OLD | NEW |
| 1 // Copyright (c) 2016, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2016, 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.src.search.search_engine2; | 5 library services.src.search.search_engine2; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/services/correction/source_range.dart'; | 9 import 'package:analysis_server/src/services/correction/source_range.dart'; |
| 10 import 'package:analysis_server/src/services/index2/index2.dart'; | 10 import 'package:analysis_server/src/services/index2/index2.dart'; |
| (...skipping 16 matching lines...) Expand all Loading... |
| 27 | 27 |
| 28 SearchEngineImpl2(this.context, this._index); | 28 SearchEngineImpl2(this.context, this._index); |
| 29 | 29 |
| 30 @override | 30 @override |
| 31 Future<List<SearchMatch>> searchAllSubtypes(ClassElement type) { | 31 Future<List<SearchMatch>> searchAllSubtypes(ClassElement type) { |
| 32 // TODO: implement searchAllSubtypes | 32 // TODO: implement searchAllSubtypes |
| 33 throw new UnimplementedError(); | 33 throw new UnimplementedError(); |
| 34 } | 34 } |
| 35 | 35 |
| 36 @override | 36 @override |
| 37 Future<List<SearchMatch>> searchElementDeclarations(String name) { | |
| 38 // TODO: implement searchElementDeclarations | |
| 39 throw new UnimplementedError(); | |
| 40 } | |
| 41 | |
| 42 @override | |
| 43 Future<List<SearchMatch>> searchMemberDeclarations(String name) { | 37 Future<List<SearchMatch>> searchMemberDeclarations(String name) { |
| 44 // TODO: implement searchMemberDeclarations | 38 // TODO: implement searchMemberDeclarations |
| 45 throw new UnimplementedError(); | 39 throw new UnimplementedError(); |
| 46 } | 40 } |
| 47 | 41 |
| 48 @override | 42 @override |
| 49 Future<List<SearchMatch>> searchMemberReferences(String name) { | 43 Future<List<SearchMatch>> searchMemberReferences(String name) { |
| 50 // TODO: implement searchMemberReferences | 44 // TODO: implement searchMemberReferences |
| 51 throw new UnimplementedError(); | 45 throw new UnimplementedError(); |
| 52 } | 46 } |
| (...skipping 293 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 346 _addMatch(node, kind); | 340 _addMatch(node, kind); |
| 347 } | 341 } |
| 348 } | 342 } |
| 349 | 343 |
| 350 void _addMatch(AstNode node, MatchKind kind) { | 344 void _addMatch(AstNode node, MatchKind kind) { |
| 351 bool isQualified = node is SimpleIdentifier && node.isQualified; | 345 bool isQualified = node is SimpleIdentifier && node.isQualified; |
| 352 matches.add(new SearchMatch(context, libraryUri, unitUri, kind, | 346 matches.add(new SearchMatch(context, libraryUri, unitUri, kind, |
| 353 rangeNode(node), true, isQualified)); | 347 rangeNode(node), true, isQualified)); |
| 354 } | 348 } |
| 355 } | 349 } |
| OLD | NEW |