Fixes source map emit for synthetic constructors

This commit is contained in:
Ron Buckton 2016-04-20 18:13:16 -07:00
parent 9e2ebf6453
commit 6b1f8525d9

View File

@ -751,7 +751,7 @@ namespace ts {
createConstructor(
parameters,
body,
/*location*/ constructor
/*location*/ constructor || node
),
constructor
)
@ -846,7 +846,7 @@ namespace ts {
createBlock(
createNodeArray(
statements,
/*location*/ constructor ? constructor.body.statements : undefined
/*location*/ constructor ? constructor.body.statements : node.members
),
/*location*/ constructor ? constructor.body : undefined
),