mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-11-19 14:26:40 +00:00
Handle identifier value category properly. (#986)
This commit is contained in:
1 parent
daf8729a75
commit
c89ce1d570
9 files changed
+99
-48
No files matched your search
@@ -118,6 +118,8 @@ class BindingPattern : public Pattern {
|
||||
auto type() const -> const Pattern& { return *type_; }
|
||||
auto type() -> Pattern& { return *type_; }
|
||||
|
||||
auto value_category() const -> ValueCategory { return ValueCategory::Var; }
|
||||
|
||||
private:
|
||||
std::optional<std::string> name_;
|
||||
Nonnull<Pattern*> type_;
|
||||
|
||||
Reference in new issue
Block a user