CodeQL library for Swift
codeql/swift-all 6.8.4 (changelog, source)
Search

Class Content::EnumContent

A parameter of an enum element.

Import path

import codeql.swift.dataflow.internal.DataFlowPublic

Direct supertypes

Indirect supertypes

Predicates

getParam

Gets the declaration of the enum parameter.

getSignature

Gets a string describing this enum content, of the form: EnumElementName:N where EnumElementName is the name of the enum element declaration within the enum, and N is the 0-based index of the parameter that this content is for. For example in the following code there is only one EnumContent and it’s signature is myValue:0: enum MyEnum { case myValue(Int) }

toString

Gets a textual representation of this content.

Inherited predicates

getLocation

Gets the location of this content.

from Content

Charpred