Lines Matching refs:SourceSelectionKind
50 SourceSelectionKind::None)); in ASTSelectionFinder()
94 SourceSelectionKind SelectionKind = in TraverseDecl()
122 SourceSelectionKind SelectionKind = in TraverseStmt()
132 void popAndAddToSelectionIfSelected(SourceSelectionKind SelectionKind) { in popAndAddToSelectionIfSelected()
135 if (SelectionKind != SourceSelectionKind::None || !Node.Children.empty()) in popAndAddToSelectionIfSelected()
139 SourceSelectionKind selectionKindFor(CharSourceRange Range) { in selectionKindFor()
145 return SourceSelectionKind::None; in selectionKindFor()
149 return SourceSelectionKind::ContainsSelection; in selectionKindFor()
150 return SourceSelectionKind::None; in selectionKindFor()
155 return SourceSelectionKind::ContainsSelection; in selectionKindFor()
158 return SourceSelectionKind::InsideSelection; in selectionKindFor()
162 return SourceSelectionKind::ContainsSelectionStart; in selectionKindFor()
164 return SourceSelectionKind::ContainsSelectionEnd; in selectionKindFor()
166 return SourceSelectionKind::None; in selectionKindFor()
199 static const char *selectionKindToString(SourceSelectionKind Kind) { in selectionKindToString()
201 case SourceSelectionKind::None: in selectionKindToString()
203 case SourceSelectionKind::ContainsSelection: in selectionKindToString()
205 case SourceSelectionKind::ContainsSelectionStart: in selectionKindToString()
207 case SourceSelectionKind::ContainsSelectionEnd: in selectionKindToString()
209 case SourceSelectionKind::InsideSelection: in selectionKindToString()
238 SourceSelectionKind Kind) { in hasAnyDirectChildrenWithKind()
239 assert(Kind != SourceSelectionKind::None && "invalid predicate!"); in hasAnyDirectChildrenWithKind()
243 if (Child.SelectionKind == SourceSelectionKind::None) in hasAnyDirectChildrenWithKind()
343 SourceSelectionKind Kind, in findDeepestWithKind()
373 SourceSelectionKind Kind) { in findDeepestWithKind()
386 SourceSelectionKind::ContainsSelection); in create()