Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
Roblox
GitHub Repository: Roblox/luau
Path: blob/master/Analysis/include/Luau/ConfigResolver.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/Config.h"
5
#include "Luau/TypeCheckLimits.h"
6
7
namespace Luau
8
{
9
10
struct Config;
11
12
struct ConfigResolver
13
{
14
virtual ~ConfigResolver() {}
15
16
virtual const Config& getConfig(const ModuleName& name, const TypeCheckLimits& limits) const = 0;
17
};
18
19
struct NullConfigResolver : ConfigResolver
20
{
21
Config defaultConfig;
22
23
const Config& getConfig(const ModuleName& name, const TypeCheckLimits& limits) const override
24
{
25
return defaultConfig;
26
}
27
};
28
29
} // namespace Luau
30
31