Lines Matching refs:SelectionTree

37 using Node = SelectionTree::Node;
41 void recordMetrics(const SelectionTree &S) { in recordMetrics()
148 constexpr SelectionTree::Selection NoTokens =
149 static_cast<SelectionTree::Selection>(
150 static_cast<unsigned char>(SelectionTree::Complete + 1));
154 void update(SelectionTree::Selection &Result, SelectionTree::Selection New) { in update()
161 Result = SelectionTree::Partial; in update()
243 S.Selected = SelectionTree::Complete; in SelectionTester()
245 S.Selected = SelectionTree::Partial; in SelectionTester()
251 SelectionTree::Selection
255 SelectionTree::Selection Result = NoTokens; in test()
287 SelectionTree::Selection
341 SelectionTree::Selection testTokenRange(unsigned Begin, unsigned End) const { in testTokenRange()
346 return SelectionTree::Unselected; in testTokenRange()
357 SelectionTree::Selection Result = in testTokenRange()
358 ExtendsOutsideSelection ? SelectionTree::Unselected : NoTokens; in testTokenRange()
365 SelectionTree::Selection testToken(unsigned Offset) const { in testToken()
369 return SelectionTree::Unselected; in testToken()
380 SelectionTree::Selection Selected;
559 Nodes.back().Selected = SelectionTree::Unselected; in SelectionVisitor()
665 N.Selected = SelectionTree::Unselected; in pop()
709 void claimRange(SourceRange S, SelectionTree::Selection &Result) { in claimRange()
757 void SelectionTree::print(llvm::raw_ostream &OS, const SelectionTree::Node &N, in print()
760 OS.indent(Indent - 1) << (N.Selected == SelectionTree::Complete ? '*' in print()
770 std::string SelectionTree::Node::kind() const { in kind()
799 bool SelectionTree::createEach(ASTContext &AST, in createEach()
802 llvm::function_ref<bool(SelectionTree)> Func) { in createEach()
804 return Func(SelectionTree(AST, Tokens, Begin, End)); in createEach()
806 if (Func(SelectionTree(AST, Tokens, Bounds.first, Bounds.second))) in createEach()
811 SelectionTree SelectionTree::createRight(ASTContext &AST, in createRight()
814 llvm::Optional<SelectionTree> Result; in createRight()
815 createEach(AST, Tokens, Begin, End, [&](SelectionTree T) { in createRight()
822 SelectionTree::SelectionTree(ASTContext &AST, const syntax::TokenBuffer &Tokens, in SelectionTree() function in clang::clangd::SelectionTree
841 const Node *SelectionTree::commonAncestor() const { in commonAncestor()
851 const DeclContext &SelectionTree::Node::getDeclContext() const { in getDeclContext()
864 const SelectionTree::Node &SelectionTree::Node::ignoreImplicit() const { in ignoreImplicit()
871 const SelectionTree::Node &SelectionTree::Node::outerImplicit() const { in outerImplicit()