Searched defs:PreorderVisitor (Results 1 – 1 of 1) sorted by relevance
190 struct PreorderVisitor : public RecursiveASTVisitor<PreorderVisitor> { struct191 int Id = 0, Depth = 0;192 NodeId Parent;193 SyntaxTree::Impl &Tree;195 PreorderVisitor(SyntaxTree::Impl &Tree) : Tree(Tree) {} in PreorderVisitor() argument197 template <class T> std::tuple<NodeId, NodeId> PreTraverse(T *ASTNode) { in PreTraverse()215 void PostTraverse(std::tuple<NodeId, NodeId> State) { in PostTraverse()232 bool TraverseDecl(Decl *D) { in TraverseDecl()240 bool TraverseStmt(Stmt *S) { in TraverseStmt()250 bool TraverseType(QualType T) { return true; } in TraverseType()[all …]