// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #pragma once #include #include "Luau/TypeArena.h" #include "Luau/Type.h" #include namespace Luau { // Only exposed so they can be unit tested. using SeenTypes = std::unordered_map; using SeenTypePacks = std::unordered_map; struct CloneState { NotNull builtinTypes; SeenTypes seenTypes; SeenTypePacks seenTypePacks; }; TypePackId clone(TypePackId tp, TypeArena& dest, CloneState& cloneState); TypeId clone(TypeId tp, TypeArena& dest, CloneState& cloneState); TypeFun clone(const TypeFun& typeFun, TypeArena& dest, CloneState& cloneState); } // namespace Luau