Skip to content

Commit f389aef

Browse files
committed
Fix call to emitNode after merge with master
1 parent 1349a19 commit f389aef

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

src/compiler/emitter.ts

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -2074,7 +2074,7 @@ module ts {
20742074
function emitNodeWithSourceMap(node: Node) {
20752075
if (node) {
20762076
if (nodeIsSynthesized(node)) {
2077-
return emitNode(node);
2077+
return emitNodeWithoutSourceMap(node);
20782078
}
20792079
if (node.kind != SyntaxKind.SourceFile) {
20802080
recordEmitNodeStartSpan(node);
@@ -3587,33 +3587,33 @@ module ts {
35873587
write("var ");
35883588

35893589
// _i = 0
3590-
emitNode(counter);
3590+
emitNodeWithoutSourceMap(counter);
35913591
write(" = 0");
35923592
emitEnd(node.expression);
35933593

35943594
if (!rhsIsIdentifier) {
35953595
// , _a = expr
35963596
write(", ");
35973597
emitStart(node.expression);
3598-
emitNode(rhsReference);
3598+
emitNodeWithoutSourceMap(rhsReference);
35993599
write(" = ");
3600-
emitNode(node.expression);
3600+
emitNodeWithoutSourceMap(node.expression);
36013601
emitEnd(node.expression);
36023602
}
36033603
write("; ");
36043604

36053605
// _i < _a.length;
36063606
emitStart(node.initializer);
3607-
emitNode(counter);
3607+
emitNodeWithoutSourceMap(counter);
36083608
write(" < ");
3609-
emitNode(rhsReference);
3609+
emitNodeWithoutSourceMap(rhsReference);
36103610
write(".length");
36113611
emitEnd(node.initializer);
36123612
write("; ");
36133613

36143614
// _i++)
36153615
emitStart(node.initializer);
3616-
emitNode(counter);
3616+
emitNodeWithoutSourceMap(counter);
36173617
write("++");
36183618
emitEnd(node.initializer);
36193619
emitToken(SyntaxKind.CloseParenToken, node.expression.end);
@@ -3640,17 +3640,17 @@ module ts {
36403640
else {
36413641
// The following call does not include the initializer, so we have
36423642
// to emit it separately.
3643-
emitNode(declaration);
3643+
emitNodeWithoutSourceMap(declaration);
36443644
write(" = ");
3645-
emitNode(rhsIterationValue);
3645+
emitNodeWithoutSourceMap(rhsIterationValue);
36463646
}
36473647
}
36483648
else {
36493649
// It's an empty declaration list. This can only happen in an error case, if the user wrote
36503650
// for (var of []) {}
3651-
emitNode(createTempVariable(node, /*forLoopVariable*/ false));
3651+
emitNodeWithoutSourceMap(createTempVariable(node, /*forLoopVariable*/ false));
36523652
write(" = ");
3653-
emitNode(rhsIterationValue);
3653+
emitNodeWithoutSourceMap(rhsIterationValue);
36543654
}
36553655
}
36563656
else {
@@ -3663,7 +3663,7 @@ module ts {
36633663
emitDestructuring(assignmentExpression, /*isAssignmentExpressionStatement*/ true, /*value*/ undefined, /*locationForCheckingExistingName*/ node);
36643664
}
36653665
else {
3666-
emitNode(assignmentExpression);
3666+
emitNodeWithoutSourceMap(assignmentExpression);
36673667
}
36683668
}
36693669
emitEnd(node.initializer);
@@ -4567,7 +4567,7 @@ module ts {
45674567
}
45684568

45694569
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.
45714571
if (memberName.kind === SyntaxKind.StringLiteral || memberName.kind === SyntaxKind.NumericLiteral) {
45724572
write("[");
45734573
emitNodeWithoutSourceMap(memberName);

0 commit comments

Comments
 (0)