Code completion: after delaying a top-level decl, skip the rest of the file to prevent the parser from constructing the AST for it.  Forward references are not allowed at the top level.
Code completion: after delaying a top-level decl, skip the rest of the file to
prevent the parser from constructing the AST for it.  Forward references are
not allowed at the top level.

Resolves all FIXMEs in test/CodeCompletion/complete_at_top_level.swift.


Swift SVN r6829

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