File tree Expand file tree Collapse file tree 1 file changed +13
-11
lines changed
src/compiler/transformers Expand file tree Collapse file tree 1 file changed +13
-11
lines changed Original file line number Diff line number Diff line change @@ -694,19 +694,21 @@ namespace ts {
694
694
695
695
// let ${name} = ${classExpression} where name is either declaredName if the class doesn't contain self-reference
696
696
// or decoratedClassAlias if the class contain self-reference.
697
+ const transformedClassExpression = createVariableStatement (
698
+ /*modifiers*/ undefined ,
699
+ createLetDeclarationList ( [
700
+ createVariableDeclaration (
701
+ classAlias || declaredName ,
702
+ /*type*/ undefined ,
703
+ classExpression
704
+ )
705
+ ] ) ,
706
+ /*location*/ location
707
+ ) ;
708
+ setCommentRange ( transformedClassExpression , node ) ;
697
709
statements . push (
698
710
setOriginalNode (
699
- createVariableStatement (
700
- /*modifiers*/ undefined ,
701
- createLetDeclarationList ( [
702
- createVariableDeclaration (
703
- classAlias || declaredName ,
704
- /*type*/ undefined ,
705
- classExpression
706
- )
707
- ] ) ,
708
- /*location*/ location
709
- ) ,
711
+ /*node*/ transformedClassExpression ,
710
712
/*original*/ node
711
713
)
712
714
) ;
You can’t perform that action at this time.
0 commit comments