Skip to content
← Back

src/syntax/trees/scope_carrier.ghul

1
namespace Syntax.Trees is
2
3
// A node that introduces or stands in for a scope. Declaration
4
// passes store the scope here; later passes re-enter it via
5
// SYMBOL_TABLE. A node that only stands in for a symbol (an impl
6
// or partial block for its target type, a property definition for
7
// its property symbol) carries that symbol as its scope - see
8
// ScopeVisitorBase.symbol_for.
9
trait ScopeCarrier is
10
location: Source.LOCATION;
11
12
scope: Semantic.Scope?,
13
= value;
14
si
15
si