Skip to content

Commit d7f40c4

Browse files
committed
Ruby: protected_class_method does not exist
1 parent 5e9196e commit d7f40c4

File tree

1 file changed

+2
-5
lines changed

1 file changed

+2
-5
lines changed

ruby/ql/lib/codeql/ruby/ast/Method.qll

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,10 +81,7 @@ private class VisibilityModifier extends MethodModifier {
8181

8282
VisibilityModifier() {
8383
this.getMethodName() =
84-
[
85-
"public", "private", "protected", "public_class_method", "private_class_method",
86-
"protected_class_method"
87-
] and
84+
["public", "private", "protected", "public_class_method", "private_class_method"] and
8885
namespace.getStmt(position) = this
8986
}
9087

@@ -103,7 +100,7 @@ private class VisibilityModifier extends MethodModifier {
103100
this.getMethodName() = ["private", "private_class_method"] and
104101
result = "private"
105102
or
106-
this.getMethodName() = ["protected", "protected_class_method"] and
103+
this.getMethodName() = ["protected"] and
107104
result = "protected"
108105
}
109106
}

0 commit comments

Comments
 (0)