Lines Matching refs:ForestNode
19 void ForestNode::RecursiveIterator::operator++() { in operator ++()
43 llvm::iterator_range<ForestNode::RecursiveIterator>
44 ForestNode::descendants() const { in descendants()
48 std::string ForestNode::dump(const Grammar &G) const { in dump()
63 std::string ForestNode::dumpRecursive(const Grammar &G, in dumpRecursive()
68 llvm::DenseMap<const ForestNode *, /*VisitCount*/ unsigned> VisitCounts; in dumpRecursive()
69 std::function<void(const ForestNode *)> CountVisits = in dumpRecursive()
70 [&](const ForestNode *P) { in dumpRecursive()
94 llvm::DenseMap<const ForestNode *, size_t> ReferenceIds; in dumpRecursive()
97 std::function<void(const ForestNode *, Token::Index, llvm::Optional<SymbolID>, in dumpRecursive()
99 Dump = [&](const ForestNode *P, Token::Index End, in dumpRecursive()
103 llvm::ArrayRef<const ForestNode *> Children; in dumpRecursive()
142 if (SharedNode && P->kind() != ForestNode::Terminal) { in dumpRecursive()
179 llvm::ArrayRef<ForestNode>
181 ForestNode *Terminals = Arena.Allocate<ForestNode>(Code.tokens().size()); in createTerminals()
185 ForestNode(ForestNode::Terminal, tokenSymbol(T.Kind), in createTerminals()