diff options
Diffstat (limited to 'boot/symbol.cc')
| -rw-r--r-- | boot/symbol.cc | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/boot/symbol.cc b/boot/symbol.cc index 7ef09c9..4d6832d 100644 --- a/boot/symbol.cc +++ b/boot/symbol.cc @@ -420,6 +420,11 @@ namespace elna::boot return unresolved_declaration; } + bool symbol_bag::forward_declare(const std::string& symbol_name, std::shared_ptr<alias_type> forward_declaration) + { + return this->unresolved.insert({ symbol_name, std::move(forward_declaration) }).second; + } + void symbol_bag::add_import(const std::shared_ptr<symbol_table>& symbols) { this->imports.push_front(symbols); |
