Add missing qldocs for two isVariadic() predicates

This commit is contained in:
Owen Mansel-Chan
2021-11-30 15:12:02 -05:00
parent acc5c4098a
commit e08007b287
2 changed files with 2 additions and 0 deletions

View File

@@ -137,6 +137,7 @@ class FuncDef extends @funcdef, StmtParent, ExprParent {
*/
DataFlow::CallNode getACall() { result.getACallee() = this }
/** Holds if this function is variadic. */
predicate isVariadic() { this.getType().isVariadic() }
override string getAPrimaryQlClass() { result = "FuncDef" }

View File

@@ -377,6 +377,7 @@ class Function extends ValueEntity, @functionobject {
/** Gets the declaration of this function, if any. */
FuncDecl getFuncDecl() { none() }
/** Holds if this function is variadic. */
predicate isVariadic() {
this.(BuiltinFunction).getName() = ["append", "make", "print", "println"]
or