Lines Matching full:edit
34 static Expected<SmallVector<transformer::Edit, 1>>
36 SmallVector<transformer::Edit, 1> Edits; in translateEdits()
48 // equivalent to `flatten(edit(A), edit(B))`. The former will abort if `A` in translateEdits()
51 return SmallVector<Edit, 0>(); in translateEdits()
52 transformer::Edit T; in translateEdits()
84 EditGenerator transformer::edit(ASTEdit Edit) { in edit() function in transformer
85 return [Edit = std::move(Edit)](const MatchResult &Result) { in edit()
86 return translateEdits(Result, {Edit}); in edit()
92 -> Expected<SmallVector<transformer::Edit, 1>> { in noopEdit()
100 Edit E; in noopEdit()
104 return SmallVector<Edit, 1>{E}; in noopEdit()
114 const MatchResult &Result) -> llvm::Expected<SmallVector<Edit, 1>> { in flattenVector()
115 SmallVector<Edit, 1> AllEdits; in flattenVector()
117 llvm::Expected<SmallVector<Edit, 1>> Edits = G(Result); in flattenVector()
190 EditGenerator transformer::detail::makeEditGenerator(ASTEdit Edit) { in makeEditGenerator() argument
191 return edit(std::move(Edit)); in makeEditGenerator()
294 Expected<SmallVector<Edit, 1>> Edits = SmallVector<Edit, 1>();
299 llvm::Expected<SmallVector<clang::transformer::Edit, 1>>
309 llvm::Expected<SmallVector<clang::transformer::Edit, 1>>
315 llvm::Expected<SmallVector<clang::transformer::Edit, 1>>
321 llvm::Expected<SmallVector<clang::transformer::Edit, 1>>
327 llvm::Expected<SmallVector<clang::transformer::Edit, 1>>
348 -> llvm::Expected<SmallVector<clang::transformer::Edit, 1>> { in rewriteDescendants()