Sema: Use ASTScope::lookupSingleLocalDecl() in CSGen's CollectVarRefs pass
Sema: Use ASTScope::lookupSingleLocalDecl() in CSGen's CollectVarRefs pass

When parse-time lookup is disabled, we have to resolve UnresolvedDeclRefExprs
inside the closure body, since there's no guarantee that preCheckExpression()
has run yet.

JGiola/swift,roambotics/swift,parkera/swift,rudkx/swift,ahoppen/swift,roambotics/swift,atrick/swift,apple/swift,apple/swift,jmgc/swift,JGiola/swift,jmgc/swift,jmgc/swift,tkremenek/swift,glessard/swift,hooman/swift,rudkx/swift,parkera/swift,xwu/swift,roambotics/swift,atrick/swift,ahoppen/swift,hooman/swift,parkera/swift,xwu/swift,apple/swift,gregomni/swift,ahoppen/swift,gregomni/swift,xwu/swift,apple/swift,benlangmuir/swift,benlangmuir/swift,benlangmuir/swift,benlangmuir/swift,tkremenek/swift,gregomni/swift,benlangmuir/swift,tkremenek/swift,JGiola/swift,tkremenek/swift,jmgc/swift,roambotics/swift,atrick/swift,apple/swift,xwu/swift,rudkx/swift,tkremenek/swift,hooman/swift,JGiola/swift,glessard/swift,rudkx/swift,tkremenek/swift,rudkx/swift,gregomni/swift,xwu/swift,ahoppen/swift,parkera/swift,ahoppen/swift,xwu/swift,parkera/swift,hooman/swift,atrick/swift,hooman/swift,roambotics/swift,jmgc/swift,jmgc/swift,roambotics/swift,glessard/swift,jmgc/swift,gregomni/swift,parkera/swift,hooman/swift,parkera/swift,ahoppen/swift,glessard/swift,xwu/swift,JGiola/swift,hooman/swift,glessard/swift,atrick/swift,parkera/swift,benlangmuir/swift,glessard/swift,apple/swift,JGiola/swift,tkremenek/swift,gregomni/swift,atrick/swift,rudkx/swift