luau/Analysis/include/Luau/TableLiteralInference.h

29 lines
684 B
C
Raw Permalink Normal View History

2024-03-22 17:21:27 +00:00
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
#pragma once
#include "Luau/DenseHash.h"
#include "Luau/NotNull.h"
#include "Luau/TypeFwd.h"
namespace Luau
{
struct TypeArena;
struct BuiltinTypes;
struct Unifier2;
class AstExpr;
2024-08-02 00:25:12 +01:00
TypeId matchLiteralType(
NotNull<DenseHashMap<const AstExpr*, TypeId>> astTypes,
NotNull<DenseHashMap<const AstExpr*, TypeId>> astExpectedTypes,
NotNull<BuiltinTypes> builtinTypes,
NotNull<TypeArena> arena,
NotNull<Unifier2> unifier,
TypeId expectedType,
TypeId exprType,
const AstExpr* expr,
std::vector<TypeId>& toBlock
);
2024-04-19 22:04:30 +01:00
} // namespace Luau