Checker: prevent reporting optional parameter rewritten tree symbols#19353
Checker: prevent reporting optional parameter rewritten tree symbols#19353auduchinok wants to merge 1 commit intodotnet:mainfrom
Conversation
❗ Release notes requiredCaution No release notes found for the changed paths (see table below). Please make sure to add an entry with an informative description of the change as well as link to this pull request, issue and language suggestion if applicable. Release notes for this repository are based on Keep A Changelog format. The following format is recommended for this repository:
If you believe that release notes are not necessary for this PR, please add NO_RELEASE_NOTES label to the pull request. You can open this PR in browser to add release notes: open in github.dev
|
|
The added test assumes #19336 is fixed. There're currently two additional symbols are reported, and the recreated range is not synthetic anymore:
|

Fixes extra symbols reporting for optional parameters, like in the following:
The type checker generates an additional attribute, this PR makes its range synthetic, so it doesn't surface as if it was written explicitly.