clang: clang::diff::Subtree Class Reference (original) (raw)

Public Member Functions
Subtree (const SyntaxTree::Impl &Tree, NodeId SubtreeRoot)
int getSize () const
NodeId getIdInRoot (SNodeId Id) const
const Node & getNode (SNodeId Id) const
SNodeId getLeftMostDescendant (SNodeId Id) const
NodeId getPostorderOffset () const
Returns the postorder index of the leftmost descendant in the subtree.
std::string getNodeValue (SNodeId Id) const

Definition at line 485 of file ASTDiff.cpp.

getIdInRoot()

NodeId clang::diff::Subtree::getIdInRoot ( SNodeId Id) const inline

getLeftMostDescendant()

SNodeId clang::diff::Subtree::getLeftMostDescendant ( SNodeId Id) const inline

getNode()

const Node & clang::diff::Subtree::getNode ( SNodeId Id) const inline

getNodeValue()

std::string clang::diff::Subtree::getNodeValue ( SNodeId Id) const inline

getPostorderOffset()

NodeId clang::diff::Subtree::getPostorderOffset ( ) const inline

Returns the postorder index of the leftmost descendant in the subtree.

Definition at line 515 of file ASTDiff.cpp.

References Tree.

getSize()

int clang::diff::Subtree::getSize ( ) const inline

KeyRoots

std::vector<SNodeId> clang::diff::Subtree::KeyRoots


The documentation for this class was generated from the following file: