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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java

Issue 11787017: Initial implementation of MemoryIndexStoreImpl and IndexContributor. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 7 years, 11 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: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java
index 5b86c60b1f6ca2b677fa62393a56c076c153bc5f..cd2de29a0b33adb40d1c51a5aa45e4e6f0e1a02d 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/operation/IndexUnitOperation.java
@@ -22,8 +22,8 @@ import com.google.dart.engine.internal.index.IndexContributor;
import com.google.dart.engine.source.Source;
/**
- * Instances of the {@link IndexUnitOperation} implement an operation that adds data to the
- * index based on the content of a specified resource.
+ * Instances of the {@link IndexUnitOperation} implement an operation that adds data to the index
+ * based on the content of a specified resource.
*/
public class IndexUnitOperation implements IndexOperation {
/**
@@ -76,7 +76,7 @@ public class IndexUnitOperation implements IndexOperation {
@Override
public void performOperation() {
synchronized (indexStore) {
- indexStore.regenerateResource(source);
+ indexStore.removeSource(source);
try {
IndexContributor contributor = new IndexContributor(indexStore);
unit.accept(contributor);

Powered by Google App Engine
This is Rietveld 408576698