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

Add public API for ref like type parameters #73335

Conversation

AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented May 3, 2024

Related to #73330.

@AlekseyTs AlekseyTs requested review from jjonescz and cston May 3, 2024 21:20
@AlekseyTs AlekseyTs requested review from a team as code owners May 3, 2024 21:20
@dotnet-issue-labeler dotnet-issue-labeler bot added the untriaged Issues and PRs which have not yet been triaged by a lead label May 3, 2024
@AlekseyTs AlekseyTs requested a review from a team as a code owner May 4, 2024 23:21
@@ -27,6 +27,7 @@ internal class CodeGenerationTypeParameterSymbol(
public bool HasConstructorConstraint { get; } = hasConstructorConstraint;
public bool HasReferenceTypeConstraint { get; } = hasReferenceConstraint;
public bool HasValueTypeConstraint { get; } = hasValueConstraint;
public bool AllowsByRefLike => false;
Copy link
Member

Choose a reason for hiding this comment

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

I see CodeGenerationTypeParameterSymbol is used for example in IMethodSymbolExtensions.RenameTypeParameters - should we add a real bool allowsByRefLike parameter to support that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I see CodeGenerationTypeParameterSymbol is used for example in IMethodSymbolExtensions.RenameTypeParameters - should we add a real bool allowsByRefLike parameter to support that?

In general we are not required to adjust IDE code

@AlekseyTs AlekseyTs requested a review from jjonescz May 6, 2024 16:02
@AlekseyTs
Copy link
Contributor Author

@cston, @jjonescz, @dotnet/roslyn-compiler Please review

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Area-Compilers Feature - RefStructInterfaces untriaged Issues and PRs which have not yet been triaged by a lead
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants