Instance Methodswift-syntax 600.0.1SwiftSyntax->Swift
withSyntaxText(_:)
Runs body
with a SyntaxText
that refers the contiguous memory of this string. Like String.withUTF8(_:)
, this may mutate the string if this string was not contiguous.
This declaration is gated by at least one @_spi attribute.
mutating func withSyntaxText<R>(_ body: (SyntaxText) throws -> R) rethrows -> R