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

Class Raw::PackType

INTERNAL: Do not use. An actual type of a pack expression at the instatiation point.

In the following example, PackType will appear around makeTuple call site as Pack{String, Int}:

func makeTuple<each T>(_ t: repeat each T) -> (repeat each T) { ... }
makeTuple("A", 2)

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

getElement

Gets the indexth element of this pack type (0-based).

getNumberOfElements

Gets the number of elements of this pack type.

toString

Inherited predicates

getCanonicalType

Gets the canonical type of this type.

from Type
getName

Gets the name of this type.

from Type
isUnknown

Holds if this element is unknown.

from Element