@@ -1309,8 +1309,7 @@ module ClassNode {
1309
1309
result = method .getBody ( ) .flow ( )
1310
1310
)
1311
1311
or
1312
- // ES6 class property in constructor
1313
- astNode instanceof ClassDefinition and
1312
+ // ES6 class property or Function-style class methods via constructor
1314
1313
kind = MemberKind:: method ( ) and
1315
1314
exists ( ThisNode receiver |
1316
1315
receiver = this .getConstructor ( ) .getReceiver ( ) and
@@ -1324,14 +1323,6 @@ module ClassNode {
1324
1323
proto .hasPropertyWrite ( name , result )
1325
1324
)
1326
1325
or
1327
- // Function-style class methods via constructor
1328
- astNode instanceof Function and
1329
- kind = MemberKind:: method ( ) and
1330
- exists ( ThisNode receiver |
1331
- receiver = this .getConstructor ( ) .getReceiver ( ) and
1332
- receiver .hasPropertyWrite ( name , result )
1333
- )
1334
- or
1335
1326
// Function-style class accessors
1336
1327
astNode instanceof Function and
1337
1328
exists ( PropertyAccessor accessor |
@@ -1351,8 +1342,7 @@ module ClassNode {
1351
1342
result = method .getBody ( ) .flow ( )
1352
1343
)
1353
1344
or
1354
- // ES6 class property in constructor
1355
- astNode instanceof ClassDefinition and
1345
+ // ES6 class property or Function-style class methods via constructor
1356
1346
kind = MemberKind:: method ( ) and
1357
1347
exists ( ThisNode receiver |
1358
1348
receiver = this .getConstructor ( ) .getReceiver ( ) and
@@ -1366,14 +1356,6 @@ module ClassNode {
1366
1356
result = proto .getAPropertySource ( )
1367
1357
)
1368
1358
or
1369
- // Function-style class methods via constructor
1370
- astNode instanceof Function and
1371
- kind = MemberKind:: method ( ) and
1372
- exists ( ThisNode receiver |
1373
- receiver = this .getConstructor ( ) .getReceiver ( ) and
1374
- result = receiver .getAPropertySource ( )
1375
- )
1376
- or
1377
1359
// Function-style class accessors
1378
1360
astNode instanceof Function and
1379
1361
exists ( PropertyAccessor accessor |
0 commit comments