mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-10-05 22:02:55 +01:00
Factor the scope stack and lexical lookups out of Check::Context. (#3688)
This commit is contained in:
@@ -34,9 +34,9 @@ auto HandleLetDecl(Context& context, Parse::LetDeclId parse_node) -> bool {
|
||||
// TODO: For a qualified `let` declaration, this should use the target scope
|
||||
// of the name introduced in the declaration. See #2590.
|
||||
CheckAccessModifiersOnDecl(context, Lex::TokenKind::Let,
|
||||
context.current_scope_id());
|
||||
context.scope_stack().PeekNameScopeId());
|
||||
RequireDefaultFinalOnlyInInterfaces(context, Lex::TokenKind::Let,
|
||||
context.current_scope_id());
|
||||
context.scope_stack().PeekNameScopeId());
|
||||
LimitModifiersOnDecl(
|
||||
context, KeywordModifierSet::Access | KeywordModifierSet::Interface,
|
||||
Lex::TokenKind::Let);
|
||||
|
||||
Reference in New Issue
Block a user