We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
CallExpr.hasImplicitArgs()
1 parent f3c1c53 commit b928f13Copy full SHA for b928f13
go/ql/lib/semmle/go/Expr.qll
@@ -857,6 +857,12 @@ class CallExpr extends CallOrConversionExpr {
857
/** Gets the number of argument expressions of this call. */
858
int getNumArgument() { result = count(this.getAnArgument()) }
859
860
+ /** Holds if this call has implicit variadic arguments. */
861
+ predicate hasImplicitVarargs() {
862
+ this.getCalleeType().isVariadic() and
863
+ not this.hasEllipsis()
864
+ }
865
+
866
/**
867
* Gets an argument with an ellipsis after it which is passed to a varargs
868
* parameter, as in `f(x...)`.
0 commit comments