mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 14:25:44 +08:00
d98256bb80
* Better indentation in multi-line type mismatch error messages * Error message clone can no longer cause a stack overflow (when typechecking with retainFullTypeGraphs set to false); fixes https://github.com/Roblox/luau/issues/975 * `string.format` with %s is now ~2x faster on strings smaller than 100 characters Native code generation: * All VM side exits will block return to the native execution of the current function to preserve correctness * Fixed executable page allocation on Apple platforms when using hardened runtime * Added statistics for code generation (no. of functions compiler, memory used for different areas) * Fixed issue with function entry type checks performed more that once in some functions
34 lines
783 B
C++
34 lines
783 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/LinterConfig.h"
|
|
#include "Luau/Location.h"
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <vector>
|
|
|
|
namespace Luau
|
|
{
|
|
|
|
struct AstName;
|
|
class AstStat;
|
|
class AstNameTable;
|
|
struct TypeChecker;
|
|
struct Module;
|
|
|
|
using ScopePtr = std::shared_ptr<struct Scope>;
|
|
|
|
struct LintResult
|
|
{
|
|
std::vector<LintWarning> errors;
|
|
std::vector<LintWarning> warnings;
|
|
};
|
|
|
|
std::vector<LintWarning> lint(AstStat* root, const AstNameTable& names, const ScopePtr& env, const Module* module,
|
|
const std::vector<HotComment>& hotcomments, const LintOptions& options);
|
|
|
|
std::vector<AstName> getDeprecatedGlobals(const AstNameTable& names);
|
|
|
|
} // namespace Luau
|