semantics_handle_noop.cpp 784 B

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