Skip to content

Commit 8f662b1

Browse files
committed
Removed code duplication
1 parent 12fd77f commit 8f662b1

File tree

1 file changed

+0
-14
lines changed
  • javascript/ql/lib/semmle/javascript/dataflow

1 file changed

+0
-14
lines changed

javascript/ql/lib/semmle/javascript/dataflow/Nodes.qll

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -995,20 +995,6 @@ class ClassNode extends DataFlow::ValueNode, DataFlow::SourceNode {
995995
result = method.getBody().flow()
996996
)
997997
or
998-
// ES6 class property or Function-style class methods via constructor
999-
kind = MemberKind::method() and
1000-
exists(ThisNode receiver |
1001-
receiver = this.getConstructor().getReceiver() and
1002-
result = receiver.getAPropertySource()
1003-
)
1004-
or
1005-
// Function-style class methods via prototype
1006-
kind = MemberKind::method() and
1007-
exists(DataFlow::SourceNode proto |
1008-
proto = this.getAPrototypeReference() and
1009-
result = proto.getAPropertySource()
1010-
)
1011-
or
1012998
// Function-style class accessors
1013999
astNode instanceof Function and
10141000
exists(PropertyAccessor accessor |

0 commit comments

Comments
 (0)