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 import 'dart:async'; | 5 import 'dart:async'; |
6 | 6 |
| 7 import 'package:analysis_server/src/services/index/index_unit.dart'; |
7 import 'package:analyzer/dart/ast/ast.dart'; | 8 import 'package:analyzer/dart/ast/ast.dart'; |
8 import 'package:analyzer/dart/element/element.dart'; | 9 import 'package:analyzer/dart/element/element.dart'; |
9 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; | 10 import 'package:analyzer/src/generated/engine.dart' show AnalysisContext; |
10 import 'package:analyzer/src/generated/source.dart'; | 11 import 'package:analyzer/src/generated/source.dart'; |
11 import 'package:analyzer/src/summary/format.dart'; | 12 import 'package:analyzer/src/summary/format.dart'; |
12 import 'package:analyzer/src/summary/idl.dart'; | 13 import 'package:analyzer/src/summary/idl.dart'; |
13 import 'package:analyzer/src/summary/index_unit.dart'; | |
14 import 'package:collection/collection.dart'; | 14 import 'package:collection/collection.dart'; |
15 | 15 |
16 /** | 16 /** |
17 * Return a new [Index] instance that keeps information in memory. | 17 * Return a new [Index] instance that keeps information in memory. |
18 */ | 18 */ |
19 Index createMemoryIndex() { | 19 Index createMemoryIndex() { |
20 return new Index._(); | 20 return new Index._(); |
21 } | 21 } |
22 | 22 |
23 /** | 23 /** |
(...skipping 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
630 unitUnitUri, | 630 unitUnitUri, |
631 unitIndex.usedNameKinds[i], | 631 unitIndex.usedNameKinds[i], |
632 unitIndex.usedNameOffsets[i], | 632 unitIndex.usedNameOffsets[i], |
633 name.length, | 633 name.length, |
634 unitIndex.usedNameIsQualifiedFlags[i], | 634 unitIndex.usedNameIsQualifiedFlags[i], |
635 false)); | 635 false)); |
636 } | 636 } |
637 return locations; | 637 return locations; |
638 } | 638 } |
639 } | 639 } |
OLD | NEW |