Skip to content

SageInterface::replaceWithPattern

Replace an anchor node with a specified pattern subtree with optional SgVariantExpression. All SgVariantExpression in the pattern will be replaced with copies of the anchor node.

Synopsis

Declared in <SageIII/sageInterface/sageInterface.h>

[[visibility]]
SgNode*
replaceWithPattern(
    SgNode* anchor,
    SgNode* new_pattern);

Return Value

This class represents the base class for all IR nodes within Sage III.

Parameters

Name

Description

anchor

This class represents the base class for all IR nodes within Sage III.

new_pattern

This class represents the base class for all IR nodes within Sage III.

Created with MrDocs