2021-10-29 21:25:12 +01:00
|
|
|
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
|
|
|
|
#pragma once
|
|
|
|
|
2023-08-11 15:42:37 +01:00
|
|
|
#include "Luau/LinterConfig.h"
|
2021-10-29 21:25:12 +01:00
|
|
|
#include "Luau/Location.h"
|
|
|
|
|
|
|
|
#include <memory>
|
2022-12-09 19:57:01 +00:00
|
|
|
#include <string>
|
2021-10-29 21:25:12 +01:00
|
|
|
#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;
|
|
|
|
};
|
|
|
|
|
2022-02-18 01:18:01 +00:00
|
|
|
std::vector<LintWarning> lint(AstStat* root, const AstNameTable& names, const ScopePtr& env, const Module* module,
|
|
|
|
const std::vector<HotComment>& hotcomments, const LintOptions& options);
|
2021-10-29 21:25:12 +01:00
|
|
|
|
|
|
|
std::vector<AstName> getDeprecatedGlobals(const AstNameTable& names);
|
|
|
|
|
|
|
|
} // namespace Luau
|