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 analysis_server.src.services.search.search_engine_internal; | |
6 | |
7 import 'dart:async'; | 5 import 'dart:async'; |
8 | 6 |
9 import 'package:analysis_server/src/services/index/index.dart'; | 7 import 'package:analysis_server/src/services/index/index.dart'; |
10 import 'package:analysis_server/src/services/search/search_engine.dart'; | 8 import 'package:analysis_server/src/services/search/search_engine.dart'; |
11 import 'package:analyzer/dart/ast/ast.dart'; | 9 import 'package:analyzer/dart/ast/ast.dart'; |
12 import 'package:analyzer/dart/ast/visitor.dart'; | 10 import 'package:analyzer/dart/ast/visitor.dart'; |
13 import 'package:analyzer/dart/element/element.dart'; | 11 import 'package:analyzer/dart/element/element.dart'; |
14 import 'package:analyzer/dart/element/visitor.dart'; | 12 import 'package:analyzer/dart/element/visitor.dart'; |
15 import 'package:analyzer/src/dart/element/ast_provider.dart'; | 13 import 'package:analyzer/src/dart/element/ast_provider.dart'; |
16 import 'package:analyzer/src/dart/element/element.dart'; | 14 import 'package:analyzer/src/dart/element/element.dart'; |
(...skipping 564 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
581 _addMatch(node, kind); | 579 _addMatch(node, kind); |
582 } | 580 } |
583 } | 581 } |
584 | 582 |
585 void _addMatch(AstNode node, MatchKind kind) { | 583 void _addMatch(AstNode node, MatchKind kind) { |
586 bool isQualified = node.parent is Label; | 584 bool isQualified = node.parent is Label; |
587 matches.add(new SearchMatchImpl(context, libraryUri, unitUri, kind, | 585 matches.add(new SearchMatchImpl(context, libraryUri, unitUri, kind, |
588 range.node(node), true, isQualified)); | 586 range.node(node), true, isQualified)); |
589 } | 587 } |
590 } | 588 } |
OLD | NEW |