private void validateNoKey(HtmlOpenTagNode firstTagNode) {
    for (SoyNode child : firstTagNode.getChildren()) {
      if (child instanceof KeyNode) {
        errorReporter.report(firstTagNode.getSourceLocation(), ROOT_HAS_KEY_NODE);
      }
    }
  }
private void validateNoKey ( HtmlOpenTagNode firstTagNode ) { for ( SoyNode child : firstTagNode . getChildren ( ) ) { if ( child instanceof KeyNode ) { errorReporter . report ( firstTagNode . getSourceLocation ( ) , ROOT_HAS_KEY_NODE ) ; } } }
See go/soy-element-keyed-roots for reasoning on why this is disallowed.