Make the {debugger} command legal in an {element}.
Tested:
blaze test third_party/java_src/soy/javatests/com/google/template/soy:CompilerIntegrationTest
Sponge link: []
GITHUB_BREAKING_CHANGES=n/a
@@ -406,7 +406,11 @@ final class StrictHtmlValidationPass extends CompilerFilePass {
@Override
public boolean apply(SoyNode node) {
ImmutableList<Kind> validKinds =
- ImmutableList.of(Kind.HTML_COMMENT_NODE, Kind.LET_CONTENT_NODE, Kind.LET_VALUE_NODE);
+ ImmutableList.of(
+ Kind.HTML_COMMENT_NODE,
+ Kind.LET_CONTENT_NODE,
+ Kind.LET_VALUE_NODE,
+ Kind.DEBUGGER_NODE);
return !validKinds.contains(node.getKind())
// Skip empty raw text nodes. They will be later be stripped out as part
// of {@link CombineConsecutiveRawTextNodesPass}.
