handle_file.cpp 648 B

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