[AST][Sema] Add ValueDecl::hasCurriedSelf
[AST][Sema] Add ValueDecl::hasCurriedSelf

This is a minimal cherry-pick of #25170.

harlanhaskins/swift,tkremenek/swift,allevato/swift,xwu/swift,sschiau/swift,aschwaighofer/swift,CodaFi/swift,gregomni/swift,rudkx/swift,tkremenek/swift,rudkx/swift,shahmishal/swift,harlanhaskins/swift,ahoppen/swift,airspeedswift/swift,sschiau/swift,sschiau/swift,jckarter/swift,atrick/swift,tkremenek/swift,roambotics/swift,rudkx/swift,karwa/swift,glessard/swift,gribozavr/swift,CodaFi/swift,JGiola/swift,parkera/swift,parkera/swift,JGiola/swift,apple/swift,devincoughlin/swift,CodaFi/swift,karwa/swift,harlanhaskins/swift,harlanhaskins/swift,gregomni/swift,hooman/swift,nathawes/swift,gribozavr/swift,rudkx/swift,xwu/swift,stephentyrone/swift,ahoppen/swift,stephentyrone/swift,tkremenek/swift,nathawes/swift,stephentyrone/swift,tkremenek/swift,airspeedswift/swift,gribozavr/swift,airspeedswift/swift,benlangmuir/swift,atrick/swift,benlangmuir/swift,sschiau/swift,glessard/swift,jckarter/swift,jmgc/swift,jckarter/swift,gregomni/swift,ahoppen/swift,benlangmuir/swift,hooman/swift,karwa/swift,CodaFi/swift,jckarter/swift,devincoughlin/swift,parkera/swift,devincoughlin/swift,airspeedswift/swift,shahmishal/swift,lorentey/swift,CodaFi/swift,allevato/swift,jmgc/swift,karwa/swift,gregomni/swift,devincoughlin/swift,apple/swift,parkera/swift,jmgc/swift,devincoughlin/swift,gregomni/swift,rudkx/swift,aschwaighofer/swift,benlangmuir/swift,hooman/swift,xwu/swift,roambotics/swift,hooman/swift,parkera/swift,aschwaighofer/swift,harlanhaskins/swift,apple/swift,apple/swift,lorentey/swift,apple/swift,allevato/swift,ahoppen/swift,harlanhaskins/swift,glessard/swift,devincoughlin/swift,roambotics/swift,gribozavr/swift,airspeedswift/swift,nathawes/swift,aschwaighofer/swift,jckarter/swift,sschiau/swift,rudkx/swift,shahmishal/swift,shahmishal/swift,sschiau/swift,gregomni/swift,shahmishal/swift,jmgc/swift,aschwaighofer/swift,airspeedswift/swift,stephentyrone/swift,tkremenek/swift,parkera/swift,lorentey/swift,atrick/swift,jmgc/swift,xwu/swift,hooman/swift,devincoughlin/swift,gribozavr/swift,gribozavr/swift,roambotics/swift,shahmishal/swift,tkremenek/swift,ahoppen/swift,roambotics/swift,jmgc/swift,glessard/swift,nathawes/swift,hooman/swift,karwa/swift,nathawes/swift,devincoughlin/swift,JGiola/swift,sschiau/swift,jckarter/swift,roambotics/swift,aschwaighofer/swift,JGiola/swift,benlangmuir/swift,gribozavr/swift,karwa/swift,atrick/swift,karwa/swift,benlangmuir/swift,lorentey/swift,ahoppen/swift,lorentey/swift,xwu/swift,allevato/swift,apple/swift,airspeedswift/swift,jckarter/swift,stephentyrone/swift,jmgc/swift,CodaFi/swift,nathawes/swift,JGiola/swift,sschiau/swift,JGiola/swift,parkera/swift,allevato/swift,parkera/swift,atrick/swift,CodaFi/swift,gribozavr/swift,karwa/swift,shahmishal/swift,xwu/swift,lorentey/swift,aschwaighofer/swift,lorentey/swift,nathawes/swift,hooman/swift,glessard/swift,glessard/swift,stephentyrone/swift,stephentyrone/swift,allevato/swift,lorentey/swift,xwu/swift,atrick/swift,harlanhaskins/swift,shahmishal/swift,allevato/swift