@@ -1432,8 +1432,7 @@ module ClassNode {
1432
1432
result = method .getBody ( ) .flow ( )
1433
1433
)
1434
1434
or
1435
- // ES6 class property in constructor
1436
- astNode instanceof ClassDefinition and
1435
+ // ES6 class property or Function-style class methods via constructor
1437
1436
kind = MemberKind:: method ( ) and
1438
1437
exists ( ThisNode receiver |
1439
1438
receiver = this .getConstructor ( ) .getReceiver ( ) and
@@ -1447,14 +1446,6 @@ module ClassNode {
1447
1446
proto .hasPropertyWrite ( name , result )
1448
1447
)
1449
1448
or
1450
- // Function-style class methods via constructor
1451
- astNode instanceof Function and
1452
- kind = MemberKind:: method ( ) and
1453
- exists ( ThisNode receiver |
1454
- receiver = this .getConstructor ( ) .getReceiver ( ) and
1455
- receiver .hasPropertyWrite ( name , result )
1456
- )
1457
- or
1458
1449
// Function-style class accessors
1459
1450
astNode instanceof Function and
1460
1451
exists ( PropertyAccessor accessor |
@@ -1474,8 +1465,7 @@ module ClassNode {
1474
1465
result = method .getBody ( ) .flow ( )
1475
1466
)
1476
1467
or
1477
- // ES6 class property in constructor
1478
- astNode instanceof ClassDefinition and
1468
+ // ES6 class property or Function-style class methods via constructor
1479
1469
kind = MemberKind:: method ( ) and
1480
1470
exists ( ThisNode receiver |
1481
1471
receiver = this .getConstructor ( ) .getReceiver ( ) and
@@ -1489,14 +1479,6 @@ module ClassNode {
1489
1479
result = proto .getAPropertySource ( )
1490
1480
)
1491
1481
or
1492
- // Function-style class methods via constructor
1493
- astNode instanceof Function and
1494
- kind = MemberKind:: method ( ) and
1495
- exists ( ThisNode receiver |
1496
- receiver = this .getConstructor ( ) .getReceiver ( ) and
1497
- result = receiver .getAPropertySource ( )
1498
- )
1499
- or
1500
1482
// Function-style class accessors
1501
1483
astNode instanceof Function and
1502
1484
exists ( PropertyAccessor accessor |
0 commit comments