handle_noop.cpp 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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 HandleEmptyDecl(Context& /*context*/, Parse::NodeId /*parse_node*/)
  7. -> bool {
  8. // Empty declarations have no actions associated.
  9. return true;
  10. }
  11. auto HandleInvalidParse(Context& context, Parse::NodeId parse_node) -> bool {
  12. return context.TODO(parse_node, "HandleInvalidParse");
  13. }
  14. auto HandleInvalidParseStart(Context& context, Parse::NodeId parse_node)
  15. -> bool {
  16. return context.TODO(parse_node, "HandleInvalidParseStart");
  17. }
  18. auto HandleInvalidParseSubtree(Context& context, Parse::NodeId parse_node)
  19. -> bool {
  20. return context.TODO(parse_node, "HandleInvalidParseSubtree");
  21. }
  22. auto HandlePlaceholder(Context& /*context*/, Parse::NodeId /*parse_node*/)
  23. -> bool {
  24. CARBON_FATAL()
  25. << "Placeholder node should always be replaced before parse completes";
  26. }
  27. } // namespace Carbon::Check