made the blacklist for methods named "function" work again

This commit is contained in:
Erik Krogh Kristensen
2019-10-02 14:56:41 +02:00
parent e5290f3bb0
commit c0b7538cf0
2 changed files with 1 additions and 2 deletions

View File

@@ -52,7 +52,7 @@ where
// The developer was not confused about "function" when there are other methods in the interface.
name = "function" and
exists(MethodDeclaration other | other = container.getAMethod() |
name != "function" and
other.getName() != "function" and
not other.(ConstructorDeclaration).isSynthetic()
)
)