InheritedTypeList
InheritedTypeList
represents a collection of InheritedType
struct InheritedTypeList
InheritedTypeList
represents a collection of InheritedType
struct InheritedTypeList
init([ExpressibleAsInheritedType])
Creates a InheritedTypeList
with the provided list of elements.
init(arrayLiteral: ExpressibleAsInheritedType...)
Creates an instance initialized with the given elements.
init(combining: [ExpressibleAsInheritedTypeList])
Creates a new InheritedTypeList
by flattening the elements in lists
init(itemsBuilder: () -> InheritedTypeList)
func buildInheritedTypeList(format: Format, leadingTrivia: Trivia?) -> InheritedTypeListSyntax
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 createInheritedTypeList() -> InheritedTypeList
Conformance to ExpressibleAsInheritedTypeList
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
InheritedTypeList
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.