Skip to content
← Back

src/syntax/trees/disposal_host.ghul

1
namespace Syntax.Trees is
2
3
// A node that disposes the locals `let use ... in` expressions
4
// within it declare, once it completes: a statement in a statement
5
// list, or a function's expression body. Either begins and ends
6
// with nothing on the evaluation stack, which a disposal region
7
// needs.
8
trait DisposalHost is
9
let_in_disposals: Collections.List[Semantic.Symbols.Variable]?
10
11
add_let_in_disposal(v: Semantic.Symbols.Variable)
12
si
13
si