Structureswift-syntax 600.0.1SwiftSyntax
RawSyntaxLayoutView
A view into RawSyntax
that exposes functionality that only applies to layout nodes.
This declaration is gated by at least one @_spi attribute.
struct RawSyntaxLayoutView
A view into RawSyntax
that exposes functionality that only applies to layout nodes.
This declaration is gated by at least one @_spi attribute.
struct RawSyntaxLayoutView
import SwiftSyntax
A library for working with Swift code.
struct RawSyntax
Represents the raw tree structure underlying the syntax tree. These nodes have no notion of identity and only provide structure to the tree. They are immutable and can be freely shared between syntax nodes.
var children: RawSyntaxBuffer { get }
Child nodes.
func appending(_ newChild: RawSyntax?, arena: SyntaxArena) -> RawSyntax
func formLayoutArray() -> [RawSyntax?]
func insertingChild(_ newChild: RawSyntax?, at index: Int, arena: SyntaxArena) -> RawSyntax
func removingChild(at index: Int, arena: SyntaxArena) -> RawSyntax
func replacingChild(at index: Int, with newChild: RawSyntax?, arena: SyntaxArena) -> RawSyntax
func replacingChildSubrange(_ range: Range<Int>, with elements: some Collection<RawSyntax?>, arena: SyntaxArena) -> RawSyntax
func replacingLayout(with elements: some Collection<RawSyntax?>, arena: SyntaxArena) -> RawSyntax
Creates a new node of the same kind but with children replaced by elements
.