Ruby: protected_class_method does not exist

This commit is contained in:
Harry Maclean
2022-08-10 15:51:16 +12:00
parent 5e9196e51c
commit d7f40c41c5

View File

@@ -81,10 +81,7 @@ private class VisibilityModifier extends MethodModifier {
VisibilityModifier() {
this.getMethodName() =
[
"public", "private", "protected", "public_class_method", "private_class_method",
"protected_class_method"
] and
["public", "private", "protected", "public_class_method", "private_class_method"] and
namespace.getStmt(position) = this
}
@@ -103,7 +100,7 @@ private class VisibilityModifier extends MethodModifier {
this.getMethodName() = ["private", "private_class_method"] and
result = "private"
or
this.getMethodName() = ["protected", "protected_class_method"] and
this.getMethodName() = ["protected"] and
result = "protected"
}
}