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

Module DataFlow::ContentSet

Companion module to the ContentSet class, providing access to various content sets.

Import path

import javascript

Predicates

anyCapturedContent

Gets a content set that reads from all captured variables stored on a function.

anyProperty

Gets a content set that reads from all ordinary properties.

arrayElement

A content set describing all array elements, regardless of their index in the array.

arrayElementFromInt

Gets the content set describing an access to array index n.

arrayElementKnown

A content set describing an access to array index n.

arrayElementLowerBound

A content set describing array elements at index bound or greater.

arrayElementLowerBoundFromInt

Gets a content set describing array elements at index bound or greater.

arrayElementUnknown

The singleton content set describing array elements stored at an unknown index.

fromLegacyProperty

Gets the content set corresponding to the given property name, where legacy pseudo-properties are mapped to their corresponding content sets (which are no longer seen as property names).

iteratorElement

Gets the content set describing the elements of an iterator object.

iteratorError

Gets the content set describing the exception to be thrown when attempting to iterate over the given value.

iteratorFilter

A content set that should only be used in withContent and withoutContent steps, which matches the two iterator-related contents, IteratorElement and IteratorError.

mapKey

Gets the content set describing the keys of a Map object.

mapValueAll

Gets the content set describing all values in a map (with known or unknown key).

mapValueFromKey

Gets the content set describing the value in a Map object stored at the given key.

mapValueWithKnownKey

Gets the content set describing an access to a map value with the given key.

mapValueWithKnownKeyStrict

Gets the content set describing the value of a Map object stored with the given known key.

mapValueWithUnknownKey

Gets the content set describing the values of a Map object stored with an unknown key.

promiseError

A content set describing the error stored in a rejected promise.

promiseFilter

A content set that should only be used in withContent and withoutContent steps, which matches the two promise-related contents, Awaited[value] and Awaited[error].

promiseValue

A content set describing the result of a resolved promise.

property

A content set corresponding to the given property name.

setElement

Gets the content set describing the elements of a Set object.

singleton

A content set containing only the given content.