Module DataFlowUtil
Provides Go-specific definitions for use in the data flow library.
Import path
import semmle.go.dataflow.internal.DataFlowUtil
Imports
Public | Nodes intended for use outside the data-flow libraries. |
Predicates
exprNode | Gets the |
extractTupleElement | Gets the data-flow node corresponding to the |
getUniqueOutputNode | |
instructionNode | Gets the |
isReturnedWithError | Holds if |
localFlow | Holds if data flows from |
localFlowStep | Holds if data flows from |
parameterNode | Gets the |
possiblyReturnsBool | Holds if |
possiblyReturnsNonNil | Holds if |
readsAnElement | Holds if |
receiverNode | Gets the |
simpleLocalFlowStep | INTERNAL: do not use. |
ssaNode | Gets the data-flow node corresponding to SSA variable |
Classes
ArrayContent | A reference through an array. |
CollectionContent | A reference through the contents of some collection-like container. |
Content | A reference contained in an object. Examples include instance fields, the contents of a collection object, the contents of an array or pointer. |
ContentSet | An entity that represents a set of |
FieldContent | A reference through a field. |
FunctionModel | A model of a function specifying that the function copies input values from a parameter or qualifier to a result. |
MapKeyContent | A reference through a map key. |
MapValueContent | A reference through a map value. |
PointerContent | A reference through a pointer. |
SyntheticFieldContent |
Modules
BarrierGuard | Provides a set of barrier nodes for a guard that validates an expression. |
Predicate signatures
guardChecksSig | Holds if the guard |