We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
recursiveDescription
RawSyntaxNodeProtocol
1 parent 23d38a1 commit 1d0ad16Copy full SHA for 1d0ad16
Sources/SwiftSyntax/RawSyntaxNodeProtocol.swift
@@ -42,6 +42,12 @@ public extension RawSyntaxNodeProtocol {
42
func write<Target>(to target: inout Target) where Target : TextOutputStream {
43
raw.write(to: &target)
44
}
45
+
46
+ /// Print this raw syntax node including all of its children.
47
+ /// Intended for debugging purposes only.
48
+ var recursiveDescription: String {
49
+ return Syntax(raw: raw).recursiveDescription
50
+ }
51
52
53
/// `RawSyntax` itself conforms to `RawSyntaxNodeProtocol`.
0 commit comments