Skip to content

Commit f4d8f92

Browse files
committed
Removed code duplication
1 parent 028aded commit f4d8f92

File tree

1 file changed

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

1 file changed

+0
-28
lines changed

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

Lines changed: 0 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -950,20 +950,6 @@ class ClassNode extends DataFlow::ValueNode, DataFlow::SourceNode {
950950
result = method.getBody().flow()
951951
)
952952
or
953-
// ES6 class property or Function-style class methods via constructor
954-
kind = MemberKind::method() and
955-
exists(ThisNode receiver |
956-
receiver = this.getConstructor().getReceiver() and
957-
receiver.hasPropertyWrite(name, result)
958-
)
959-
or
960-
// Function-style class methods via prototype
961-
kind = MemberKind::method() and
962-
exists(DataFlow::SourceNode proto |
963-
proto = this.getAPrototypeReference() and
964-
proto.hasPropertyWrite(name, result)
965-
)
966-
or
967953
// Function-style class accessors
968954
astNode instanceof Function and
969955
exists(PropertyAccessor accessor |
@@ -995,20 +981,6 @@ class ClassNode extends DataFlow::ValueNode, DataFlow::SourceNode {
995981
result = method.getBody().flow()
996982
)
997983
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
1012984
// Function-style class accessors
1013985
astNode instanceof Function and
1014986
exists(PropertyAccessor accessor |

0 commit comments

Comments
 (0)