Lines Matching refs:atLoc

132       SourceLocation atLoc = I->first;
140 rewriteProperty(props, atLoc);
146 PropsTy &props, SourceLocation atLoc,
157 MigrateCtx.rewritePropertyAttribute("retain", toAttr, atLoc);
161 return removeAssignForDefaultStrong(props, atLoc);
163 return rewriteAssign(props, atLoc);
165 return maybeAddWeakOrUnsafeUnretainedAttr(props, atLoc);
169 void rewriteProperty(PropsTy &props, SourceLocation atLoc) {
180 return doPropAction(PropAction_RetainReplacedWithStrong, props, atLoc);
187 return doPropAction(PropAction_AssignRemoved, props, atLoc);
188 return doPropAction(PropAction_AssignRewritten, props, atLoc);
192 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)))
195 return doPropAction(PropAction_MaybeAddWeakOrUnsafe, props, atLoc);
199 SourceLocation atLoc) const {
200 removeAttribute("retain", atLoc);
201 if (!removeAttribute("assign", atLoc))
213 void rewriteAssign(PropsTy &props, SourceLocation atLoc) const {
217 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "strong" :
220 bool rewroteAttr = rewriteAttribute("assign", toWhich, atLoc);
229 (Pass.isGCMigration() && !hasGCWeak(props, atLoc)) ? "__strong " :
243 SourceLocation atLoc) const {
248 atLoc);
271 bool removeAttribute(StringRef fromAttr, SourceLocation atLoc) const {
272 return MigrateCtx.removePropertyAttribute(fromAttr, atLoc);
276 SourceLocation atLoc) const {
277 return MigrateCtx.rewritePropertyAttribute(fromAttr, toAttr, atLoc);
280 bool addAttribute(StringRef attr, SourceLocation atLoc) const {
281 return MigrateCtx.addPropertyAttribute(attr, atLoc);
335 bool hasGCWeak(PropsTy &props, SourceLocation atLoc) const {
340 return MigrateCtx.AtPropsWeak.count(atLoc);