Chromium Code Reviews| 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; |