CodeQL library for Go
codeql/go-all 2.1.3 (changelog, source)
Search

Predicate inputIsConstantIfOutputHasProperty

Holds if whenever outputNode satisfies p, inputNode matched a constant in a case clause of a switch statement.

Import path

import semmle.go.dataflow.internal.TaintTrackingUtil
predicate inputIsConstantIfOutputHasProperty(Node inputNode, Node outputNode, Property p)