Lines Matching refs:SelectionTree

27 SelectionTree makeSelectionTree(const StringRef MarkedCode, ParsedAST &AST) {  in makeSelectionTree()
32 return SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), in makeSelectionTree()
36 return SelectionTree::createRight( in makeSelectionTree()
42 return SelectionTree::createRight(AST.getASTContext(), AST.getTokens(), 0u, in makeSelectionTree()
47 Range nodeRange(const SelectionTree::Node *N, ParsedAST &AST) { in nodeRange()
63 std::string nodeKind(const SelectionTree::Node *N) { in nodeKind()
67 std::vector<const SelectionTree::Node *> allNodes(const SelectionTree &T) { in allNodes()
68 std::vector<const SelectionTree::Node *> Result = {&T.root()}; in allNodes()
70 const SelectionTree::Node *N = Result[I]; in allNodes()
78 bool verifyCommonAncestor(const SelectionTree::Node &Root, in verifyCommonAncestor()
79 const SelectionTree::Node *Common, in verifyCommonAncestor()
86 for (const SelectionTree::Node *Child : Root.Children) in verifyCommonAncestor()
527 TEST(SelectionTree, Metrics) { in TEST() argument
582 for (const SelectionTree::Node *N : allNodes(T)) in TEST()
583 if (N->Selected == SelectionTree::Complete) in TEST()
585 else if (N->Selected == SelectionTree::Partial) in TEST()
664 const SelectionTree::Node *Str = T.commonAncestor(); in TEST()
678 SelectionTree::createEach( in TEST()
680 Test.point("ambiguous"), [&](SelectionTree T) { in TEST()
693 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST()
695 [&](SelectionTree T) { in TEST()
702 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST()
704 [&](SelectionTree T) { in TEST()
711 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST()
713 [&](SelectionTree T) { in TEST()
721 SelectionTree::createEach(AST.getASTContext(), AST.getTokens(), in TEST()
723 [&](SelectionTree T) { in TEST()