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

Class CollectionContent

A reference through the contents of some collection-like container.

Import path

import semmle.go.dataflow.internal.DataFlowUtil

Direct supertypes

Indirect supertypes

Predicates

toString

Gets a textual representation of this element.

Inherited predicates

asContentSet

Gets the ContentSet contaning only this content.

from Content
getLocation

Gets the location of this element.

from Content
getType

Gets the type of the contained data for the purpose of type pruning.

from Content
hasLocationInfo

DEPRECATED: Use getLocation() instead.

from Content