OLD | NEW |
1 // Copyright (c) 2014, the Dart project authors. Please see the AUTHORS file | 1 // Copyright (c) 2014, 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.index.index_contributor; | 5 library services.src.index.index_contributor; |
6 | 6 |
7 import 'dart:collection' show Queue; | 7 import 'dart:collection' show Queue; |
8 | 8 |
9 import 'package:analysis_services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
10 import 'package:analysis_services/index/index_store.dart'; | 10 import 'package:analysis_server/src/services/index/index_store.dart'; |
11 import 'package:analyzer/src/generated/ast.dart'; | 11 import 'package:analyzer/src/generated/ast.dart'; |
12 import 'package:analyzer/src/generated/element.dart'; | 12 import 'package:analyzer/src/generated/element.dart'; |
13 import 'package:analyzer/src/generated/engine.dart'; | 13 import 'package:analyzer/src/generated/engine.dart'; |
14 import 'package:analyzer/src/generated/html.dart' as ht; | 14 import 'package:analyzer/src/generated/html.dart' as ht; |
15 import 'package:analyzer/src/generated/java_core.dart'; | 15 import 'package:analyzer/src/generated/java_core.dart'; |
16 import 'package:analyzer/src/generated/java_engine.dart'; | 16 import 'package:analyzer/src/generated/java_engine.dart'; |
17 import 'package:analyzer/src/generated/resolver.dart'; | 17 import 'package:analyzer/src/generated/resolver.dart'; |
18 import 'package:analyzer/src/generated/scanner.dart'; | 18 import 'package:analyzer/src/generated/scanner.dart'; |
19 import 'package:analyzer/src/generated/source.dart'; | 19 import 'package:analyzer/src/generated/source.dart'; |
20 | 20 |
(...skipping 1153 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1174 } | 1174 } |
1175 | 1175 |
1176 /** | 1176 /** |
1177 * @return `true` if given "node" is part of [PrefixedIdentifier] "prefix.node
". | 1177 * @return `true` if given "node" is part of [PrefixedIdentifier] "prefix.node
". |
1178 */ | 1178 */ |
1179 static bool _isIdentifierInPrefixedIdentifier(SimpleIdentifier node) { | 1179 static bool _isIdentifierInPrefixedIdentifier(SimpleIdentifier node) { |
1180 AstNode parent = node.parent; | 1180 AstNode parent = node.parent; |
1181 return parent is PrefixedIdentifier && parent.identifier == node; | 1181 return parent is PrefixedIdentifier && parent.identifier == node; |
1182 } | 1182 } |
1183 } | 1183 } |
OLD | NEW |