| 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.index_store; | 5 library services.index_store; |
| 6 | 6 |
| 7 import 'dart:async'; | 7 import 'dart:async'; |
| 8 | 8 |
| 9 import 'package:analysis_server/src/services/index/index.dart'; | 9 import 'package:analysis_server/src/services/index/index.dart'; |
| 10 import 'package:analyzer/src/generated/element.dart'; | 10 import 'package:analyzer/src/generated/element.dart'; |
| (...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 109 * [element] - the [Element] that is related to the location. | 109 * [element] - the [Element] that is related to the location. |
| 110 * [relationship] - the [Relationship] between the element and the location. | 110 * [relationship] - the [Relationship] between the element and the location. |
| 111 * [location] the [Location] where relationship happens. | 111 * [location] the [Location] where relationship happens. |
| 112 */ | 112 */ |
| 113 void recordRelationship( | 113 void recordRelationship( |
| 114 Element element, Relationship relationship, Location location); | 114 Element element, Relationship relationship, Location location); |
| 115 | 115 |
| 116 /** | 116 /** |
| 117 * Records the declaration of the given top-level [element]. | 117 * Records the declaration of the given top-level [element]. |
| 118 */ | 118 */ |
| 119 void recordTopDeclaration(Element element); | 119 void recordTopLevelDeclaration(Element element); |
| 120 | 120 |
| 121 /** | 121 /** |
| 122 * Removes from the index all of the information associated with [context]. | 122 * Removes from the index all of the information associated with [context]. |
| 123 * | 123 * |
| 124 * This method should be invoked when [context] is disposed. | 124 * This method should be invoked when [context] is disposed. |
| 125 * | 125 * |
| 126 * [context] - the [AnalysisContext] being removed. | 126 * [context] - the [AnalysisContext] being removed. |
| 127 */ | 127 */ |
| 128 void removeContext(AnalysisContext context); | 128 void removeContext(AnalysisContext context); |
| 129 | 129 |
| (...skipping 18 matching lines...) Expand all Loading... |
| 148 * any other elements and a location within the given sources. | 148 * any other elements and a location within the given sources. |
| 149 * | 149 * |
| 150 * This method should be invoked when multiple sources are no longer part of | 150 * This method should be invoked when multiple sources are no longer part of |
| 151 * the code base. | 151 * the code base. |
| 152 * | 152 * |
| 153 * [context] - the [AnalysisContext] in which [Source]s being removed. | 153 * [context] - the [AnalysisContext] in which [Source]s being removed. |
| 154 * [container] - the [SourceContainer] holding the sources being removed. | 154 * [container] - the [SourceContainer] holding the sources being removed. |
| 155 */ | 155 */ |
| 156 void removeSources(AnalysisContext context, SourceContainer container); | 156 void removeSources(AnalysisContext context, SourceContainer container); |
| 157 } | 157 } |
| OLD | NEW |