mirror of
https://github.com/luau-lang/luau.git
synced 2024-12-13 05:20:38 +00:00
ae35ada579
- Improve ComparisonPrecedence lint suggestions for three-way comparisons (X < Y < Z) - Improve type checking stability - Improve location information for errors when parsing invalid type annotations - Compiler now generates bytecode version 3 in all configurations - Improve performance of comparisons against numeric constants on AArch64
29 lines
843 B
C++
29 lines
843 B
C++
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#include "Luau/Constraint.h"
|
|
#include "Luau/NotNull.h"
|
|
#include "Luau/Scope.h"
|
|
#include "Luau/ToString.h"
|
|
|
|
#include <optional>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Luau
|
|
{
|
|
|
|
struct ConstraintSolverLogger
|
|
{
|
|
std::string compileOutput();
|
|
void captureBoundarySnapshot(const Scope* rootScope, std::vector<NotNull<const Constraint>>& unsolvedConstraints);
|
|
void prepareStepSnapshot(
|
|
const Scope* rootScope, NotNull<const Constraint> current, std::vector<NotNull<const Constraint>>& unsolvedConstraints, bool force);
|
|
void commitPreparedStepSnapshot();
|
|
|
|
private:
|
|
std::vector<std::string> snapshots;
|
|
std::optional<std::string> preparedSnapshot;
|
|
ToStringOptions opts;
|
|
};
|
|
|
|
} // namespace Luau
|