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

Class SourceSinkInterpretationInput::SourceOrSinkElement

An element representable by CSV modeling.

Import path

import semmle.go.dataflow.internal.FlowSummaryImpl

Direct supertypes

Predicates

asAstNode

Gets this source or sink element as an AST node, if it is one.

asEntity

Gets this source or sink element as an entity, if it is one.

asFieldEntity

Gets this source or sink element as a field, if it is one.

asMethodEntity

Gets this source or sink element as a method, if it is one.

asOtherEntity

Gets this source or sink element as an entity which isn’t a field or method, if it is one.

getLocation

Gets the location of this element.

hasFullInfo

Holds if this source or sink element is a method or field that was specified with the given values for e, pkg, type and subtypes.

hasLocationInfo

Holds if this element is at the specified location.

toString

Gets a textual representation of this source or sink element.