Lines Matching refs:SelectionTree
37 using Node = SelectionTree::Node;
41 void recordMetrics(const SelectionTree &S, const LangOptions &Lang) { in recordMetrics()
151 constexpr SelectionTree::Selection NoTokens =
152 static_cast<SelectionTree::Selection>(
153 static_cast<unsigned char>(SelectionTree::Complete + 1));
157 void update(SelectionTree::Selection &Result, SelectionTree::Selection New) { in update()
164 Result = SelectionTree::Partial; in update()
246 S.Selected = SelectionTree::Complete; in SelectionTester()
248 S.Selected = SelectionTree::Partial; in SelectionTester()
254 SelectionTree::Selection
258 SelectionTree::Selection Result = NoTokens; in test()
290 SelectionTree::Selection
344 SelectionTree::Selection testTokenRange(unsigned Begin, unsigned End) const { in testTokenRange()
349 return SelectionTree::Unselected; in testTokenRange()
360 SelectionTree::Selection Result = in testTokenRange()
361 ExtendsOutsideSelection ? SelectionTree::Unselected : NoTokens; in testTokenRange()
368 SelectionTree::Selection testToken(unsigned Offset) const { in testToken()
372 return SelectionTree::Unselected; in testToken()
383 SelectionTree::Selection Selected;
562 Nodes.back().Selected = SelectionTree::Unselected; in SelectionVisitor()
668 N.Selected = SelectionTree::Unselected; in pop()
712 void claimRange(SourceRange S, SelectionTree::Selection &Result) { in claimRange()
760 void SelectionTree::print(llvm::raw_ostream &OS, const SelectionTree::Node &N, in print()
763 OS.indent(Indent - 1) << (N.Selected == SelectionTree::Complete ? '*' in print()
773 std::string SelectionTree::Node::kind() const { in kind()
802 bool SelectionTree::createEach(ASTContext &AST, in createEach()
805 llvm::function_ref<bool(SelectionTree)> Func) { in createEach()
807 return Func(SelectionTree(AST, Tokens, Begin, End)); in createEach()
809 if (Func(SelectionTree(AST, Tokens, Bounds.first, Bounds.second))) in createEach()
814 SelectionTree SelectionTree::createRight(ASTContext &AST, in createRight()
817 llvm::Optional<SelectionTree> Result; in createRight()
818 createEach(AST, Tokens, Begin, End, [&](SelectionTree T) { in createRight()
825 SelectionTree::SelectionTree(ASTContext &AST, const syntax::TokenBuffer &Tokens, in SelectionTree() function in clang::clangd::SelectionTree
844 const Node *SelectionTree::commonAncestor() const { in commonAncestor()
854 const DeclContext &SelectionTree::Node::getDeclContext() const { in getDeclContext()
867 const SelectionTree::Node &SelectionTree::Node::ignoreImplicit() const { in ignoreImplicit()
874 const SelectionTree::Node &SelectionTree::Node::outerImplicit() const { in outerImplicit()