Selector SelectorTable::constructSetterSelector(IdentifierTable &Idents, SelectorTable &SelTable, const IdentifierInfo *Name) { IdentifierInfo *SetterName = &Idents.get(constructSetterName(Name->getName())); return SelTable.getUnarySelector(SetterName); }
/*static*/ Selector SelectorTable::constructSetterName(IdentifierTable &Idents, SelectorTable &SelTable, const IdentifierInfo *Name) { SmallString<100> SelectorName; SelectorName = "set"; SelectorName += Name->getName(); SelectorName[3] = toUppercase(SelectorName[3]); IdentifierInfo *SetterName = &Idents.get(SelectorName); return SelTable.getUnarySelector(SetterName); }