Skip to content

Commit e08007b

Browse files
committed
Add missing qldocs for two isVariadic() predicates
1 parent acc5c40 commit e08007b

2 files changed

Lines changed: 2 additions & 0 deletions

File tree

ql/lib/semmle/go/Decls.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,7 @@ class FuncDef extends @funcdef, StmtParent, ExprParent {
137137
*/
138138
DataFlow::CallNode getACall() { result.getACallee() = this }
139139

140+
/** Holds if this function is variadic. */
140141
predicate isVariadic() { this.getType().isVariadic() }
141142

142143
override string getAPrimaryQlClass() { result = "FuncDef" }

ql/lib/semmle/go/Scopes.qll

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -377,6 +377,7 @@ class Function extends ValueEntity, @functionobject {
377377
/** Gets the declaration of this function, if any. */
378378
FuncDecl getFuncDecl() { none() }
379379

380+
/** Holds if this function is variadic. */
380381
predicate isVariadic() {
381382
this.(BuiltinFunction).getName() = ["append", "make", "print", "println"]
382383
or

0 commit comments

Comments
 (0)