mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-03 09:45:48 +01:00
Factor the scope stack and lexical lookups out of Check::Context. (#3688)
This commit is contained in:
@@ -85,7 +85,7 @@ auto HandleVariableDecl(Context& context, Parse::VariableDeclId parse_node)
|
||||
// TODO: For a qualified `var` declaration, this should use the target scope
|
||||
// of the name introduced in the declaration. See #2590.
|
||||
CheckAccessModifiersOnDecl(context, Lex::TokenKind::Var,
|
||||
context.current_scope_id());
|
||||
context.scope_stack().PeekNameScopeId());
|
||||
LimitModifiersOnDecl(context, KeywordModifierSet::Access,
|
||||
Lex::TokenKind::Var);
|
||||
auto modifiers = context.decl_state_stack().innermost().modifier_set;
|
||||
|
||||
Reference in New Issue
Block a user