Files
swift-mirror/SwiftCompilerSources/Sources/AST/GenericSignature.swift
Erik Eckstein 67925ea27e Swift AST: add GenericSignature
and add `var Type.invocationGenericSignatureOfFunctionType`
2025-03-07 15:59:34 +01:00

29 lines
1.0 KiB
Swift

//===--- GenericSignature.swift -------------------------------------------===//
//
// This source file is part of the Swift.org open source project
//
// Copyright (c) 2014 - 2025 Apple Inc. and the Swift project authors
// Licensed under Apache License v2.0 with Runtime Library Exception
//
// See https://swift.org/LICENSE.txt for license information
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors
//
//===----------------------------------------------------------------------===//
import Basic
import ASTBridging
/// Describes the generic signature of a particular declaration, including both the generic type
/// parameters and the requirements placed on those generic parameters.
public struct GenericSignature: CustomStringConvertible, NoReflectionChildren {
public let bridged: BridgedGenericSignature
public init(bridged: BridgedGenericSignature) {
self.bridged = bridged
}
public var description: String {
return String(taking: bridged.getDebugDescription())
}
}