@@ -33,13 +33,15 @@ extension TreeNode: Equatable {
33
33
extension TreeNode : CustomStringConvertible {
34
34
var description : String {
35
35
"""
36
- id: \( id)
37
- parent: \( String ( describing: parent) )
38
- text: \( text)
39
- range: \( range)
40
- structure: \( structure)
41
- type: \( type)
42
- token: \( String ( describing: token) )
36
+ {
37
+ id: \( id)
38
+ parent: \( String ( describing: parent) )
39
+ text: \( text)
40
+ range: \( range)
41
+ structure: \( structure)
42
+ type: \( type)
43
+ token: \( String ( describing: token) )
44
+ }
43
45
"""
44
46
}
45
47
}
@@ -54,10 +56,12 @@ struct Range: Codable, Equatable {
54
56
extension Range : CustomStringConvertible {
55
57
var description : String {
56
58
"""
57
- startRow: \( startRow)
58
- startColumn: \( startColumn)
59
- endRow: \( endRow)
60
- endColumn: \( endColumn)
59
+ {
60
+ startRow: \( startRow)
61
+ startColumn: \( startColumn)
62
+ endRow: \( endRow)
63
+ endColumn: \( endColumn)
64
+ }
61
65
"""
62
66
}
63
67
}
@@ -77,9 +81,11 @@ struct StructureProperty: Codable, Equatable {
77
81
extension StructureProperty : CustomStringConvertible {
78
82
var description : String {
79
83
"""
80
- name: \( name)
81
- value: \( String ( describing: value) )
82
- ref: \( String ( describing: ref) )
84
+ {
85
+ name: \( name)
86
+ value: \( String ( describing: value) )
87
+ ref: \( String ( describing: ref) )
88
+ }
83
89
"""
84
90
}
85
91
}
@@ -97,8 +103,10 @@ struct StructureValue: Codable, Equatable {
97
103
extension StructureValue : CustomStringConvertible {
98
104
var description : String {
99
105
"""
100
- text: \( text)
101
- kind: \( String ( describing: kind) )
106
+ {
107
+ text: \( text)
108
+ kind: \( String ( describing: kind) )
109
+ }
102
110
"""
103
111
}
104
112
}
@@ -121,9 +129,11 @@ struct Token: Codable, Equatable {
121
129
extension Token : CustomStringConvertible {
122
130
var description : String {
123
131
"""
124
- kind: \( kind)
125
- leadingTrivia: \( leadingTrivia)
126
- trailingTrivia: \( trailingTrivia)
132
+ {
133
+ kind: \( kind)
134
+ leadingTrivia: \( leadingTrivia)
135
+ trailingTrivia: \( trailingTrivia)
136
+ }
127
137
"""
128
138
}
129
139
}
0 commit comments