Skip to content

Conversation

@AlekseyTs
Copy link
Contributor

@AlekseyTs AlekseyTs commented Dec 18, 2024

Related to #73920.

@AlekseyTs AlekseyTs requested a review from a team as a code owner December 18, 2024 16:58
@ghost ghost added the untriaged Issues and PRs which have not yet been triaged by a lead label Dec 18, 2024
@AlekseyTs AlekseyTs force-pushed the GeneratedCodeAttributes_02 branch from 7cdb07f to 75f0fd4 Compare December 20, 2024 04:16
@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review

1 similar comment
@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler Please review

@AlekseyTs
Copy link
Contributor Author

@dotnet/roslyn-compiler For the second review

}

internal sealed class SourceMethodTypeParameterSymbol : SourceTypeParameterSymbolBase
internal abstract class SourceMethodTypeParameterSymbol : SourceTypeParameterSymbol
Copy link
Contributor

Choose a reason for hiding this comment

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

abstract class SourceMethodTypeParameterSymbol

What does this refactoring enable?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

What does this refactoring enable?

All implementations of method type parameters in source have a common base distinct from the base of type type parameters

internal override void AddSynthesizedAttributes(PEModuleBuilder moduleBuilder, ref ArrayBuilder<CSharpAttributeData> attributes)
{
if (ContainingSymbol.Kind == SymbolKind.NamedType &&
_underlyingTypeParameter.OriginalDefinition is SourceMethodTypeParameterSymbol &&
Copy link
Contributor

Choose a reason for hiding this comment

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

is SourceMethodTypeParameterSymbol

Consider capturing in a local and reusing below: is SourceMethodTypeParameterSymbol underlyingDefinition

Copy link
Contributor Author

Choose a reason for hiding this comment

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

is SourceMethodTypeParameterSymbol

Consider capturing in a local and reusing below: is SourceMethodTypeParameterSymbol underlyingDefinition

I'll make this adjustment in the next PR

@AlekseyTs AlekseyTs merged commit e416d99 into dotnet:features/GeneratedCodeAttributes Dec 26, 2024
24 checks passed
checkedsums pushed a commit to checkedsums/roslynjourneys that referenced this pull request Jan 5, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Area-Compilers 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