@@ -468,47 +468,6 @@ void DefaultTypeRequest::cacheResult(Type value) const {
468468 cacheEntry = value;
469469}
470470
471- bool PropertyWrapperTypeInfoRequest::isCached () const {
472- auto nominal = std::get<0 >(getStorage ());
473- return nominal->getAttrs ().hasAttribute <PropertyWrapperAttr>();;
474- }
475-
476- bool AttachedPropertyWrappersRequest::isCached () const {
477- auto var = std::get<0 >(getStorage ());
478- return !var->getAttrs ().isEmpty ();
479- }
480-
481- bool AttachedPropertyWrapperTypeRequest::isCached () const {
482- auto var = std::get<0 >(getStorage ());
483- return !var->getAttrs ().isEmpty ();
484- }
485-
486- bool PropertyWrapperBackingPropertyTypeRequest::isCached () const {
487- auto var = std::get<0 >(getStorage ());
488- return !var->getAttrs ().isEmpty () &&
489- !(isa<ParamDecl>(var) && isa<ClosureExpr>(var->getDeclContext ()));
490- }
491-
492- bool PropertyWrapperAuxiliaryVariablesRequest::isCached () const {
493- auto var = std::get<0 >(getStorage ());
494- return !var->getAttrs ().isEmpty () || var->hasImplicitPropertyWrapper ();
495- }
496-
497- bool PropertyWrapperInitializerInfoRequest::isCached () const {
498- auto var = std::get<0 >(getStorage ());
499- return !var->getAttrs ().isEmpty () || var->hasImplicitPropertyWrapper ();
500- }
501-
502- bool PropertyWrapperMutabilityRequest::isCached () const {
503- auto var = std::get<0 >(getStorage ());
504- return !var->getAttrs ().isEmpty () || var->hasImplicitPropertyWrapper ();
505- }
506-
507- bool PropertyWrapperLValuenessRequest::isCached () const {
508- auto var = std::get<0 >(getStorage ());
509- return !var->getAttrs ().isEmpty () || var->hasImplicitPropertyWrapper ();
510- }
511-
512471void swift::simple_display (
513472 llvm::raw_ostream &out, const PropertyWrapperTypeInfo &propertyWrapper) {
514473 out << " { " ;
@@ -609,16 +568,6 @@ void swift::simple_display(llvm::raw_ostream &out,
609568 << (value.allowUsableFromInline ? " true" : " false" );
610569}
611570
612- // ----------------------------------------------------------------------------//
613- // ResultBuilder-related requests.
614- // ----------------------------------------------------------------------------//
615-
616- bool AttachedResultBuilderRequest::isCached () const {
617- // Only needs to be cached if there are any custom attributes.
618- auto var = std::get<0 >(getStorage ());
619- return var->getAttrs ().hasAttribute <CustomAttr>();
620- }
621-
622571// ----------------------------------------------------------------------------//
623572// SelfAccessKindRequest computation.
624573// ----------------------------------------------------------------------------//
0 commit comments