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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularHtmlUnitResolver.java

Issue 135803003: Translate index. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: Created 6 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/html/angular/AngularHtmlUnitResolver.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularHtmlUnitResolver.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularHtmlUnitResolver.java
index fd8e766c1304013e46fee21c175184cfd03f12e7..e8bd3f782050893788afcbaba3b82994da17a849 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularHtmlUnitResolver.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/internal/html/angular/AngularHtmlUnitResolver.java
@@ -75,8 +75,12 @@ import java.util.Set;
* Instances of the class {@link AngularHtmlUnitResolver} resolve Angular specific expressions.
*/
public class AngularHtmlUnitResolver extends RecursiveXmlVisitor<Void> {
+ private static class FoundAppError extends Error {
+ }
+
private static final String OPENING_DELIMITER = "{{";
private static final String CLOSING_DELIMITER = "}}";
+
private static final int OPENING_DELIMITER_LENGTH = OPENING_DELIMITER.length();
private static final int CLOSING_DELIMITER_LENGTH = CLOSING_DELIMITER.length();
@@ -87,8 +91,6 @@ public class AngularHtmlUnitResolver extends RecursiveXmlVisitor<Void> {
* @return {@code true} if the given {@link HtmlUnit} has <code>ng-app</code> annotation.
*/
public static boolean hasAngularAnnotation(HtmlUnit htmlUnit) {
- class FoundAppError extends Error {
- }
try {
htmlUnit.accept(new RecursiveXmlVisitor<Void>() {
@Override

Powered by Google App Engine
This is Rietveld 408576698