// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #include "toolchain/check/context.h" namespace Carbon::Check { auto HandleCodeBlockStart(Context& context, Parse::CodeBlockStartId parse_node) -> bool { context.node_stack().Push(parse_node); context.scope_stack().Push(); return true; } auto HandleCodeBlock(Context& context, Parse::CodeBlockId /*parse_node*/) -> bool { context.scope_stack().Pop(); context.node_stack() .PopAndDiscardSoloParseNode(); return true; } } // namespace Carbon::Check