// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details #include "Luau/TypeOrPack.h" #include "Luau/Common.h" namespace Luau { const void* ptr(TypeOrPack tyOrTp) { if (auto ty = get(tyOrTp)) return static_cast(*ty); else if (auto tp = get(tyOrTp)) return static_cast(*tp); else LUAU_UNREACHABLE(); } TypeOrPack follow(TypeOrPack tyOrTp) { if (auto ty = get(tyOrTp)) return follow(*ty); else if (auto tp = get(tyOrTp)) return follow(*tp); else LUAU_UNREACHABLE(); } } // namespace Luau