Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(31)

Unified Diff: pkg/analysis_server/lib/src/services/index/index.dart

Issue 1409203002: Declare IndexableObject.file instead of Source. (Closed) Base URL: git@github.com:dart-lang/sdk.git@master
Patch Set: Use filePath name. Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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 645303ab2dda284f7bdd40007e07ed1edf5c572d..7ef15138bfae5017cce31650a415e0083e744394 100644
--- a/pkg/analysis_server/lib/src/services/index/index.dart
+++ b/pkg/analysis_server/lib/src/services/index/index.dart
@@ -10,7 +10,6 @@ import 'package:analysis_server/plugin/index/index_core.dart';
import 'package:analysis_server/src/services/index/indexable_element.dart';
import 'package:analyzer/src/generated/element.dart';
import 'package:analyzer/src/generated/engine.dart';
-import 'package:analyzer/src/generated/source.dart';
/**
* A filter for [Element] names.
@@ -79,6 +78,9 @@ class IndexableName implements IndexableObject {
IndexableName(this.name);
@override
+ String get filePath => null;
+
+ @override
IndexableObjectKind get kind => IndexableNameKind.INSTANCE;
@override
@@ -87,9 +89,6 @@ class IndexableName implements IndexableObject {
}
@override
- Source get source => null;
-
- @override
bool operator ==(Object object) =>
object is IndexableName && object.name == name;
@@ -338,7 +337,7 @@ class RelationshipImpl implements Relationship {
static int _NEXT_HASH_CODE = 0;
/**
- * The artifitial hash code for this object.
+ * The artificial hash code for this object.
*/
final int _hashCode = _NEXT_HASH_CODE++;

Powered by Google App Engine
This is Rietveld 408576698