Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public SourceExtensionImplementationMethodSymbol(MethodSymbol sourceMethod)
public override MethodKind MethodKind => MethodKind.Ordinary;
public override bool IsImplicitlyDeclared => true;

internal override bool HasSpecialName => true; // Tracked by https://github.com/dotnet/roslyn/issues/76130 : reconcile with spec
internal override bool HasSpecialName => false;

internal override int ParameterCount
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ internal SynthesizedExtensionMarker(SourceMemberContainerTypeSymbol extensionTyp

private static DeclarationModifiers GetDeclarationModifiers() => DeclarationModifiers.Private | DeclarationModifiers.Static;

internal override bool HasSpecialName => true; // Tracked by https://github.com/dotnet/roslyn/issues/76130 : reconcile with spec
internal override bool HasSpecialName => true;

internal override void GenerateMethodBody(TypeCompilationState compilationState, BindingDiagnosticBag diagnostics)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -411,7 +411,7 @@ internal sealed override ParameterSymbol? ExtensionParameter
methodSymbol.IsGenericMethod ||
!methodSymbol.IsStatic ||
!methodSymbol.ReturnsVoid ||
methodSymbol.ParameterCount != 1) // Tracked by https://github.com/dotnet/roslyn/issues/76130 : Should we accept more than one parameter (in case new versions add more info)?
methodSymbol.ParameterCount != 1)
{
return null; // Tracked by https://github.com/dotnet/roslyn/issues/76130 : Test this code path
}
Expand Down Expand Up @@ -467,7 +467,7 @@ static MethodSymbol getMarkerMethodSymbol(PENamedTypeSymbol @this, ExtensionInfo

foreach (var member in @this.ContainingType.GetMembers(method.Name))
{
if (member is not MethodSymbol { HasSpecialName: true, IsStatic: true } candidate)
if (member is not MethodSymbol { IsStatic: true } candidate)
{
continue; // Tracked by https://github.com/dotnet/roslyn/issues/76130 : Test this code path
}
Expand Down
Loading