Skip to content

Fix syntax generation of explict checked operator from symbol#77102

Merged
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
ericstj:fixOperatorSyntaxExplicit
Feb 10, 2025
Merged

Fix syntax generation of explict checked operator from symbol#77102
CyrusNajmabadi merged 2 commits intodotnet:mainfrom
ericstj:fixOperatorSyntaxExplicit

Conversation

@ericstj
Copy link
Member

@ericstj ericstj commented Feb 7, 2025

@ericstj ericstj requested review from a team as code owners February 7, 2025 01:38
@ghost ghost added Area-Compilers untriaged Issues and PRs which have not yet been triaged by a lead labels Feb 7, 2025
@dotnet-policy-service dotnet-policy-service bot added Community The pull request was submitted by a contributor who is not a Microsoft employee. VSCode labels Feb 7, 2025
@ericstj
Copy link
Member Author

ericstj commented Feb 7, 2025

All right, this is fixed now. My bad for misunderstanding the original bug. I was fixing the syntax layer to accept the bad input that SyntaxGenerator was giving it, but the bug was in SyntaxGenerator.

One thing I noticed -- SyntaxGenerator does not have an OperatorDeclaration overload that permits creating an checked explicit operator from anything other than metadata. Not sure I want to fix that here. @CyrusNajmabadi let me know if you prefer we add an overload and what the public API should look like.

@ericstj ericstj changed the title Fix syntax generation of explict operator from symbol Fix syntax generation of explict checked operator from symbol Feb 7, 2025
@ericstj
Copy link
Member Author

ericstj commented Feb 10, 2025

Ping @CyrusNajmabadi can you have another look?

Copy link
Contributor

@carlossanlop carlossanlop left a comment

Choose a reason for hiding this comment

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

The changes look good to me but I'll defer to Cyrus to approve.

@CyrusNajmabadi
Copy link
Contributor

LGTM. Thanks!

@CyrusNajmabadi CyrusNajmabadi merged commit daae3d8 into dotnet:main Feb 10, 2025
25 checks passed
@dotnet-policy-service dotnet-policy-service bot added this to the Next milestone Feb 10, 2025
@akhera99 akhera99 modified the milestones: Next, 17.14 P2 Feb 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers Community The pull request was submitted by a contributor who is not a Microsoft employee. untriaged Issues and PRs which have not yet been triaged by a lead VSCode

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Compat] Unhandled ArgumentException: operatorToken Parameter System.Half.explicit_operator checked byte (System.Half)

4 participants