• Home
  • Raw
  • Download

Lines Matching refs:commit

233                                   const NSAPI &NS, edit::Commit &commit,  in rewriteToPropertyDotSyntax()  argument
272 commit.insertBefore(receiver->getLocStart(), "("); in rewriteToPropertyDotSyntax()
278 commit.replace(SpaceRange, PropertyDotString); in rewriteToPropertyDotSyntax()
281 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
282 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
285 commit.insertWrap("(", receiver->getSourceRange(), ")"); in rewriteToPropertyDotSyntax()
303 commit.replace(Range, PropertyDotString); in rewriteToPropertyDotSyntax()
305 commit.replace(SourceRange(MsgRange.getBegin(), MsgRange.getBegin()), ""); in rewriteToPropertyDotSyntax()
306 commit.replace(SourceRange(MsgRange.getEnd(), MsgRange.getEnd()), ""); in rewriteToPropertyDotSyntax()
324 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
325 edit::rewriteToObjCLiteralSyntax(E, *Consumer.NSAPIObj, commit, &PMap); in VisitObjCMessageExpr()
326 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
330 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
331 edit::rewriteToObjCSubscriptSyntax(E, *Consumer.NSAPIObj, commit); in VisitObjCMessageExpr()
332 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
336 edit::Commit commit(*Consumer.Editor); in VisitObjCMessageExpr() local
338 commit, &PMap); in VisitObjCMessageExpr()
339 Consumer.Editor->commit(commit); in VisitObjCMessageExpr()
454 const NSAPI &NS, edit::Commit &commit, in rewriteToObjCProperty() argument
548 commit.replace(CharSourceRange::getCharRange(Getter->getLocStart(), in rewriteToObjCProperty()
559 commit.remove(SourceRange(BeginOfSetterDclLoc, EndLoc)); in rewriteToObjCProperty()
664 const NSAPI &NS, edit::Commit &commit) { in rewriteToObjCInterfaceDecl() argument
690 commit.insertAfterToken(EndLoc, ClassString); in rewriteToObjCInterfaceDecl()
707 const NSAPI &NS, edit::Commit &commit, in rewriteToNSEnumDecl() argument
724 commit.replace(R, ClassString); in rewriteToNSEnumDecl()
730 commit.insertFromRange(TypedefDcl->getLocStart(), EnumDclRange); in rewriteToNSEnumDecl()
740 commit.remove(TDRange); in rewriteToNSEnumDecl()
752 commit.remove(SourceRange(BeginOfEnumDclLoc, EndOfEnumDclLoc)); in rewriteToNSEnumDecl()
761 const NSAPI &NS, edit::Commit &commit, in rewriteToNSMacroDecl() argument
791 commit.replace(R, ClassString); in rewriteToNSMacroDecl()
797 commit.remove(SourceRange(StartTypedefLoc, EndTypedefLoc)); in rewriteToNSMacroDecl()
892 edit::Commit commit(*Editor); in migrateProtocolConformance() local
894 *NSAPIObj, commit); in migrateProtocolConformance()
895 Editor->commit(commit); in migrateProtocolConformance()
945 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
946 rewriteToNSMacroDecl(Ctx, EnumDcl, TypedefDcl, *NSAPIObj, commit, !NSOptions); in migrateNSEnumDecl()
947 Editor->commit(commit); in migrateNSEnumDecl()
958 edit::Commit commit(*Editor); in migrateNSEnumDecl() local
960 commit, NSIntegerName, NSOptions); in migrateNSEnumDecl()
961 Editor->commit(commit); in migrateNSEnumDecl()
983 edit::Commit commit(*ASTC.Editor); in ReplaceWithInstancetype() local
984 commit.replace(R, ClassString); in ReplaceWithInstancetype()
985 ASTC.Editor->commit(commit); in ReplaceWithInstancetype()
1005 edit::Commit commit(*ASTC.Editor); in ReplaceWithClasstype() local
1006 commit.replace(R, ClassString); in ReplaceWithClasstype()
1007 ASTC.Editor->commit(commit); in ReplaceWithClasstype()
1231 edit::Commit commit(*Editor); in migrateProperty() local
1232 rewriteToObjCProperty(Method, SetterMethod, *NSAPIObj, commit, in migrateProperty()
1239 Editor->commit(commit); in migrateProperty()
1245 edit::Commit commit(*Editor); in migrateProperty() local
1246 rewriteToObjCProperty(Method, nullptr /*SetterMethod*/, *NSAPIObj, commit, in migrateProperty()
1253 Editor->commit(commit); in migrateProperty()
1271 edit::Commit commit(*Editor); in migrateNsReturnsInnerPointer() local
1272 commit.insertBefore(OM->getLocEnd(), " NS_RETURNS_INNER_POINTER"); in migrateNsReturnsInnerPointer()
1273 Editor->commit(commit); in migrateNsReturnsInnerPointer()
1283 edit::Commit commit(*Editor); in migratePropertyNsReturnsInnerPointer() local
1284 commit.insertBefore(P->getLocEnd(), " NS_RETURNS_INNER_POINTER "); in migratePropertyNsReturnsInnerPointer()
1285 Editor->commit(commit); in migratePropertyNsReturnsInnerPointer()
1409 edit::Commit commit(*Editor); in AnnotateImplicitBridging() local
1410 commit.insertBefore(FirstFD->getLocStart(), PragmaString); in AnnotateImplicitBridging()
1424 commit.insertAfterToken(EndLoc, PragmaString); in AnnotateImplicitBridging()
1425 Editor->commit(commit); in AnnotateImplicitBridging()
1486 edit::Commit commit(*Editor); in AddCFAnnotations() local
1487 commit.insertAfterToken(FuncDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1488 Editor->commit(commit); in AddCFAnnotations()
1499 edit::Commit commit(*Editor); in AddCFAnnotations() local
1500 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1501 Editor->commit(commit); in AddCFAnnotations()
1505 edit::Commit commit(*Editor); in AddCFAnnotations() local
1506 commit.insertBefore(pd->getLocation(), "NS_CONSUMED "); in AddCFAnnotations()
1507 Editor->commit(commit); in AddCFAnnotations()
1612 edit::Commit commit(*Editor); in AddCFAnnotations() local
1613 commit.insertBefore(MethodDecl->getLocEnd(), AnnotationString); in AddCFAnnotations()
1614 Editor->commit(commit); in AddCFAnnotations()
1625 edit::Commit commit(*Editor); in AddCFAnnotations() local
1626 commit.insertBefore(pd->getLocation(), "CF_CONSUMED "); in AddCFAnnotations()
1627 Editor->commit(commit); in AddCFAnnotations()
1650 edit::Commit commit(*Editor); in migrateAddMethodAnnotation() local
1651 commit.insertBefore(MethodDecl->getLocEnd(), " NS_CONSUMES_SELF"); in migrateAddMethodAnnotation()
1652 Editor->commit(commit); in migrateAddMethodAnnotation()
1727 edit::Commit commit(*Editor); in inferDesignatedInitializers() local
1728 commit.insert(IFaceM->getLocEnd(), " NS_DESIGNATED_INITIALIZER"); in inferDesignatedInitializers()
1729 Editor->commit(commit); in inferDesignatedInitializers()
1740 edit::Commit commit(*Editor); in InsertFoundation() local
1742 commit.insert(Loc, "#ifndef NS_ENUM\n@import Foundation;\n#endif\n"); in InsertFoundation()
1744 commit.insert(Loc, "#ifndef NS_ENUM\n#import <Foundation/Foundation.h>\n#endif\n"); in InsertFoundation()
1745 Editor->commit(commit); in InsertFoundation()
2184 edit::Commit commit(Editor); in applyEditsToTemp() local
2186 commit.insert(Loc, Entry.Text); in applyEditsToTemp()
2188 commit.remove(Range); in applyEditsToTemp()
2190 commit.replace(Range, Entry.Text); in applyEditsToTemp()
2192 Editor.commit(commit); in applyEditsToTemp()