qtil
advanced-security/qtil-swift 0.0.3
Search

Class Raw::PackElementExpr

INTERNAL: Do not use. A pack element expression is a child of PackExpansionExpr.

In the following example, each t on the second line is the pack element expression:

func makeTuple<each T>(_ t: repeat each T) -> (repeat each T) {
  return (repeat each t)
}

More details: https://github.com/apple/swift-evolution/blob/main/proposals/0393-parameter-packs.md

Import path

import codeql.swift.generated.Raw

Direct supertypes

Indirect supertypes

Predicates

getSubExpr

Gets the sub expression of this pack element expression.

toString

Inherited predicates

getLocation

Gets the location associated with this element in the code, if it exists.

from Locatable
getType

Gets the type of this expression, if it exists.

from Expr
isUnknown

Holds if this element is unknown.

from Element