Lines Matching full:leaf
35 syntax::Leaf::Leaf(syntax::TokenManager::Key K) : Node(NodeKind::Leaf), K(K) {} in Leaf() function in syntax::Leaf
186 if (const auto *L = dyn_cast<syntax::Leaf>(N)) { in dumpNode()
231 if (const auto *L = dyn_cast<syntax::Leaf>(N)) { in dumpTokens()
268 assert(isa<Leaf>(C)); in assertInvariants()
269 // FIXME: re-enable it when there is way to retrieve token kind in Leaf. in assertInvariants()
270 // assert(cast<Leaf>(C).getToken()->kind() == L->getDelimiterTokenKind()); in assertInvariants()
283 const syntax::Leaf *syntax::Tree::findFirstLeaf() const { in findFirstLeaf()
285 if (const auto *L = dyn_cast<syntax::Leaf>(&C)) in findFirstLeaf()
293 const syntax::Leaf *syntax::Tree::findLastLeaf() const { in findLastLeaf()
295 if (const auto *L = dyn_cast<syntax::Leaf>(C)) in findLastLeaf()
328 Children.push_back({ElementWithoutDelimiter, cast<syntax::Leaf>(&C)}); in getElementsAsNodesAndDelimiters()