Ruby: Include class methods in model editor query

This commit is contained in:
Harry Maclean
2023-10-31 15:47:30 +00:00
parent 78125a701d
commit c54743c3fd

View File

@@ -41,7 +41,10 @@ class Endpoint extends DataFlow::MethodNode {
string getTypeName() {
result =
any(DataFlow::ModuleNode m | m.getOwnInstanceMethod(this.getMethodName()) = this)
.getQualifiedName()
.getQualifiedName() or
result =
any(DataFlow::ModuleNode m | m.getOwnSingletonMethod(this.getMethodName()) = this)
.getQualifiedName() + "!"
}
/**