mirror of
https://github.com/luau-lang/luau.git
synced 2025-08-26 11:27:08 +01:00
# General Changes * Remove a `static_assert` that prevented Luau from building on 32-bit targets. * Fix `proxyrequire` (see https://github.com/luau-lang/luau/pull/1804) * Replace contents API with new `loadname` API in Luau.Require * Store the positions of `:` symbols in the CST. * Fix a minor bug in the new incremental autocomplete engine: Properly suggest `else` and `elseif` if the cursor is currently within an `if` block. # New Type Solver * Allow generics to be substituted for negation types when performing subtype tests * Crash fixes * Surface subtyping errors more consistently. * Avoid creating double-negation types (like `~~(false?)`) when generating constraints. # Internal Contributors Co-authored-by: Andy Friesen <afriesen@roblox.com> Co-authored-by: Ariel Weiss <aaronweiss@roblox.com> Co-authored-by: Aviral Goel <agoel@roblox.com> Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com> Co-authored-by: Sora Kanosue <skanosue@roblox.com> Co-authored-by: Talha Pathan <tpathan@roblox.com> Co-authored-by: Varun Saini <vsaini@roblox.com> Co-authored-by: Vighnesh Vijay <vvijay@roblox.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com> --------- Co-authored-by: Hunter Goldstein <hgoldstein@roblox.com> Co-authored-by: Varun Saini <61795485+vrn-sn@users.noreply.github.com> Co-authored-by: Alexander Youngblood <ayoungblood@roblox.com> Co-authored-by: Menarul Alam <malam@roblox.com> Co-authored-by: Aviral Goel <agoel@roblox.com> Co-authored-by: Vighnesh <vvijay@roblox.com> Co-authored-by: Vyacheslav Egorov <vegorov@roblox.com> Co-authored-by: Ariel Weiss <aaronweiss@roblox.com>
35 lines
786 B
C++
35 lines
786 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
#pragma once
|
|
|
|
#include "Luau/Require.h"
|
|
|
|
#include "Luau/Compiler.h"
|
|
|
|
#include "lua.h"
|
|
|
|
#include <string>
|
|
|
|
void requireConfigInit(luarequire_Configuration* config);
|
|
|
|
struct ReplRequirer
|
|
{
|
|
using CompileOptions = Luau::CompileOptions(*)();
|
|
using BoolCheck = bool(*)();
|
|
using Coverage = void(*)(lua_State*, int);
|
|
|
|
ReplRequirer(
|
|
CompileOptions copts,
|
|
BoolCheck coverageActive,
|
|
BoolCheck codegenEnabled,
|
|
Coverage coverageTrack
|
|
);
|
|
|
|
CompileOptions copts;
|
|
BoolCheck coverageActive;
|
|
BoolCheck codegenEnabled;
|
|
Coverage coverageTrack;
|
|
|
|
std::string absPath;
|
|
std::string relPath;
|
|
std::string suffix;
|
|
};
|