-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
analyzer: Correct dead_code report range when syntax tree is rewritten.
The range at which to report dead code is controlled by DeadCodeVerifier's _firstDeadNode field. But nodes can be rewritten during resolution, in which case this AstNode gets lost. We just have to update it as needed. Fixes #55642 Change-Id: I57c341b64f90fbea0cf251d712eb8f18cb84b2d9 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/400800 Commit-Queue: Samuel Rawlins <[email protected]> Reviewed-by: Brian Wilkerson <[email protected]>
- Loading branch information
Showing
3 changed files
with
22 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters