handle_file.cpp 680 B

123456789101112131415161718192021222324
  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. #include "toolchain/check/handle.h"
  6. namespace Carbon::Check {
  7. auto HandleParseNode(Context& /*context*/, Parse::FileStartId /*node_id*/)
  8. -> bool {
  9. // No action to perform.
  10. // TODO: We may want to push `FileStart` as a sentinel so that `Peek`s can't
  11. // fail.
  12. return true;
  13. }
  14. auto HandleParseNode(Context& /*context*/, Parse::FileEndId /*node_id*/)
  15. -> bool {
  16. // No action to perform.
  17. return true;
  18. }
  19. } // namespace Carbon::Check