Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix syntax generation of explict checked operator from symbol #77102

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

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
@dotnet-issue-labeler dotnet-issue-labeler bot 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
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
3 participants