Beispiel #1
0
 inline void findNodeKindVisitor(const NodePtr& parent, const NodePtr& node, NodeKind wanted, NodePtrVector& result) {
   if (node->kind() == wanted)
     result.push_back(node);
 }
Beispiel #2
0
 void pushParent(const NodePtr& p) {
   _parents.push_back(p);
 }
Beispiel #3
0
 inline void findNodeTypeVisitor(const NodePtr& parent, const NodePtr& node, NodeType wanted, NodePtrVector& result) {
   if (node->type() == wanted)
     result.push_back(node);
 }