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

Unified Diff: editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java

Issue 11348291: Analyze Dart scripts in HTML files. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Analyze in builder thread Created 8 years, 1 month 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.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java
diff --git a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java
index 91a1fefddd20f8b6459bf04e04843c0a9b3994fa..13f88b9bacf80ab5e8bef12afb878780416ccbe5 100644
--- a/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java
+++ b/editor/tools/plugins/com.google.dart.tools.core/src/com/google/dart/tools/core/html/HtmlBuildParticipant.java
@@ -138,27 +138,28 @@ public class HtmlBuildParticipant implements DartBuildParticipant {
}
private void processHtml(IFile file) {
+ HtmlAnalyzeHelper.analyze(file);
//final String SEARCH_STR = "\"application/dart\"";
- try {
- MarkerUtilities.deleteMarkers(file);
-
-// String data = Files.toString(file.getLocation().toFile(), Charsets.UTF_8);
-//
-// int index = data.indexOf(SEARCH_STR);
+// try {
+// MarkerUtilities.deleteMarkers(file);
//
-// while (index != -1) {
-// MarkerUtilities.createWarningMarker(
-// file,
-// "Found Dart!",
-// getLineNumber(data, index),
-// index,
-// SEARCH_STR.length() + index);
-// index = data.indexOf(SEARCH_STR, index + 1);
-// }
- } catch (CoreException e) {
- DartCore.logError(e);
- }
+//// String data = Files.toString(file.getLocation().toFile(), Charsets.UTF_8);
+////
+//// int index = data.indexOf(SEARCH_STR);
+////
+//// while (index != -1) {
+//// MarkerUtilities.createWarningMarker(
+//// file,
+//// "Found Dart!",
+//// getLineNumber(data, index),
+//// index,
+//// SEARCH_STR.length() + index);
+//// index = data.indexOf(SEARCH_STR, index + 1);
+//// }
+// } catch (CoreException e) {
+// DartCore.logError(e);
+// }
// } catch (IOException e) {
// DartCore.logError(e);
// }

Powered by Google App Engine
This is Rietveld 408576698