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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InstrumentedAnalysisContextImpl.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/context/InstrumentedAnalysisContextImpl.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InstrumentedAnalysisContextImpl.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InstrumentedAnalysisContextImpl.java
index b09366d84de4f004809182c14312888c4f9c5a71..87bc08386590354c0595c8c377ab4bcab7e803dd 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InstrumentedAnalysisContextImpl.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/context/InstrumentedAnalysisContextImpl.java
@@ -27,6 +27,8 @@ import com.google.dart.engine.source.SourceKind;
import com.google.dart.engine.utilities.instrumentation.Instrumentation;
import com.google.dart.engine.utilities.instrumentation.InstrumentationBuilder;
import com.google.dart.engine.utilities.source.LineInfo;
+import com.google.dart.engine.utilities.translation.DartBlockBody;
+import com.google.dart.engine.utilities.translation.DartOmit;
import java.util.List;
import java.util.Map;
@@ -44,6 +46,7 @@ public class InstrumentedAnalysisContextImpl implements InternalAnalysisContext
* The UI thread or {@code null} if not set. Any calls made for analysis information on this
* thread are tracked in an effort to keep the UI performant.
*/
+ @DartOmit
private static Thread uiThread;
/**
@@ -52,6 +55,7 @@ public class InstrumentedAnalysisContextImpl implements InternalAnalysisContext
*
* @param thread the thread to be monitored or {@code null} if no monitoring.
*/
+ @DartOmit
public static void setUIThread(Thread thread) {
uiThread = thread;
}
@@ -62,6 +66,7 @@ public class InstrumentedAnalysisContextImpl implements InternalAnalysisContext
*
* @param instrumentation the instrumentation, not {@code null}
*/
+ @DartBlockBody({})
private static void checkThread(InstrumentationBuilder instrumentation) {
if (Thread.currentThread() == uiThread) {
instrumentation.metric("isUIThread", true);
@@ -309,6 +314,7 @@ public class InstrumentedAnalysisContextImpl implements InternalAnalysisContext
@Override
@SuppressWarnings("deprecation")
+ @DartOmit
public void getContentsToReceiver(Source source, ContentReceiver receiver) throws Exception {
basis.getContentsToReceiver(source, receiver);
}

Powered by Google App Engine
This is Rietveld 408576698