handle_noop.cpp 730 B

123456789101112131415161718192021222324
  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. namespace Carbon::Check {
  6. auto HandleEmptyDeclaration(Context& /*context*/, Parse::Node /*parse_node*/)
  7. -> bool {
  8. // Empty declarations have no actions associated.
  9. return true;
  10. }
  11. auto HandleFileEnd(Context& /*context*/, Parse::Node /*parse_node*/) -> bool {
  12. // Do nothing, no need to balance this node.
  13. return true;
  14. }
  15. auto HandleInvalidParse(Context& context, Parse::Node parse_node) -> bool {
  16. return context.TODO(parse_node, "HandleInvalidParse");
  17. }
  18. } // namespace Carbon::Check