remove redundant call, the charpred ensures it always holds

This commit is contained in:
erik-krogh
2022-12-07 13:23:18 +01:00
parent 360a99f026
commit ee8e0188a6

View File

@@ -78,12 +78,9 @@ class RegularMethodCall extends MethodCallImpl, TRegularMethodCall {
}
final override string getMethodNameImpl() {
isRegularMethodCall(g) and
(
result = "call" and not exists(g.getMethod())
or
result = g.getMethod().(Ruby::Token).getValue()
)
result = "call" and not exists(g.getMethod())
or
result = g.getMethod().(Ruby::Token).getValue()
}
final override Expr getArgumentImpl(int n) { toGenerated(result) = g.getArguments().getChild(n) }