File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
lib/semmle/javascript/dataflow
test/library-tests/CallGraphs/AnnotatedTest Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1453,6 +1453,9 @@ module ClassNode {
1453
1453
accessor .getName ( ) = name and
1454
1454
result = accessor .getInit ( ) .flow ( )
1455
1455
)
1456
+ or
1457
+ kind = MemberKind:: method ( ) and
1458
+ result = this .getConstructor ( ) .getReceiver ( ) .getAPropertySource ( name )
1456
1459
}
1457
1460
1458
1461
override FunctionNode getAnInstanceMember ( MemberKind kind ) {
@@ -1485,6 +1488,9 @@ module ClassNode {
1485
1488
accessor = this .getAnAccessor ( kind ) and
1486
1489
result = accessor .getInit ( ) .flow ( )
1487
1490
)
1491
+ or
1492
+ kind = MemberKind:: method ( ) and
1493
+ result = this .getConstructor ( ) .getReceiver ( ) .getAPropertySource ( )
1488
1494
}
1489
1495
1490
1496
override FunctionNode getStaticMember ( string name , MemberKind kind ) {
Original file line number Diff line number Diff line change @@ -2,8 +2,6 @@ spuriousCallee
2
2
missingCallee
3
3
| constructor-field.ts:40:5:40:14 | f3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
4
4
| constructor-field.ts:71:1:71:11 | bf3.build() | constructor-field.ts:13:3:13:12 | build() {} | -1 | calls |
5
- | prototypes.js:117:5:117:19 | this.tmpClass() | prototypes.js:113:1:113:22 | functio ... ss() {} | -1 | calls |
6
- | prototypes.js:131:5:131:23 | this.tmpPrototype() | prototypes.js:127:1:127:26 | functio ... pe() {} | -1 | calls |
7
5
badAnnotation
8
6
accessorCall
9
7
| accessors.js:12:1:12:5 | obj.f | accessors.js:5:8:5:12 | () {} |
You can’t perform that action at this time.
0 commit comments