[JS] Add toString() override to JsPropertyInitializer
This doesn't affect js2string, but is convenient for debugging
This commit is contained in:
@@ -59,4 +59,9 @@ public class JsPropertyInitializer extends SourceInfoAwareJsNode {
|
||||
public JsPropertyInitializer deepCopy() {
|
||||
return new JsPropertyInitializer(labelExpr.deepCopy(), valueExpr.deepCopy()).withMetadataFrom(this);
|
||||
}
|
||||
|
||||
@Override
|
||||
public String toString() {
|
||||
return labelExpr + ": " + valueExpr;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user