@@ -2074,7 +2074,7 @@ module ts {
2074
2074
function emitNodeWithSourceMap ( node : Node ) {
2075
2075
if ( node ) {
2076
2076
if ( nodeIsSynthesized ( node ) ) {
2077
- return emitNode ( node ) ;
2077
+ return emitNodeWithoutSourceMap ( node ) ;
2078
2078
}
2079
2079
if ( node . kind != SyntaxKind . SourceFile ) {
2080
2080
recordEmitNodeStartSpan ( node ) ;
@@ -3587,33 +3587,33 @@ module ts {
3587
3587
write ( "var " ) ;
3588
3588
3589
3589
// _i = 0
3590
- emitNode ( counter ) ;
3590
+ emitNodeWithoutSourceMap ( counter ) ;
3591
3591
write ( " = 0" ) ;
3592
3592
emitEnd ( node . expression ) ;
3593
3593
3594
3594
if ( ! rhsIsIdentifier ) {
3595
3595
// , _a = expr
3596
3596
write ( ", " ) ;
3597
3597
emitStart ( node . expression ) ;
3598
- emitNode ( rhsReference ) ;
3598
+ emitNodeWithoutSourceMap ( rhsReference ) ;
3599
3599
write ( " = " ) ;
3600
- emitNode ( node . expression ) ;
3600
+ emitNodeWithoutSourceMap ( node . expression ) ;
3601
3601
emitEnd ( node . expression ) ;
3602
3602
}
3603
3603
write ( "; " ) ;
3604
3604
3605
3605
// _i < _a.length;
3606
3606
emitStart ( node . initializer ) ;
3607
- emitNode ( counter ) ;
3607
+ emitNodeWithoutSourceMap ( counter ) ;
3608
3608
write ( " < " ) ;
3609
- emitNode ( rhsReference ) ;
3609
+ emitNodeWithoutSourceMap ( rhsReference ) ;
3610
3610
write ( ".length" ) ;
3611
3611
emitEnd ( node . initializer ) ;
3612
3612
write ( "; " ) ;
3613
3613
3614
3614
// _i++)
3615
3615
emitStart ( node . initializer ) ;
3616
- emitNode ( counter ) ;
3616
+ emitNodeWithoutSourceMap ( counter ) ;
3617
3617
write ( "++" ) ;
3618
3618
emitEnd ( node . initializer ) ;
3619
3619
emitToken ( SyntaxKind . CloseParenToken , node . expression . end ) ;
@@ -3640,17 +3640,17 @@ module ts {
3640
3640
else {
3641
3641
// The following call does not include the initializer, so we have
3642
3642
// to emit it separately.
3643
- emitNode ( declaration ) ;
3643
+ emitNodeWithoutSourceMap ( declaration ) ;
3644
3644
write ( " = " ) ;
3645
- emitNode ( rhsIterationValue ) ;
3645
+ emitNodeWithoutSourceMap ( rhsIterationValue ) ;
3646
3646
}
3647
3647
}
3648
3648
else {
3649
3649
// It's an empty declaration list. This can only happen in an error case, if the user wrote
3650
3650
// for (var of []) {}
3651
- emitNode ( createTempVariable ( node , /*forLoopVariable*/ false ) ) ;
3651
+ emitNodeWithoutSourceMap ( createTempVariable ( node , /*forLoopVariable*/ false ) ) ;
3652
3652
write ( " = " ) ;
3653
- emitNode ( rhsIterationValue ) ;
3653
+ emitNodeWithoutSourceMap ( rhsIterationValue ) ;
3654
3654
}
3655
3655
}
3656
3656
else {
@@ -3663,7 +3663,7 @@ module ts {
3663
3663
emitDestructuring ( assignmentExpression , /*isAssignmentExpressionStatement*/ true , /*value*/ undefined , /*locationForCheckingExistingName*/ node ) ;
3664
3664
}
3665
3665
else {
3666
- emitNode ( assignmentExpression ) ;
3666
+ emitNodeWithoutSourceMap ( assignmentExpression ) ;
3667
3667
}
3668
3668
}
3669
3669
emitEnd ( node . initializer ) ;
@@ -4567,7 +4567,7 @@ module ts {
4567
4567
}
4568
4568
4569
4569
function emitMemberAccessForPropertyName ( memberName : DeclarationName ) {
4570
- // TODO: (jfreeman,drosen): comment on why this is emitNode instead of emit here.
4570
+ // TODO: (jfreeman,drosen): comment on why this is emitNodeWithoutSourceMap instead of emit here.
4571
4571
if ( memberName . kind === SyntaxKind . StringLiteral || memberName . kind === SyntaxKind . NumericLiteral ) {
4572
4572
write ( "[" ) ;
4573
4573
emitNodeWithoutSourceMap ( memberName ) ;
0 commit comments