style: align layout and ownership documentation

This commit is contained in:
2026-10-27 11:07:31 +01:00
parent 4a134b49dd
commit 84e3ed0cc8
16 changed files with 459 additions and 217 deletions
+2 -2
View File
@@ -426,7 +426,7 @@ set_source proc(
try arraylist.append(&builder.storage.sources,
diagnostics.Source{
path = path,
text = text
text = text,
})
builder.source = text
builder.source_id = id
@@ -446,7 +446,7 @@ remove_source proc(builder @mut Builder) void {
builder.source = builder.storage.sources.items[usize(builder.source_id)].text
}
#! borrows builder storage; refresh after builder mutation and never pass this view to deinit.
#! borrows `builder` storage; refresh after builder mutation and never pass this view to deinit.
view proc(builder @Builder, root NodeId) Tree {
return Tree{ storage = builder.storage, root = root }
}