We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4a369e2 commit a523178Copy full SHA for a523178
Engine/ScriptAnalyzer.cs
@@ -1639,7 +1639,8 @@ public IEnumerable<DiagnosticRecord> AnalyzeSyntaxTree(
1639
1640
#endregion
1641
1642
- IEnumerable<DiagnosticRecord> diagnosticsList = diagnostics;
+ // Need to reverse the concurrentbag to ensure that results are sorted in the increasing order of line numbers
1643
+ IEnumerable<DiagnosticRecord> diagnosticsList = diagnostics.Reverse();
1644
1645
if (severity != null)
1646
{
0 commit comments