This patch fixes the playground transform to support transforming top-level code.  This involves these changes:
This patch fixes the playground transform to support
transforming top-level code.  This involves these
changes:

- The playground transform now looks for functions
  and top level code throughout the source file
  rather than identifying a single function whose
  body needs to be transformed.  

- The playground transform now does not look for
  VarDecls to transform; rather it looks for
  PatternBindingDecls with initializers.  This
  is because the VarDecls are typically at top
  level, where logging code can't be added, but
  the PatternBindingDecls are already in
  TopLevelCodeDecls.

<rdar://problem/16977837>


Swift SVN r18522

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