Avoid getting the enclosing decl early if we only need it to report an error.
Avoid getting the enclosing decl early if we only need it to report an error.

fdecampredon/jsx-typescript-old-version,mbebenita/shumway.ts,popravich/typescript,fdecampredon/jsx-typescript-old-version,hippich/typescript,mbebenita/shumway.ts,hippich/typescript,fdecampredon/jsx-typescript-old-version,popravich/typescript,hippich/typescript,popravich/typescript,mbebenita/shumway.ts