Lines Matching refs:Expected
54 static Expected<DynTypedNode> getNode(const ast_matchers::BoundNodes &Nodes, in getNode()
107 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in before()
108 Expected<CharSourceRange> SelectedRange = Selector(Result); in before()
116 return [Selector](const MatchResult &Result) -> Expected<CharSourceRange> { in after()
117 Expected<CharSourceRange> SelectedRange = Selector(Result); in after()
142 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in node()
143 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in node()
155 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in statement()
156 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in statement()
165 return [Begin, End](const MatchResult &Result) -> Expected<CharSourceRange> { in enclose()
166 Expected<CharSourceRange> BeginRange = Begin(Result); in enclose()
169 Expected<CharSourceRange> EndRange = End(Result); in enclose()
189 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in member()
190 Expected<DynTypedNode> Node = getNode(Result.Nodes, ID); in member()
201 return [ID](const MatchResult &Result) -> Expected<CharSourceRange> { in name()
202 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in name()
261 Expected<CharSourceRange> operator()(const MatchResult &Result) { in operator ()()
262 Expected<DynTypedNode> N = getNode(Result.Nodes, ID); in operator ()()
332 return [S](const MatchResult &Result) -> Expected<CharSourceRange> { in expansion()
333 Expected<CharSourceRange> SRange = S(Result); in expansion()