Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/Analysis/include/Luau/Linter.h
2727 views
1
// This file is part of the Luau programming language and is licensed under MIT License; see LICENSE.txt for details
2
#pragma once
3
4
#include "Luau/LinterConfig.h"
5
#include "Luau/Location.h"
6
7
#include <memory>
8
#include <string>
9
#include <vector>
10
11
namespace Luau
12
{
13
14
struct AstName;
15
class AstStat;
16
class AstNameTable;
17
struct TypeChecker;
18
struct Module;
19
20
using ScopePtr = std::shared_ptr<struct Scope>;
21
22
struct LintResult
23
{
24
std::vector<LintWarning> errors;
25
std::vector<LintWarning> warnings;
26
};
27
28
std::vector<LintWarning> lint(
29
AstStat* root,
30
const AstNameTable& names,
31
const ScopePtr& env,
32
const Module* module,
33
const std::vector<HotComment>& hotcomments,
34
const LintOptions& options
35
);
36
37
std::vector<AstName> getDeprecatedGlobals(const AstNameTable& names);
38
39
} // namespace Luau
40
41