Move definitely static attributes into the statics array (context: http://google.github.io/incremental-dom/#statics-array).
As a side effect of this and [] most likely this mutator
[]
is no longer needed. In addition, mutations to jsaction from jsaction.listen should be respected more or less.
Blocked by
GITHUB_BREAKING_CHANGES=n/a
@@ -71,6 +71,14 @@ public final class HtmlAttributeNode extends AbstractParentSoyNode<StandaloneNod
return ((RawTextNode) attrValueNode).getRawText();
}
+ @Nullable
+ public String getStaticKey() {
+ if (getChild(0) instanceof RawTextNode) {
+ return ((RawTextNode) getChild(0)).getRawText();
+ }
+ return null;
+ }
+
public SourceLocation getEqualsLocation() {
checkState(equalsSignLocation != null, "This attribute doesn't have a value");
return equalsSignLocation.asLocation(getSourceLocation().getFilePath());
