Function replaceExpressionWithExpression

Function replaceExpressionWithExpression#

Function Documentation#

void replaceExpressionWithExpression(SgExpression *from, SgExpression *to)#

Replace the expression “from” with another expression “to”, wherever it appears in the AST. The expression “from” is not deleted, and may be reused elsewhere in the AST.