mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
[AST] InitAccessors: Requestify a "has init accessor" check
This commit is contained in:
@@ -6720,6 +6720,12 @@ Type AbstractStorageDecl::getValueInterfaceType() const {
|
||||
return cast<SubscriptDecl>(this)->getElementInterfaceType();
|
||||
}
|
||||
|
||||
bool AbstractStorageDecl::hasInitAccessor() const {
|
||||
return evaluateOrDefault(
|
||||
getASTContext().evaluator,
|
||||
HasInitAccessorRequest{const_cast<AbstractStorageDecl *>(this)}, false);
|
||||
}
|
||||
|
||||
VarDecl::VarDecl(DeclKind kind, bool isStatic, VarDecl::Introducer introducer,
|
||||
SourceLoc nameLoc, Identifier name,
|
||||
DeclContext *dc, StorageIsMutable_t supportsMutation)
|
||||
|
||||
Reference in New Issue
Block a user