Commit 0ff12d3
[analyzer] Fix handling of annotated vars/fields in api.txt.
Changes the tool that generates `api.txt` files for the analyzer (and
related packages) so that when examining a synthetic element, it looks
for annotations on the corresponding non-synthetic element.
This fixes detection of `@deprecated` and `@experimental` on getters
and setters induced by top level variables and fields.
Addresses
https://dart-review.googlesource.com/c/sdk/+/455820/comment/f2a39140_563a86de/.
Change-Id: I6a6a6964c06905fc94b27a48a150cb2430afad99
Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/456320
Reviewed-by: Brian Wilkerson <[email protected]>
Reviewed-by: Konstantin Shcheglov <[email protected]>
Commit-Queue: Paul Berry <[email protected]>1 parent a46b4bb commit 0ff12d3
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
578 | 578 | | |
579 | 579 | | |
580 | 580 | | |
581 | | - | |
582 | | - | |
| 581 | + | |
| 582 | + | |
583 | 583 | | |
584 | 584 | | |
585 | 585 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
402 | 402 | | |
403 | 403 | | |
404 | 404 | | |
405 | | - | |
| 405 | + | |
| 406 | + | |
| 407 | + | |
| 408 | + | |
| 409 | + | |
406 | 410 | | |
407 | 411 | | |
408 | | - | |
| 412 | + | |
409 | 413 | | |
410 | 414 | | |
411 | 415 | | |
| |||
0 commit comments