mirror of
https://github.com/luau-lang/luau.git
synced 2025-04-08 04:40:54 +01:00
Only type check dirty modules
This commit is contained in:
parent
bd78c493c5
commit
eef18d6a07
1 changed files with 6 additions and 1 deletions
|
@ -51,7 +51,12 @@ static void reportWarning(ReportFormat format, const char* name, const Luau::Lin
|
|||
|
||||
static bool analyzeFile(Luau::Frontend& frontend, const char* name, ReportFormat format, bool annotate)
|
||||
{
|
||||
Luau::CheckResult cr = frontend.check(name);
|
||||
Luau::CheckResult cr;
|
||||
|
||||
if (frontend.isDirty(name))
|
||||
{
|
||||
cr = frontend.check(name);
|
||||
}
|
||||
|
||||
if (!frontend.getSourceModule(name))
|
||||
{
|
||||
|
|
Loading…
Add table
Reference in a new issue