You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Formatter: Recycle parsed AST and tokens in between rule invocations when no correction was applied to improve performance (#1462)
* Recycle Parse result for formatter, if a rule does not return a DiagnosticRecord and therefore does not require re-parsing
* fix issue where the parsing stage can only be skipped in the first loop iteration of the Fix API
* Adapt LibraryUsage.tests.ps1
* Remove unnecessary call to ToList() and Count() where object is already a list
* re-trigger ci
Co-authored-by: Christoph Bergmeister <christoph.bergmeister@bjss.com>
/// <param name="text">An object of type `EditableText` that encapsulates the script text to be fixed.</param>
1568
+
/// <param name="text">An object of type <see cref="EditableText"/> that encapsulates the script text to be fixed.</param>
1566
1569
/// <param name="range">The range in which the fixes are allowed.</param>
1570
+
/// <param name="skipParsing">Whether to use the <paramref name="scriptAst"/> and <paramref name="scriptTokens"/> parameters instead of parsing the <paramref name="text"/> parameter.</param>
1567
1571
/// <param name="updatedRange">The updated range after the fixes have been applied.</param>
1568
-
/// <param name="updatedRange">Whether any warnings were fixed.</param>
1572
+
/// <param name="fixesWereApplied">Whether any warnings were fixed.</param>
/// <param name="skipVariableAnalysis">Whether to skip variable analysis.</param>
1570
1576
/// <returns>The same instance of `EditableText` that was passed to the method, but the instance encapsulates the fixed script text. This helps in chaining the Fix method.</returns>
0 commit comments