Commit 92dbbf8
committed
[SyntaxNode] Make 'static var structure' immutable stored properties
Returnning array literal from computed property allocates and
initializes the array buffer every time it's called, and they are
deallocated after use.
Make them stored properties so they stay in memory.1 parent 70e3741 commit 92dbbf8
File tree
10 files changed
+2094
-2561
lines changed- CodeGeneration/Sources/generate-swift-syntax/templates/swiftsyntax
- Sources/SwiftSyntax/generated/syntaxNodes
10 files changed
+2094
-2561
lines changedLines changed: 6 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
199 | 199 | | |
200 | 200 | | |
201 | 201 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
208 | | - | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
209 | 207 | | |
210 | | - | |
211 | | - | |
212 | 208 | | |
| 209 | + | |
213 | 210 | | |
214 | 211 | | |
215 | 212 | | |
| |||
0 commit comments