handle_expr_statement.cpp 559 B

123456789101112131415161718
  1. // Part of the Carbon Language project, under the Apache License v2.0 with LLVM
  2. // Exceptions. See /LICENSE for license information.
  3. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
  4. #include "toolchain/check/context.h"
  5. #include "toolchain/check/convert.h"
  6. #include "toolchain/check/handle.h"
  7. #include "toolchain/sem_ir/inst.h"
  8. namespace Carbon::Check {
  9. auto HandleParseNode(Context& context, Parse::ExprStatementId /*node_id*/)
  10. -> bool {
  11. DiscardExpr(context, context.node_stack().PopExpr());
  12. return true;
  13. }
  14. } // namespace Carbon::Check