semantics_handle_noop.cpp 890 B

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