[ASTPrinter] Introduce a function for the logic of whether to print a declaration or not.
[ASTPrinter] Introduce a function for the logic of whether to print a declaration or not.

Swift SVN r16270

return/swift,ahoppen/swift,deyton/swift,jopamer/swift,swiftix/swift.old,glessard/swift,djwbrown/swift,OscarSwanros/swift,huonw/swift,Jnosh/swift,kperryua/swift,ben-ng/swift,danielmartin/swift,frootloops/swift,dduan/swift,JaSpa/swift,ken0nek/swift,therealbnut/swift,kstaring/swift,practicalswift/swift,sschiau/swift,tinysun212/swift-windows,huonw/swift,LeoShimonaka/swift,jopamer/swift,karwa/swift,lorentey/swift,JGiola/swift,cbrentharris/swift,jmgc/swift,milseman/swift,calebd/swift,cbrentharris/swift,gribozavr/swift,jtbandes/swift,calebd/swift,swiftix/swift,hughbe/swift,kentya6/swift,shahmishal/swift,kusl/swift,zisko/swift,natecook1000/swift,deyton/swift,modocache/swift,dduan/swift,therealbnut/swift,shahmishal/swift,modocache/swift,slavapestov/swift,rudkx/swift,jtbandes/swift,alblue/swift,xedin/swift,emilstahl/swift,benlangmuir/swift,codestergit/swift,amraboelela/swift,huonw/swift,modocache/swift,huonw/swift,KrishMunot/swift,russbishop/swift,tinysun212/swift-windows,gmilos/swift,alblue/swift,amraboelela/swift,modocache/swift,devincoughlin/swift,emilstahl/swift,swiftix/swift,shahmishal/swift,return/swift,xedin/swift,tinysun212/swift-windows,gribozavr/swift,khizkhiz/swift,kperryua/swift,Ivacker/swift,JGiola/swift,felix91gr/swift,arvedviehweger/swift,JGiola/swift,LeoShimonaka/swift,dduan/swift,xedin/swift,codestergit/swift,roambotics/swift,sschiau/swift,kusl/swift,MukeshKumarS/Swift,cbrentharris/swift,amraboelela/swift,hooman/swift,adrfer/swift,kstaring/swift,uasys/swift,kusl/swift,amraboelela/swift,sschiau/swift,devincoughlin/swift,manavgabhawala/swift,Ivacker/swift,gregomni/swift,arvedviehweger/swift,lorentey/swift,manavgabhawala/swift,OscarSwanros/swift,ben-ng/swift,rudkx/swift,rudkx/swift,swiftix/swift.old,johnno1962d/swift,airspeedswift/swift,return/swift,gmilos/swift,swiftix/swift,natecook1000/swift,xwu/swift,natecook1000/swift,stephentyrone/swift,parkera/swift,felix91gr/swift,swiftix/swift.old,tardieu/swift,tinysun212/swift-windows,dreamsxin/swift,parkera/swift,huonw/swift,swiftix/swift.old,sschiau/swift,austinzheng/swift,austinzheng/swift,jckarter/swift,cbrentharris/swift,alblue/swift,glessard/swift,slavapestov/swift,KrishMunot/swift,bitjammer/swift,Jnosh/swift,gottesmm/swift,johnno1962d/swift,slavapestov/swift,OscarSwanros/swift,glessard/swift,hughbe/swift,shahmishal/swift,ahoppen/swift,ben-ng/swift,shajrawi/swift,uasys/swift,adrfer/swift,harlanhaskins/swift,allevato/swift,LeoShimonaka/swift,swiftix/swift.old,JaSpa/swift,karwa/swift,kusl/swift,airspeedswift/swift,amraboelela/swift,karwa/swift,bitjammer/swift,jopamer/swift,practicalswift/swift,swiftix/swift.old,shajrawi/swift,shajrawi/swift,johnno1962d/swift,mightydeveloper/swift,alblue/swift,milseman/swift,sdulal/swift,roambotics/swift,harlanhaskins/swift,OscarSwanros/swift,tjw/swift,aschwaighofer/swift,modocache/swift,KrishMunot/swift,danielmartin/swift,modocache/swift,arvedviehweger/swift,MukeshKumarS/Swift,Jnosh/swift,Jnosh/swift,shajrawi/swift,khizkhiz/swift,kusl/swift,djwbrown/swift,gottesmm/swift,adrfer/swift,benlangmuir/swift,jmgc/swift,allevato/swift,return/swift,alblue/swift,johnno1962d/swift,Jnosh/swift,hooman/swift,calebd/swift,zisko/swift,johnno1962d/swift,tinysun212/swift-windows,arvedviehweger/swift,tardieu/swift,calebd/swift,SwiftAndroid/swift,tkremenek/swift,karwa/swift,devincoughlin/swift,atrick/swift,Jnosh/swift,arvedviehweger/swift,felix91gr/swift,sschiau/swift,milseman/swift,CodaFi/swift,xwu/swift,airspeedswift/swift,shahmishal/swift,ken0nek/swift,sschiau/swift,Ivacker/swift,gmilos/swift,frootloops/swift,kstaring/swift,airspeedswift/swift,karwa/swift,gribozavr/swift,jckarter/swift,stephentyrone/swift,OscarSwanros/swift,brentdax/swift,djwbrown/swift,zisko/swift,LeoShimonaka/swift,SwiftAndroid/swift,cbrentharris/swift,tardieu/swift,kusl/swift,khizkhiz/swift,jtbandes/swift,LeoShimonaka/swift,practicalswift/swift,jopamer/swift,russbishop/swift,SwiftAndroid/swift,emilstahl/swift,calebd/swift,kusl/swift,kentya6/swift,deyton/swift,frootloops/swift,benlangmuir/swift,frootloops/swift,practicalswift/swift,xedin/swift,JGiola/swift,emilstahl/swift,bitjammer/swift,nathawes/swift,atrick/swift,jckarter/swift,gribozavr/swift,roambotics/swift,jtbandes/swift,manavgabhawala/swift,brentdax/swift,KrishMunot/swift,gottesmm/swift,aschwaighofer/swift,airspeedswift/swift,alblue/swift,jckarter/swift,apple/swift,ahoppen/swift,deyton/swift,tkremenek/swift,milseman/swift,russbishop/swift,JaSpa/swift,xedin/swift,allevato/swift,JaSpa/swift,devincoughlin/swift,therealbnut/swift,jckarter/swift,austinzheng/swift,stephentyrone/swift,devincoughlin/swift,austinzheng/swift,stephentyrone/swift,milseman/swift,rudkx/swift,MukeshKumarS/Swift,nathawes/swift,brentdax/swift,hooman/swift,ken0nek/swift,nathawes/swift,manavgabhawala/swift,tinysun212/swift-windows,KrishMunot/swift,khizkhiz/swift,hughbe/swift,CodaFi/swift,codestergit/swift,parkera/swift,xwu/swift,karwa/swift,gribozavr/swift,swiftix/swift.old,adrfer/swift,practicalswift/swift,atrick/swift,gmilos/swift,frootloops/swift,aschwaighofer/swift,CodaFi/swift,swiftix/swift,harlanhaskins/swift,nathawes/swift,dduan/swift,atrick/swift,natecook1000/swift,hughbe/swift,ben-ng/swift,arvedviehweger/swift,austinzheng/swift,aschwaighofer/swift,adrfer/swift,lorentey/swift,jmgc/swift,russbishop/swift,aschwaighofer/swift,jckarter/swift,danielmartin/swift,cbrentharris/swift,austinzheng/swift,shahmishal/swift,tardieu/swift,uasys/swift,LeoShimonaka/swift,jmgc/swift,sschiau/swift,mightydeveloper/swift,gottesmm/swift,gottesmm/swift,sdulal/swift,kstaring/swift,khizkhiz/swift,austinzheng/swift,adrfer/swift,modocache/swift,gmilos/swift,gmilos/swift,ahoppen/swift,felix91gr/swift,natecook1000/swift,tkremenek/swift,tkremenek/swift,nathawes/swift,kentya6/swift,deyton/swift,nathawes/swift,Ivacker/swift,airspeedswift/swift,bitjammer/swift,kentya6/swift,huonw/swift,hooman/swift,zisko/swift,natecook1000/swift,johnno1962d/swift,frootloops/swift,danielmartin/swift,brentdax/swift,ahoppen/swift,allevato/swift,devincoughlin/swift,airspeedswift/swift,alblue/swift,gregomni/swift,hughbe/swift,JaSpa/swift,kstaring/swift,allevato/swift,xedin/swift,mightydeveloper/swift,apple/swift,russbishop/swift,djwbrown/swift,brentdax/swift,codestergit/swift,dduan/swift,slavapestov/swift,Ivacker/swift,CodaFi/swift,xwu/swift,dreamsxin/swift,therealbnut/swift,gottesmm/swift,stephentyrone/swift,ken0nek/swift,ken0nek/swift,arvedviehweger/swift,roambotics/swift,Ivacker/swift,khizkhiz/swift,LeoShimonaka/swift,amraboelela/swift,manavgabhawala/swift,OscarSwanros/swift,CodaFi/swift,uasys/swift,ahoppen/swift,parkera/swift,xwu/swift,dduan/swift,IngmarStein/swift,emilstahl/swift,parkera/swift,emilstahl/swift,parkera/swift,benlangmuir/swift,SwiftAndroid/swift,devincoughlin/swift,manavgabhawala/swift,felix91gr/swift,stephentyrone/swift,apple/swift,hooman/swift,devincoughlin/swift,tinysun212/swift-windows,shajrawi/swift,Ivacker/swift,adrfer/swift,danielmartin/swift,MukeshKumarS/Swift,IngmarStein/swift,kperryua/swift,ben-ng/swift,CodaFi/swift,parkera/swift,tjw/swift,emilstahl/swift,tjw/swift,brentdax/swift,johnno1962d/swift,therealbnut/swift,kperryua/swift,return/swift,bitjammer/swift,JGiola/swift,tjw/swift,codestergit/swift,zisko/swift,milseman/swift,JaSpa/swift,apple/swift,russbishop/swift,benlangmuir/swift,jmgc/swift,huonw/swift,amraboelela/swift,OscarSwanros/swift,slavapestov/swift,allevato/swift,jckarter/swift,CodaFi/swift,rudkx/swift,tkremenek/swift,hughbe/swift,KrishMunot/swift,deyton/swift,gottesmm/swift,bitjammer/swift,swiftix/swift,khizkhiz/swift,sdulal/swift,jopamer/swift,MukeshKumarS/Swift,lorentey/swift,lorentey/swift,IngmarStein/swift,slavapestov/swift,kperryua/swift,lorentey/swift,sdulal/swift,jopamer/swift,sdulal/swift,emilstahl/swift,kstaring/swift,return/swift,tardieu/swift,glessard/swift,slavapestov/swift,atrick/swift,shahmishal/swift,danielmartin/swift,harlanhaskins/swift,tjw/swift,bitjammer/swift,MukeshKumarS/Swift,lorentey/swift,Ivacker/swift,apple/swift,djwbrown/swift,uasys/swift,Jnosh/swift,parkera/swift,xwu/swift,hooman/swift,mightydeveloper/swift,codestergit/swift,practicalswift/swift,sdulal/swift,ben-ng/swift,uasys/swift,IngmarStein/swift,shajrawi/swift,tkremenek/swift,KrishMunot/swift,tkremenek/swift,jmgc/swift,calebd/swift,rudkx/swift,tardieu/swift,gribozavr/swift,shajrawi/swift,shajrawi/swift,LeoShimonaka/swift,ken0nek/swift,aschwaighofer/swift,benlangmuir/swift,IngmarStein/swift,lorentey/swift,mightydeveloper/swift,natecook1000/swift,uasys/swift,kperryua/swift,frootloops/swift,gregomni/swift,kusl/swift,harlanhaskins/swift,tjw/swift,karwa/swift,tardieu/swift,practicalswift/swift,harlanhaskins/swift,mightydeveloper/swift,SwiftAndroid/swift,karwa/swift,djwbrown/swift,dduan/swift,zisko/swift,sdulal/swift,MukeshKumarS/Swift,roambotics/swift,djwbrown/swift,kentya6/swift,harlanhaskins/swift,calebd/swift,gregomni/swift,gribozavr/swift,gribozavr/swift,glessard/swift,danielmartin/swift,hughbe/swift,sdulal/swift,gregomni/swift,therealbnut/swift,jmgc/swift,kentya6/swift,return/swift,brentdax/swift,allevato/swift,gmilos/swift,therealbnut/swift,stephentyrone/swift,tjw/swift,ken0nek/swift,roambotics/swift,JGiola/swift,shahmishal/swift,aschwaighofer/swift,nathawes/swift,glessard/swift,kentya6/swift,deyton/swift,IngmarStein/swift,gregomni/swift,milseman/swift,swiftix/swift,JaSpa/swift,xedin/swift,ben-ng/swift,apple/swift,russbishop/swift,SwiftAndroid/swift,swiftix/swift.old,xedin/swift,jtbandes/swift,zisko/swift,kstaring/swift,jtbandes/swift,practicalswift/swift,jopamer/swift,atrick/swift,SwiftAndroid/swift,mightydeveloper/swift,felix91gr/swift,cbrentharris/swift,IngmarStein/swift,manavgabhawala/swift,kperryua/swift,sschiau/swift,cbrentharris/swift,swiftix/swift,mightydeveloper/swift,felix91gr/swift,kentya6/swift,jtbandes/swift,xwu/swift,hooman/swift,codestergit/swift