CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomReflectable
You can create a mirror for any type using the Mirror(reflecting:)
initializer, but if you are not satisfied with the mirror supplied for your type by default, you can make it conform to CustomReflectable
and return a custom Mirror
instance.
Requirements
var customMirror: Mirror
The custom mirror for this instance.
Citizens in Swift
Subtypes
protocol CustomLeafReflectable
A type that explicitly supplies its own mirror, but whose descendant classes are not represented in the mirror unless they also override
customMirror
.
Extension in SwiftSyntax
Subtypes
protocol BracedSyntax
protocol DeclGroupSyntax
protocol DeclSyntaxProtocol
Protocol to which all
DeclSyntax
nodes conform.protocol EffectSpecifiersSyntax
protocol ExprSyntaxProtocol
Protocol to which all
ExprSyntax
nodes conform.protocol FreestandingMacroExpansionSyntax
protocol MissingNodeSyntax
Represents a layout node that is missing in the source file.
protocol NamedDeclSyntax
protocol ParenthesizedSyntax
protocol PatternSyntaxProtocol
Protocol to which all
PatternSyntax
nodes conform.protocol StmtSyntaxProtocol
Protocol to which all
StmtSyntax
nodes conform.protocol SyntaxChildChoices
Protocol for the enums nested inside
Syntax
nodes that enumerate all the possible types a child node might have.protocol SyntaxCollection
protocol SyntaxProtocol
Provide common functionality for specialized syntax nodes. Extend this protocol to provide common functionality for all syntax nodes. DO NOT CONFORM TO THIS PROTOCOL YOURSELF!
protocol TypeSyntaxProtocol
Protocol to which all
TypeSyntax
nodes conform.protocol WithAttributesSyntax
protocol WithCodeBlockSyntax
protocol WithGenericParametersSyntax
Syntax nodes that have generic parameters.
protocol WithModifiersSyntax
protocol WithStatementsSyntax
protocol WithTrailingCommaSyntax
Extension in SwiftParser
Subtypes
Extension in SwiftSyntaxBuilder
Subtypes
protocol DeclSyntaxParseable
Adds an initializer that allows the creation of declaration from string interpolations.