mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
since the getObjCGetterSelector/Setter methods from VarDecl/SubscriptDecl down
to AbstractStorageDecl, NFC. Swift SVN r13836
This commit is contained in:
@@ -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());
|
||||
|
||||
Reference in New Issue
Block a user