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

Class ContentSet

An entity that represents a set of Contents.

The set may be interpreted differently depending on whether it is stored into (getAStoreContent) or read from (getAReadContent).

Import path

import semmle.go.dataflow.internal.DataFlowUtil

Predicates

asOneContent

If this is a singleton content set, returns the content.

getAReadContent

Gets a content that may be read from when reading from this set.

getAStoreContent

Gets a content that may be stored into when storing into this set.

getLocation

Gets the location of this content set, if it contains only one Content.

hasLocationInfo

DEPRECATED: Use getLocation() instead.

isUniversalContent

Holds if this is a universal content set.

toString

Gets a textual representation of this content set.