Skip to content

Commit 73e91aa

Browse files
Merge pull request #2880 from Microsoft/sourceMapWithComments-attempt2
Take comments into account when tracking sourcemap spans
2 parents f82c593 + cc32e23 commit 73e91aa

File tree

464 files changed

+6530
-6575
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

464 files changed

+6530
-6575
lines changed

src/compiler/declarationEmitter.ts

+4
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,10 @@ module ts {
3737
return diagnostics;
3838
}
3939

40+
export function isExternalModuleOrDeclarationFile(sourceFile: SourceFile) {
41+
return isExternalModule(sourceFile) || isDeclarationFile(sourceFile);
42+
}
43+
4044
function emitDeclarations(host: EmitHost, resolver: EmitResolver, diagnostics: Diagnostic[], jsFilePath: string, root?: SourceFile): DeclarationEmit {
4145
let newLine = host.getNewLine();
4246
let compilerOptions = host.getCompilerOptions();

src/compiler/emitter.ts

+134-94
Large diffs are not rendered by default.

tests/baselines/reference/contextualTyping.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)