Use static name resolution in Interpreter (#1022)

Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
Geoff Romer
2022-01-21 09:48:11 -08:00
committed by GitHub
co-authored by Jon Meow
parent d28e75629e
commit c311c8849c
13 changed files with 304 additions and 221 deletions
-5
View File
@@ -133,11 +133,6 @@ class IdentifierExpression : public Expression {
named_entity_ = std::move(named_entity);
}
// Returns true if set_named_entity has been called. Should be used only
// for debugging purposes.
// TODO: remove this once we no longer need the CHECKs that use it.
auto has_named_entity() const -> bool { return named_entity_.has_value(); }
private:
std::string name_;
std::optional<NamedEntityView> named_entity_;