Skip to content

Commit

Permalink
Only type check dirty modules
Browse files Browse the repository at this point in the history
  • Loading branch information
Rerumu committed Nov 6, 2021
1 parent bd78c49 commit eef18d6
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion CLI/Analyze.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))
{
Expand Down

0 comments on commit eef18d6

Please sign in to comment.