Skip to content

Commit 86ba75c

Browse files
committed
Ruby: modgen - support self arguments
1 parent 6203887 commit 86ba75c

File tree

1 file changed

+2
-0
lines changed
  • ruby/ql/src/queries/modeling/internal

1 file changed

+2
-0
lines changed

ruby/ql/src/queries/modeling/internal/Util.qll

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,8 @@ string getArgumentPath(DataFlow::ParameterNode paramNode) {
2929
param instanceof Ast::BlockParameter and
3030
paramSpecifier = "block"
3131
)
32+
or
33+
paramNode instanceof DataFlow::SelfParameterNode and paramSpecifier = "self"
3234
|
3335
result = "Argument[" + paramSpecifier + "]"
3436
)

0 commit comments

Comments
 (0)