mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-04 22:02:52 +01:00
Use static name resolution in Interpreter (#1022)
Co-authored-by: Jon Meow <46229924+jonmeow@users.noreply.github.com>
This commit is contained in:
committed by
GitHub
co-authored by
Jon Meow
parent
d28e75629e
commit
c311c8849c
@@ -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_;
|
||||
|
||||
Reference in New Issue
Block a user