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

Unified Diff: pkg/analysis_server/lib/src/services/index/store/codec.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
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/indexable_element.dart ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: pkg/analysis_server/lib/src/services/index/store/codec.dart
diff --git a/pkg/analysis_server/lib/src/services/index/store/codec.dart b/pkg/analysis_server/lib/src/services/index/store/codec.dart
index 86e07233019c0102ebab866e7fdb3de847ecac44..8fd23ab0d03192891c88c294c734957044f7166b 100644
--- a/pkg/analysis_server/lib/src/services/index/store/codec.dart
+++ b/pkg/analysis_server/lib/src/services/index/store/codec.dart
@@ -9,7 +9,6 @@ import 'dart:collection';
import 'package:analysis_server/plugin/index/index_core.dart';
import 'package:analysis_server/src/services/index/index.dart';
import 'package:analyzer/src/generated/engine.dart';
-import 'package:analyzer/src/generated/source.dart';
/**
* A helper that encodes/decodes [AnalysisContext]s from/to integers.
@@ -93,11 +92,10 @@ class ElementCodec {
* If the given [indexable] is not defined in a file, returns `-1`.
*/
int encode1(IndexableObject indexable) {
- Source source = indexable.source;
- if (source == null) {
+ String filePath = indexable.filePath;
+ if (filePath == null) {
return -1;
}
- String filePath = source.fullName;
return _stringCodec.encode(filePath);
}
« no previous file with comments | « pkg/analysis_server/lib/src/services/index/indexable_element.dart ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698