GenericParameterList
GenericParameterList
represents a collection of GenericParameter
struct GenericParameterList
GenericParameterList
represents a collection of GenericParameter
struct GenericParameterList
init([ExpressibleAsGenericParameter])
Creates a GenericParameterList
with the provided list of elements.
init(arrayLiteral: ExpressibleAsGenericParameter...)
Creates an instance initialized with the given elements.
init(combining: [ExpressibleAsGenericParameterList])
Creates a new GenericParameterList
by flattening the elements in lists
init(itemsBuilder: () -> GenericParameterList)
func buildGenericParameterList(format: Format, leadingTrivia: Trivia?) -> GenericParameterListSyntax
func buildSyntax(format: Format, leadingTrivia: Trivia?) -> Syntax
Builds list of Syntax
s.
func buildSyntaxList(format: Format, leadingTrivia: Trivia?) -> [Syntax]
Builds list of Syntax
s.
func createAttributeList() -> AttributeList
Conformance to ExpressibleAsAttributeList
func createGarbageNodes() -> GarbageNodes
Conformance to ExpressibleAsGarbageNodes
func createGenericParameterList() -> GenericParameterList
Conformance to ExpressibleAsGenericParameterList
func createPrecedenceGroupAttributeList() -> PrecedenceGroupAttributeList
Conformance to ExpressibleAsPrecedenceGroupAttributeList
func createSpecializeAttributeSpecList() -> SpecializeAttributeSpecList
Conformance to ExpressibleAsSpecializeAttributeSpecList
func createStringLiteralSegments() -> StringLiteralSegments
Conformance to ExpressibleAsStringLiteralSegments
func createSwitchCaseList() -> SwitchCaseList
Conformance to ExpressibleAsSwitchCaseList
func createSyntaxBuildable() -> SyntaxBuildable
GenericParameterList
might conform to SyntaxBuildable
via different ExpressibleAs*
paths. Thus, there are multiple default implementations for createSyntaxBuildable
, some of which perform conversions through ExpressibleAs*
protocols. To resolve the ambiguity, provide a fixed implementation that doesn’t perform any conversions.