Index: pkg/analysis_server/lib/src/services/index/index.dart |
diff --git a/pkg/analysis_server/lib/src/services/index/index.dart b/pkg/analysis_server/lib/src/services/index/index.dart |
index 2ecb9924c782126e29c1cdeac6a042a5642da973..c033fd6855e2e7ee34a4558d26046062f9dc3228 100644 |
--- a/pkg/analysis_server/lib/src/services/index/index.dart |
+++ b/pkg/analysis_server/lib/src/services/index/index.dart |
@@ -12,13 +12,11 @@ import 'package:analyzer/src/generated/engine.dart'; |
import 'package:analyzer/src/generated/html.dart'; |
import 'package:analyzer/src/generated/source.dart'; |
- |
/** |
* A filter for [Element] names. |
*/ |
typedef bool ElementNameFilter(String name); |
- |
/** |
* The interface [Index] defines the behavior of objects that maintain an index |
* storing relations between [Element]s. |
@@ -52,8 +50,8 @@ abstract class Index { |
* [relationship] - the relationship between the given element and the |
* locations to be returned. |
*/ |
- Future<List<Location>> getRelationships(Element element, |
- Relationship relationship); |
+ Future<List<Location>> getRelationships( |
+ Element element, Relationship relationship); |
/** |
* Returns top-level [Element]s whose names satisfy to [nameFilter]. |
@@ -124,7 +122,6 @@ abstract class Index { |
void stop(); |
} |
- |
/** |
* Constants used when populating and accessing the index. |
*/ |
@@ -211,7 +208,6 @@ class IndexConstants { |
IndexConstants._(); |
} |
- |
/** |
* Instances of the class [Location] represent a location related to an element. |
* |
@@ -256,8 +252,8 @@ class Location { |
* [offset] - the offset within the resource containing [element]. |
* [length] - the length of this location |
*/ |
- Location(this.element, this.offset, this.length, {bool isQualified: false, |
- bool isResolved: true}) { |
+ Location(this.element, this.offset, this.length, |
+ {bool isQualified: false, bool isResolved: true}) { |
if (element == null) { |
throw new ArgumentError("element location cannot be null"); |
} |
@@ -293,7 +289,6 @@ class Location { |
} |
} |
- |
/** |
* A [Location] with attached data. |
*/ |
@@ -304,7 +299,6 @@ class LocationWithData<D> extends Location { |
: super(location.element, location.offset, location.length); |
} |
- |
/** |
* An [Element] which is used to index references to the name without specifying |
* a concrete kind of this name - field, method or something else. |
@@ -319,7 +313,6 @@ class NameElement extends ElementImpl { |
accept(ElementVisitor visitor) => null; |
} |
- |
/** |
* Relationship between an element and a location. Relationships are identified |
* by a globally unique identifier. |