handle_noop.cpp 575 B

123456789101112131415161718
  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::Node /*parse_node*/) -> bool {
  7. // Empty declarations have no actions associated.
  8. return true;
  9. }
  10. auto HandleInvalidParse(Context& context, Parse::Node parse_node) -> bool {
  11. return context.TODO(parse_node, "HandleInvalidParse");
  12. }
  13. } // namespace Carbon::Check