since the getObjCGetterSelector/Setter methods from VarDecl/SubscriptDecl down

to AbstractStorageDecl, NFC.


Swift SVN r13836
This commit is contained in:
Chris Lattner
2014-02-12 19:16:40 +00:00
parent b67624567b
commit c23185d9ba
5 changed files with 96 additions and 134 deletions

View File

@@ -2606,7 +2606,15 @@ public:
/// Return true if this storage needs to be accessed with getters and
/// setters for Objective-C.
bool usesObjCGetterAndSetter() const;
/// Given that this is an Objective-C property or subscript declaration,
/// produce its getter selector in the given buffer (as UTF-8).
StringRef getObjCGetterSelector(SmallVectorImpl<char> &buffer) const;
/// Given that this is an Objective-C property or subscript declaration,
/// produce its setter selector in the given buffer (as UTF-8).
StringRef getObjCSetterSelector(SmallVectorImpl<char> &buffer) const;
AbstractStorageDecl *getOverriddenDecl() const {
return OverriddenDecl.getPointer();
}
@@ -2664,14 +2672,6 @@ public:
/// Determine whether this declaration is an anonymous closure parameter.
bool isAnonClosureParam() const;
/// Given that this is an Objective-C property declaration, produce
/// its getter selector in the given buffer (as UTF-8).
StringRef getObjCGetterSelector(SmallVectorImpl<char> &buffer) const;
/// Given that this is an Objective-C property declaration, produce
/// its setter selector in the given buffer (as UTF-8).
StringRef getObjCSetterSelector(SmallVectorImpl<char> &buffer) const;
/// Is this a type ('static') variable?
bool isStatic() const { return VarDeclBits.Static; }
void setStatic(bool IsStatic) { VarDeclBits.Static = IsStatic; }
@@ -2772,14 +2772,6 @@ public:
/// implies.
ObjCSubscriptKind getObjCSubscriptKind() const;
/// Given that this is an Objective-C subscript declaration, produce
/// its getter selector.
StringRef getObjCGetterSelector() const;
/// Given that this is an Objective-C subscript declaration, produce
/// its setter selector.
StringRef getObjCSetterSelector() const;
SubscriptDecl *getOverriddenDecl() const {
return cast_or_null<SubscriptDecl>(
AbstractStorageDecl::getOverriddenDecl());