handle_file.cpp 628 B

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