mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
swift-module-digester: diagnose self access kind changes for function decls.
This commit is contained in:
@@ -509,7 +509,6 @@ public:
|
||||
|
||||
class SDKNodeDeclAbstractFunc : public SDKNodeDecl {
|
||||
bool IsThrowing;
|
||||
bool IsMutating;
|
||||
Optional<uint8_t> SelfIndex;
|
||||
|
||||
protected:
|
||||
@@ -517,7 +516,6 @@ protected:
|
||||
virtual ~SDKNodeDeclAbstractFunc() = default;
|
||||
public:
|
||||
bool isThrowing() const { return IsThrowing; }
|
||||
bool isMutating() const { return IsMutating; }
|
||||
uint8_t getSelfIndex() const { return SelfIndex.getValue(); }
|
||||
Optional<uint8_t> getSelfIndexOptional() const { return SelfIndex; }
|
||||
bool hasSelfIndex() const { return SelfIndex.hasValue(); }
|
||||
@@ -540,10 +538,14 @@ public:
|
||||
};
|
||||
|
||||
class SDKNodeDeclFunction: public SDKNodeDeclAbstractFunc {
|
||||
StringRef FuncSelfKind;
|
||||
public:
|
||||
SDKNodeDeclFunction(SDKNodeInitInfo Info);
|
||||
SDKNode *getReturnType() { return *getChildBegin(); }
|
||||
StringRef getSelfAccessKind() const { return FuncSelfKind; }
|
||||
static bool classof(const SDKNode *N);
|
||||
void jsonize(json::Output &Out) override;
|
||||
void diagnose(SDKNode *Right) override;
|
||||
};
|
||||
|
||||
class SDKNodeDeclConstructor: public SDKNodeDeclAbstractFunc {
|
||||
|
||||
Reference in New Issue
Block a user