Lines Matching refs:SelectionTree
40 using Node = SelectionTree::Node;
43 void recordMetrics(const SelectionTree &S, const LangOptions &Lang) { in recordMetrics()
175 constexpr SelectionTree::Selection NoTokens =
176 static_cast<SelectionTree::Selection>(
177 static_cast<unsigned char>(SelectionTree::Complete + 1));
181 void update(SelectionTree::Selection &Result, SelectionTree::Selection New) { in update()
188 Result = SelectionTree::Partial; in update()
284 S.Selected = SelectionTree::Complete; in SelectionTester()
286 S.Selected = SelectionTree::Partial; in SelectionTester()
293 SelectionTree::Selection
298 return SelectionTree::Unselected; in test()
308 return SelectionTree::Unselected; in test()
319 SelectionTree::Selection Result = NoTokens; in test()
425 SelectionTree::Selection
476 SelectionTree::Selection testTokenRange(unsigned Begin, unsigned End) const { in testTokenRange()
481 return SelectionTree::Unselected; in testTokenRange()
493 SelectionTree::Selection Result = in testTokenRange()
494 ExtendsOutsideSelection ? SelectionTree::Unselected : NoTokens; in testTokenRange()
501 SelectionTree::Selection testToken(unsigned Offset) const { in testToken()
505 return SelectionTree::Unselected; in testToken()
533 SelectionTree::Selection Selected;
739 Nodes.back().Selected = SelectionTree::Unselected; in SelectionVisitor()
839 N.Selected = SelectionTree::Unselected; in pop()
874 void claimTokensFor(const DynTypedNode &N, SelectionTree::Selection &Result) { in claimTokensFor()
938 void claimRange(SourceRange S, SelectionTree::Selection &Result) { in claimRange()
985 void SelectionTree::print(llvm::raw_ostream &OS, const SelectionTree::Node &N, in print()
988 OS.indent(Indent - 1) << (N.Selected == SelectionTree::Complete ? '*' in print()
998 std::string SelectionTree::Node::kind() const { in kind()
1027 bool SelectionTree::createEach(ASTContext &AST, in createEach()
1030 llvm::function_ref<bool(SelectionTree)> Func) { in createEach()
1032 return Func(SelectionTree(AST, Tokens, Begin, End)); in createEach()
1034 if (Func(SelectionTree(AST, Tokens, Bounds.first, Bounds.second))) in createEach()
1039 SelectionTree SelectionTree::createRight(ASTContext &AST, in createRight()
1042 llvm::Optional<SelectionTree> Result; in createRight()
1043 createEach(AST, Tokens, Begin, End, [&](SelectionTree T) { in createRight()
1050 SelectionTree::SelectionTree(ASTContext &AST, const syntax::TokenBuffer &Tokens, in SelectionTree() function in clang::clangd::SelectionTree
1069 const Node *SelectionTree::commonAncestor() const { in commonAncestor()
1079 const DeclContext &SelectionTree::Node::getDeclContext() const { in getDeclContext()
1092 const SelectionTree::Node &SelectionTree::Node::ignoreImplicit() const { in ignoreImplicit()
1099 const SelectionTree::Node &SelectionTree::Node::outerImplicit() const { in outerImplicit()