handle_noop.cpp 583 B

12345678910111213141516171819
  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. } // namespace Carbon::Check