Files
carbon-lang/toolchain/check/import.h
T
Jon Ross-Perkins 7c151a9b47 Split import logic to its own file. (#3576)
This is currently built on top of #3575. I'm just getting to the point
where imports have enough logic that I'm thinking they may be able to
stand on their own.
2024-01-10 22:28:35 +00:00

21 lines
635 B
C++

// Part of the Carbon Language project, under the Apache License v2.0 with LLVM
// Exceptions. See /LICENSE for license information.
// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
#ifndef CARBON_TOOLCHAIN_CHECK_IMPORT_H_
#define CARBON_TOOLCHAIN_CHECK_IMPORT_H_
#include "toolchain/check/context.h"
#include "toolchain/sem_ir/file.h"
namespace Carbon::Check {
// Add imports to the root block.
auto Import(Context& context, SemIR::TypeId namespace_type_id,
Parse::NodeId import_node, const SemIR::File& import_sem_ir)
-> void;
} // namespace Carbon::Check
#endif // CARBON_TOOLCHAIN_CHECK_IMPORT_H_