clang
10.0.0git
|
Static Public Member Functions | |
static void | addAfter (syntax::Node *Anchor, syntax::Node *New, NodeRole Role) |
Add a new node with a specified role. More... | |
static void | replace (syntax::Node *Old, syntax::Node *New) |
Replace the node, keeping the role. More... | |
static void | remove (syntax::Node *N) |
Completely remove the node from its parent. More... | |
Definition at line 28 of file Mutations.cpp.
|
inlinestatic |
Add a new node with a specified role.
Definition at line 31 of file Mutations.cpp.
References clang::syntax::Detached, clang::syntax::Node::isDetached(), P, and clang::syntax::Node::parent().
|
inlinestatic |
Completely remove the node from its parent.
Definition at line 62 of file Mutations.cpp.
References clang::syntax::Tree::firstChild(), P, and clang::syntax::Node::parent().
|
inlinestatic |
Replace the node, keeping the role.
Definition at line 46 of file Mutations.cpp.
References clang::syntax::Node::canModify(), clang::syntax::Node::isDetached(), clang::syntax::Node::nextSibling(), P, and clang::syntax::Node::parent().