handle_file.cpp 636 B

12345678910111213141516171819202122
  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::NodeId /*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::NodeId /*parse_node*/) -> bool {
  14. // No action to perform.
  15. return true;
  16. }
  17. } // namespace Carbon::Check