NamedDeclSyntax
SyntaxTraits.swift:281protocol NamedDeclSyntax : SyntaxProtocolBrowse conforming typesprotocol NamedDeclSyntax : SyntaxProtocolimport SwiftSyntaxA library for working with Swift code.
protocol SyntaxProtocol : CustomDebugStringConvertible, CustomReflectable, CustomStringConvertible, Sendable, TextOutputStreamableProvide common functionality for specialized syntax nodes. Extend this protocol to provide common functionality for all syntax nodes.
protocol CustomDebugStringConvertibleA type with a customized textual representation suitable for debugging purposes.
protocol CustomReflectableA type that explicitly supplies its own mirror.
protocol CustomStringConvertibleA type with a customized textual representation.
protocol SendableA thread-safe type whose values can be shared across arbitrary concurrent contexts without introducing a risk of data races. Values of the type may have no shared mutable state, or they may protect that state with a lock or by forcing it to only be accessed from a specific actor.
protocol TextOutputStreamableA source of text-streaming operations.
var name: TokenSyntax { get set }protocol BracedSyntax : SyntaxProtocol/ Automatically generated by generate-swift-syntax / Do not edit directly!
protocol DeclGroupSyntax : DeclSyntaxProtocolprotocol EffectSpecifiersSyntax : SyntaxProtocolprotocol FreestandingMacroExpansionSyntax : SyntaxProtocolprotocol MissingNodeSyntax : SyntaxProtocolRepresents a layout node that is missing in the source file.
protocol ParenthesizedSyntax : SyntaxProtocolprotocol WithAttributesSyntax : SyntaxProtocolprotocol WithCodeBlockSyntax : SyntaxProtocolprotocol WithGenericParametersSyntax : SyntaxProtocolSyntax nodes that have generic parameters.
protocol WithModifiersSyntax : SyntaxProtocolprotocol WithOptionalCodeBlockSyntax : SyntaxProtocolprotocol WithStatementsSyntax : SyntaxProtocolprotocol WithTrailingCommaSyntax : SyntaxProtocolfunc with<T>(_ keyPath: WritableKeyPath<any NamedDeclSyntax, T>, _ newChild: T) -> any NamedDeclSyntax Without this function, the with function defined on SyntaxProtocol does not work on existentials of this protocol type.
var identifier: TokenSyntax { get set }import SwiftLexicalLookupprotocol NominalTypeDeclSyntax : LookInMembersScopeSyntax, WithGenericParametersScopeSyntax, NamedDeclSyntax