File tree 1 file changed +2
-2
lines changed
src/compiler/transformers 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -973,7 +973,7 @@ namespace ts {
973
973
// Check if we have property assignment inside class declaration.
974
974
// If there is a property assignment, we need to emit constructor whether users define it or not
975
975
// If there is no property assignment, we can omit constructor if users do not define it
976
- const hasInstancePropertyWithInitializer = forEach ( node . members , member => isInstanceInitializedProperty ( member ) ) ;
976
+ const hasInstancePropertyWithInitializer = forEach ( node . members , isInstanceInitializedProperty ) ;
977
977
const hasParameterPropertyAssignments = node . transformFlags & TransformFlags . ContainsParameterPropertyAssignments ;
978
978
const constructor = getFirstConstructorWithBody ( node ) ;
979
979
@@ -1242,7 +1242,7 @@ namespace ts {
1242
1242
*/
1243
1243
function addInitializedPropertyStatements ( statements : Statement [ ] , properties : ReadonlyArray < PropertyDeclaration > , receiver : LeftHandSideExpression ) {
1244
1244
for ( const property of properties ) {
1245
- const statement = createStatement ( transformInitializedProperty ( property , receiver ) ) ;
1245
+ const statement = createExpressionStatement ( transformInitializedProperty ( property , receiver ) ) ;
1246
1246
setSourceMapRange ( statement , moveRangePastModifiers ( property ) ) ;
1247
1247
setCommentRange ( statement , property ) ;
1248
1248
setOriginalNode ( statement , property ) ;
You can’t perform that action at this time.
0 commit comments