interface.h 847 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. #ifndef CARBON_TOOLCHAIN_CHECK_INTERFACE_H_
  5. #define CARBON_TOOLCHAIN_CHECK_INTERFACE_H_
  6. #include "toolchain/check/context.h"
  7. #include "toolchain/sem_ir/ids.h"
  8. namespace Carbon::Check {
  9. // Builds and returns an associated entity for `interface_id` corresponding to
  10. // the declaration `decl_id`, which can be an associated function or an
  11. // associated constant. Registers the associated entity in the list for the
  12. // interface.
  13. auto BuildAssociatedEntity(Context& context, SemIR::InterfaceId interface_id,
  14. SemIR::InstId decl_id) -> SemIR::InstId;
  15. } // namespace Carbon::Check
  16. #endif // CARBON_TOOLCHAIN_CHECK_INTERFACE_H_