import.h 635 B

1234567891011121314151617181920
  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. #ifndef CARBON_TOOLCHAIN_CHECK_IMPORT_H_
  5. #define CARBON_TOOLCHAIN_CHECK_IMPORT_H_
  6. #include "toolchain/check/context.h"
  7. #include "toolchain/sem_ir/file.h"
  8. namespace Carbon::Check {
  9. // Add imports to the root block.
  10. auto Import(Context& context, SemIR::TypeId namespace_type_id,
  11. Parse::NodeId import_node, const SemIR::File& import_sem_ir)
  12. -> void;
  13. } // namespace Carbon::Check
  14. #endif // CARBON_TOOLCHAIN_CHECK_IMPORT_H_