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

Class Content

A reference contained in an object. Examples include instance fields, the contents of a collection object, the contents of an array or pointer.

Import path

import semmle.go.dataflow.internal.DataFlowUtil

Direct supertypes

Known direct subtypes

Predicates

asContentSet

Gets the ContentSet contaning only this content.

getLocation

Gets the location of this element.

getType

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

hasLocationInfo

DEPRECATED: Use getLocation() instead.

toString

Gets a textual representation of this element.