CodeQL library for JavaScript/TypeScript
codeql/javascript-all 2.2.2-dev (changelog, source)
Search

Class DataFlow::Content

A storage location on an object, such as a property name.

Import path

import javascript

Direct supertypes

Predicates

asArrayIndex

Gets the array index represented by this content, if any.

asCapturedVariable

Gets the captured variable represented by this content, if any.

asPropertyName

Gets the property name represented by this content, if any.

isMapValueWithKnownKey

Holds if this represents values stored in a Map as the given string key.

isMapValueWithUnknownKey

Holds if this represents values stored in a Map at an unknown key.

isUnknownArrayElement

Holds if this represents values stored at an unknown array index.

toString

Gets a string representation of this content.