mirror of
https://github.com/odin-lang/Odin.git
synced 2026-02-14 15:23:15 +00:00
Implement Explicit context creation #639
This commit is contained in:
@@ -231,6 +231,11 @@ Scope *create_scope(Scope *parent, gbAllocator allocator, isize init_elements_ca
|
||||
if (parent != nullptr && parent != builtin_pkg->scope) {
|
||||
DLIST_APPEND(parent->first_child, parent->last_child, s);
|
||||
}
|
||||
|
||||
if (parent != nullptr && parent->flags & ScopeFlag_ContextDefined) {
|
||||
s->flags |= ScopeFlag_ContextDefined;
|
||||
}
|
||||
|
||||
return s;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user