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

Unified Diff: editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/html/ast/XmlTagNode.java

Issue 192303002: Support for @DartName and @DartOptional annotations. (Closed) Base URL: https://dart.googlecode.com/svn/branches/bleeding_edge/dart
Patch Set: 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/html/ast/XmlTagNode.java
diff --git a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/html/ast/XmlTagNode.java b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/html/ast/XmlTagNode.java
index 34d999f0b10a516ae9258c44179e07b23905f1ea..28494dcbc790b04acb1212a53c8f742c8273fa87 100644
--- a/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/html/ast/XmlTagNode.java
+++ b/editor/tools/plugins/com.google.dart.engine/src/com/google/dart/engine/html/ast/XmlTagNode.java
@@ -16,6 +16,7 @@ package com.google.dart.engine.html.ast;
import com.google.dart.engine.html.ast.visitor.XmlVisitor;
import com.google.dart.engine.html.scanner.Token;
import com.google.dart.engine.html.scanner.TokenType;
+import com.google.dart.engine.utilities.translation.DartName;
import java.util.ArrayList;
import java.util.Collections;
@@ -345,6 +346,7 @@ public class XmlTagNode extends XmlNode {
/**
* Same as {@link #becomeParentOfAll(List)}, but returns given "ifEmpty" if "children" is empty
*/
+ @DartName("becomeParentOfEmpty")
Brian Wilkerson 2014/03/09 23:43:15 I would have made becomeParentOfAll take an option
scheglov 2014/03/10 01:13:42 Done.
protected <T extends XmlNode> List<T> becomeParentOf(List<T> children, List<T> ifEmpty) {
if (children != null && children.isEmpty()) {
return ifEmpty;

Powered by Google App Engine
This is Rietveld 408576698