mirror of
https://github.com/luau-lang/luau.git
synced 2024-11-15 22:35:43 +08:00
40 lines
805 B
C++
40 lines
805 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
|