We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7c2ec2c commit 05dc664Copy full SHA for 05dc664
java/src/com/google/template/soy/exprtree/DataAccessNode.java
@@ -80,6 +80,9 @@ public final SourceLocation getAccessSourceLocation() {
80
81
@Override
82
public String toSourceString() {
83
+ if (SoyPrecedence.shouldGuard(this, getBaseExprChild())) {
84
+ return "(" + getBaseExprChild().toSourceString() + ")" + getSourceStringSuffix();
85
+ }
86
return getBaseExprChild().toSourceString() + getSourceStringSuffix();
87
}
88
0 commit comments