Refactoring emitDeclaration, separate emitDeclaration from emitFiles
Refactoring parameters formatting
Update language service to use getDeclarationDiagnostics instead of emitFile to get declaration errors
Add test case to make sure that we only report an error from target file
Address code review
Addres code review
Merge remote-tracking branch 'origin/release-1.3' into reportErrorFromTargetFile
Merge branch 'reportErrorFromTargetFile' into release-1.3