MissingNodeSyntax
Represents a layout node that is missing in the source file.
protocol MissingNodeSyntax : SyntaxProtocol
Browse conforming typesSee the types conforming to this protocol for examples of where missing nodes can occur.
Represents a layout node that is missing in the source file.
protocol MissingNodeSyntax : SyntaxProtocol
See the types conforming to this protocol for examples of where missing nodes can occur.
import SwiftSyntax
A library for working with Swift code.
protocol SyntaxProtocol : CustomDebugStringConvertible, CustomReflectable, CustomStringConvertible, Sendable, TextOutputStreamable
Provide common functionality for specialized syntax nodes. Extend this protocol to provide common functionality for all syntax nodes.
protocol CustomDebugStringConvertible
A type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectable
A type that explicitly supplies its own mirror.
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Sendable
protocol TextOutputStreamable
A source of text-streaming operations.
var placeholder: TokenSyntax { get set }
A placeholder, i.e. <#placeholder#>
, that can be inserted into the source code to represent the missing node.
protocol BracedSyntax : SyntaxProtocol
/ Automatically generated by generate-swift-syntax / Do not edit directly!
protocol DeclGroupSyntax : DeclSyntaxProtocol
protocol EffectSpecifiersSyntax : SyntaxProtocol
protocol FreestandingMacroExpansionSyntax : SyntaxProtocol
protocol NamedDeclSyntax : SyntaxProtocol
protocol ParenthesizedSyntax : SyntaxProtocol
protocol WithAttributesSyntax : SyntaxProtocol
protocol WithCodeBlockSyntax : SyntaxProtocol
protocol WithGenericParametersSyntax : SyntaxProtocol
Syntax nodes that have generic parameters.
protocol WithModifiersSyntax : SyntaxProtocol
protocol WithOptionalCodeBlockSyntax : SyntaxProtocol
protocol WithStatementsSyntax : SyntaxProtocol
protocol WithTrailingCommaSyntax : SyntaxProtocol
func with<T>(_ keyPath: WritableKeyPath<MissingNodeSyntax, T>, _ newChild: T) -> MissingNodeSyntax
Without this function, the with
function defined on SyntaxProtocol
does not work on existentials of this protocol type.