Lines Matching defs:Result
100 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> {
101 Expected<CharSourceRange> SelectedRange = Selector(Result);
109 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> {
110 Expected<CharSourceRange> SelectedRange = Selector(Result);
123 *Result.SourceManager, Result.Context->getLangOpts());
135 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> {
136 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID);
142 *Result.Context)
148 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> {
149 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID);
153 *Result.Context);
158 return [Begin, End](const MatchResult &Result) -> Expected<CharSourceRange> {
159 Expected<CharSourceRange> BeginRange = Begin(Result);
162 Expected<CharSourceRange> EndRange = End(Result);
169 if (Result.SourceManager->isBeforeInTranslationUnit(E, B)) {
182 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> {
183 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID);
194 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> {
195 Expected<DynTypedNode> N = getNode(Result.Nodes, ID);
209 if (tooling::getText(R, *Result.Context) != D->getName())
254 Expected<CharSourceRange> operator()(const MatchResult &Result) {
255 Expected<DynTypedNode> N = getNode(Result.Nodes, ID);
259 return Func(Result, *Arg);
309 CharSourceRange getArgumentsRange(const MatchResult &Result,
313 findArgStartDelimiter(CE, RLoc, *Result.SourceManager,
314 Result.Context->getLangOpts())
345 CharSourceRange getElseRange(const MatchResult &Result, const IfStmt &S) {
348 tok::TokenKind::semi, *Result.Context);
357 return [S](const MatchResult &Result) -> Expected<CharSourceRange> {
358 Expected<CharSourceRange> SRange = S(Result);
361 return Result.SourceManager->getExpansionRange(*SRange);