Skip to content

Results of running new "use nameof for nullable attributes" analyzer/fixer on roslyn#65733

Merged
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:useNameofInRoslyn
Dec 5, 2022
Merged

Results of running new "use nameof for nullable attributes" analyzer/fixer on roslyn#65733
CyrusNajmabadi merged 1 commit intodotnet:mainfrom
CyrusNajmabadi:useNameofInRoslyn

Conversation

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor

No description provided.

@ghost ghost added the Area-IDE label Dec 2, 2022
@CyrusNajmabadi CyrusNajmabadi marked this pull request as ready for review December 2, 2022 23:43
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 2, 2022 23:43
@CyrusNajmabadi CyrusNajmabadi requested a review from a team December 2, 2022 23:43
@CyrusNajmabadi CyrusNajmabadi requested a review from a team as a code owner December 2, 2022 23:43
@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@dotnet/roslyn-compiler @dotnet/roslyn-ide ptal.


// Rebind a lambda to push target conversions through the return/result expressions
[return: NotNullIfNotNull("lambda")] BoundLambda? rebind(BoundLambda? lambda)
[return: NotNullIfNotNull(nameof(lambda))] BoundLambda? rebind(BoundLambda? lambda)
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ What's the scope here if a local variable has the same name?

Copy link
Copy Markdown
Contributor Author

@CyrusNajmabadi CyrusNajmabadi Dec 5, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

it's only the parameters that are in scope.

@CyrusNajmabadi
Copy link
Copy Markdown
Contributor Author

@jcouv @333fred could i get another set of compiler eyes on this?

@CyrusNajmabadi CyrusNajmabadi merged commit 18f20b4 into dotnet:main Dec 5, 2022
@CyrusNajmabadi CyrusNajmabadi deleted the useNameofInRoslyn branch December 5, 2022 18:42
@ghost ghost added this to the Next milestone Dec 5, 2022
@Cosifne Cosifne modified the milestones: Next, 17.5 P3 Jan 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants