Stop not emitting mappings for function and class names (#25210)

This commit is contained in:
Wesley Wigham
2018-06-26 15:05:34 -07:00
committed by GitHub
parent b59824ad9f
commit fc37b7926d
805 changed files with 1898 additions and 1285 deletions

View File

@@ -545,7 +545,7 @@ namespace ts {
return pipelineEmitWithoutComments;
case PipelinePhase.SourceMaps:
if (onEmitSourceMapOfNode && hint !== EmitHint.SourceFile && hint !== EmitHint.IdentifierName) {
if (onEmitSourceMapOfNode && hint !== EmitHint.SourceFile) {
return pipelineEmitWithSourceMap;
}
// falls through
@@ -578,7 +578,7 @@ namespace ts {
}
function pipelineEmitWithSourceMap(hint: EmitHint, node: Node) {
Debug.assert(hint !== EmitHint.SourceFile && hint !== EmitHint.IdentifierName);
Debug.assert(hint !== EmitHint.SourceFile);
Debug.assertDefined(onEmitSourceMapOfNode)(hint, node, pipelineEmitWithHint);
}