Skip to content

Commit 21e5638

Browse files
srawlinsCommit Queue
authored andcommitted
analyzer plugins: Support AnalysisRuleVisitor.afterLibrary
Fixes #62010 Change-Id: If0652125d1aefc819c996191869e0b0d8635c774 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/467140 Reviewed-by: Brian Wilkerson <[email protected]> Commit-Queue: Samuel Rawlins <[email protected]>
1 parent 2cddb8e commit 21e5638

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

pkg/analysis_server_plugin/lib/src/plugin_server.dart

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -467,6 +467,10 @@ class PluginServer {
467467
AnalysisRuleVisitor(nodeRegistry, shouldPropagateExceptions: true),
468468
);
469469
}
470+
471+
// Now that all lint rules have visited the code in each of the compilation
472+
// units, we can accept each lint rule's `afterLibrary` hook.
473+
AnalysisRuleVisitor(nodeRegistry).afterLibrary();
470474
}
471475

472476
// TODO(srawlins): Support `AnalysisRuleVisitor.afterLibrary`. See how it is

0 commit comments

Comments
 (0)