2022-04-15 00:57:43 +01:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
|
|
|
|
#include "Luau/Substitution.h"
|
|
|
|
#include "Luau/TypeVar.h"
|
|
|
|
#include "Luau/Module.h"
|
|
|
|
|
|
|
|
namespace Luau
|
|
|
|
{
|
|
|
|
|
|
|
|
struct InternalErrorReporter;
|
|
|
|
|
2022-06-24 02:56:00 +01:00
|
|
|
bool isSubtype(TypeId subTy, TypeId superTy, InternalErrorReporter& ice);
|
|
|
|
bool isSubtype(TypePackId subTy, TypePackId superTy, InternalErrorReporter& ice);
|
2022-04-15 00:57:43 +01:00
|
|
|
|
|
|
|
std::pair<TypeId, bool> normalize(TypeId ty, TypeArena& arena, InternalErrorReporter& ice);
|
|
|
|
std::pair<TypeId, bool> normalize(TypeId ty, const ModulePtr& module, InternalErrorReporter& ice);
|
|
|
|
std::pair<TypePackId, bool> normalize(TypePackId ty, TypeArena& arena, InternalErrorReporter& ice);
|
|
|
|
std::pair<TypePackId, bool> normalize(TypePackId ty, const ModulePtr& module, InternalErrorReporter& ice);
|
|
|
|
|
|
|
|
} // namespace Luau
|