swift-module-digester: keep track of whether a decl is internal.

This commit is contained in:
Xi Ge
2018-09-30 18:52:59 -07:00
parent 84bb580a50
commit 6a198b151a
5 changed files with 32 additions and 10 deletions

View File

@@ -293,6 +293,7 @@ class SDKNodeDecl: public SDKNode {
bool IsProtocolReq;
bool IsOverriding;
bool IsOpen;
bool IsInternal;
uint8_t ReferenceOwnership;
StringRef GenericSig;
@@ -323,6 +324,7 @@ public:
bool isOverriding() const { return IsOverriding; };
bool isOptional() const { return hasDeclAttribute(DeclAttrKind::DAK_Optional); }
bool isOpen() const { return IsOpen; }
bool isInternal() const { return IsInternal; }
StringRef getGenericSignature() const { return GenericSig; }
StringRef getScreenInfo() const;
virtual void jsonize(json::Output &Out) override;