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

Class Raw::PackExpansionExpr

INTERNAL: Do not use. A pack expansion expression.

In the following example, repeat each t on the second line is the pack expansion 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

getPatternExpr

Gets the pattern expression of this pack expansion 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