Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
AlekseyTs committed Feb 20, 2024
1 parent 2e5d839 commit 004452e
Show file tree
Hide file tree
Showing 4 changed files with 857 additions and 19 deletions.
3 changes: 0 additions & 3 deletions src/Compilers/CSharp/Portable/Binder/Binder.ValueChecks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2729,14 +2729,11 @@ private static bool AllParametersConsideredInEscapeAnalysisHaveArguments(
}
#endif

#nullable disable

private static ErrorCode GetStandardCallEscapeError(bool checkingReceiver)
{
return checkingReceiver ? ErrorCode.ERR_EscapeCall2 : ErrorCode.ERR_EscapeCall;
}

#nullable enable
private sealed class TypeParameterThisParameterSymbol : ThisParameterSymbolBase
{
private readonly TypeParameterSymbol _type;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ public sealed override ImmutableArray<CustomModifier> RefCustomModifiers
get { return ImmutableArray<CustomModifier>.Empty; }
}

// TODO: structs
public sealed override bool IsThis
{
get { return true; }
Expand Down
4 changes: 3 additions & 1 deletion src/Compilers/CSharp/Portable/Symbols/TypeSymbol.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1970,9 +1970,11 @@ static void checkRefStructInterfacesFeatureAvailabilityOnUnscopedRefAttribute(Sy
attributeData.IsTargetAttribute(AttributeDescription.UnscopedRefAttribute))
{
MessageID.IDS_RefStructInterfaces.CheckFeatureAvailability(diagnostics, implementingSymbol.DeclaringCompilation, applicationSyntaxReference.GetLocation());
break;
return;
}
}

Debug.Assert(false);
}
}

Expand Down
Loading

0 comments on commit 004452e

Please sign in to comment.