DifferentiabilityParam
A differentiability parameter: either the “self” identifier, a functionparameter name, or a function parameter index.
struct DifferentiabilityParam
A differentiability parameter: either the “self” identifier, a functionparameter name, or a function parameter index.
struct DifferentiabilityParam
init(leadingTrivia: Trivia, garbageBeforeParameter: ExpressibleAsGarbageNodes?, parameter: ExpressibleAsSyntaxBuildable, garbageBetweenParameterAndTrailingComma: ExpressibleAsGarbageNodes?, trailingComma: TokenSyntax?)
Creates a DifferentiabilityParam
using the provided parameters.
func buildSyntax(format: Format, leadingTrivia: Trivia?) -> Syntax
Conformance to SyntaxBuildable
.
func buildSyntaxList(format: Format, leadingTrivia: Trivia?) -> [Syntax]
Builds list of Syntax
s.
func createAttributeList() -> AttributeList
Conformance to ExpressibleAsAttributeList
func createDifferentiabilityParam() -> DifferentiabilityParam
Conformance to ExpressibleAsDifferentiabilityParam
.
func createDifferentiabilityParamList() -> DifferentiabilityParamList
Conformance to ExpressibleAsDifferentiabilityParamList
func createGarbageNodes() -> GarbageNodes
Conformance to ExpressibleAsGarbageNodes
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
DifferentiabilityParam
might conform to ExpressibleAsSyntaxBuildable
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.
func withTrailingComma(Bool) -> DifferentiabilityParam
Conformance to HasTrailingComma
.