I’m not sure I totally understand the pattern:
else if (node.getNodeID() == ASTNodeID.Op_AddAssignID)
{
getWalker().walk(xmlNode);
write(".concat(");
getWalker().walk(node.getRightOperandNode());
write(ASEmitterTokens.PAREN_CLOSE);
return;
}
else if (node.getNodeID() == ASTNodeID.Op_AddID)
{
getWalker().walk(xmlNode);
write(".copy().concat(");
getWalker().walk(node.getRightOperandNode());
write(ASEmitterTokens.PAREN_CLOSE);
return;
}
I think there’s two changes which need to happen. One seems easy:
write(".copy().concat(“); needs to become write(“.plus(“);
However, for ASTNodeID.Op_AddAssignID we need to add in foo = foo before the
plus. I’m not sure what I need to do for that. I tried figuring out what’s
happening in getWalker.walk(), but after a few minutes my limited attention
span lost it… ;-)
On May 9, 2016, at 10:52 PM, Harbs <[email protected]> wrote:
>> Feel free to make changes to BinaryOperatorEmitter and see if you can make
>> it all work.
>
> I’ll try, but the last time I did, I was not very successful. I don’t have a
> Java dev setup, so I’d probably just make these edits in the text editor and
> run ant to build. What’s the minimum target I need to rebuild FalconJX?