Function SgNodeHelper::replaceAstWithString#
Defined in File SgNodeHelper.h
Function Documentation#
-
void SgNodeHelper::replaceAstWithString(SgNode *node, std::string s)#
replaces the ast with root ‘node’ with the string ‘s’. The string is attached to the AST and the unparser uses string s instead of unparsing this substree. This function can be used to generate C++ extensions.