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

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

Issue 189433006: Support for DartBlockBody, DartExpressionBody, DartOmit in java2dart. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Fixes for review comments. Created 6 years, 9 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/MemoryIndexStoreImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/MemoryIndexStoreImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/MemoryIndexStoreImpl.java
index fae0caaf9be9506d92ef5aa240d9e60e0113341e..59e2c22219b87665354a96da5753e927377bf5bf 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/MemoryIndexStoreImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/index/MemoryIndexStoreImpl.java
@@ -33,6 +33,8 @@ import com.google.dart.engine.internal.context.InstrumentedAnalysisContextImpl;
import com.google.dart.engine.internal.element.member.Member;
import com.google.dart.engine.source.Source;
import com.google.dart.engine.source.SourceContainer;
+import com.google.dart.engine.utilities.translation.DartExpressionBody;
+import com.google.dart.engine.utilities.translation.DartOmit;
import java.io.IOException;
import java.io.InputStream;
@@ -330,6 +332,7 @@ public class MemoryIndexStoreImpl implements MemoryIndexStore {
}
@Override
+ @DartOmit
public void readIndex(AnalysisContext context, InputStream input) throws IOException {
context = unwrapContext(context);
new MemoryIndexReader(this, context, input).read();
@@ -508,6 +511,7 @@ public class MemoryIndexStoreImpl implements MemoryIndexStore {
}
@Override
+ @DartOmit
public void writeIndex(AnalysisContext context, OutputStream output) throws IOException {
context = unwrapContext(context);
new MemoryIndexWriter(this, context, output).write();
@@ -516,6 +520,7 @@ public class MemoryIndexStoreImpl implements MemoryIndexStore {
/**
* Creates new {@link Set} that uses object identity instead of equals.
*/
+ @DartExpressionBody("new Set<Location>.identity()")
private Set<Location> createLocationIdentitySet() {
return Sets.newSetFromMap(new IdentityHashMap<Location, Boolean>(4));
}

Powered by Google App Engine
This is Rietveld 408576698