ObjCSelectorPiece
A piece of an Objective-C selector. Either consisting of just anidentifier for a nullary selector, an identifier and a colon for alabeled argument or just a colon for an unlabeled argument
struct ObjCSelectorPiece
A piece of an Objective-C selector. Either consisting of just anidentifier for a nullary selector, an identifier and a colon for alabeled argument or just a colon for an unlabeled argument
struct ObjCSelectorPiece
init(leadingTrivia: Trivia, garbageBeforeName: ExpressibleAsGarbageNodes?, name: TokenSyntax?, garbageBetweenNameAndColon: ExpressibleAsGarbageNodes?, colon: TokenSyntax?)
Creates a ObjCSelectorPiece
using the provided parameters.
init(leadingTrivia: Trivia, garbageBeforeName: ExpressibleAsGarbageNodes?, name: String?, garbageBetweenNameAndColon: ExpressibleAsGarbageNodes?, colon: TokenSyntax?)
A convenience initializer that allows:
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 createGarbageNodes() -> GarbageNodes
Conformance to ExpressibleAsGarbageNodes
func createObjCSelector() -> ObjCSelector
Conformance to ExpressibleAsObjCSelector
func createObjCSelectorPiece() -> ObjCSelectorPiece
Conformance to ExpressibleAsObjCSelectorPiece
.
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
ObjCSelectorPiece
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.