impl_binding.cpp 627 B

123456789101112131415161718
  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 "explorer/ast/impl_binding.h"
  5. #include "explorer/ast/pattern.h"
  6. namespace Carbon {
  7. ImplBinding::ImplBinding(CloneContext& context, const ImplBinding& other)
  8. : AstNode(context, other),
  9. type_var_(context.Remap(other.type_var_)),
  10. iface_(context.Clone(other.iface_)),
  11. symbolic_identity_(context.Clone(other.symbolic_identity_)),
  12. original_(context.Remap(other.original_)) {}
  13. } // namespace Carbon