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
4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/Binder/Binder.ValueChecks.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2447,7 +2447,7 @@ static void getArgList(

/// <summary>
/// Returns the set of arguments to be considered for escape analysis of a method
/// invocation. Each argument is returned with the correponding parameter and
/// invocation. Each argument is returned with the corresponding parameter and
/// whether analysis should consider value or ref escape. Not all method arguments
/// are included, and some arguments may be included twice - once for value, once for ref.
/// </summary>
Expand Down Expand Up @@ -4071,7 +4071,7 @@ internal SafeContext GetValEscape(BoundExpression expr, SafeContext localScopeDe
case BoundKind.MakeRefOperator:
case BoundKind.RefValueOperator:
// for compat reasons
// NB: it also means can`t assign stackalloc spans to a __refvalue
// NB: it also means can't assign stackalloc spans to a __refvalue
// we are ok with that.
return SafeContext.CallingMethod;

Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/CSharp/Portable/CSharpResources.resx
Original file line number Diff line number Diff line change
Expand Up @@ -7483,7 +7483,7 @@ To remove the warning, you can use /reference instead (set the Embed Interop Typ
<value>file types</value>
</data>
<data name="ERR_CannotMatchOnINumberBase" xml:space="preserve">
<value>Cannot use a numeric constant or relational pattern on '{0}' because it inherits from or extends 'INumberBase&lt;T&gt;'. Consider using a type pattern to narrow to a specifc numeric type.</value>
<value>Cannot use a numeric constant or relational pattern on '{0}' because it inherits from or extends 'INumberBase&lt;T&gt;'. Consider using a type pattern to narrow to a specific numeric type.</value>
</data>
<data name="IDS_ArrayAccess" xml:space="preserve">
<value>array access</value>
Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/CSharp/Portable/CodeGen/EmitExpression.cs
Original file line number Diff line number Diff line change
Expand Up @@ -596,7 +596,7 @@ private void EmitLoweredConditionalAccessExpression(BoundLoweredConditionalAcces

/// <summary>
/// We must use a temp when there is a chance that evaluation of the call arguments
/// could actually modify value of the reference type reciever. The call must use
/// could actually modify value of the reference type receiver. The call must use
/// the original (unmodified) receiver.
/// </summary>
private sealed class IsConditionalConstrainedCallThatMustUseTempForReferenceTypeReceiverWalker : BoundTreeWalkerWithStackGuardWithoutRecursionOnTheLeftOfBinaryOperator
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,7 @@ private void ValidateReferencedAssembly(AssemblySymbol assembly, AssemblyReferen
/// </summary>
private static void GetDocumentsForMethodsAndNestedTypes(PooledHashSet<Cci.DebugSourceDocument> documentList, ArrayBuilder<Cci.ITypeDefinition> typesToProcess, EmitContext context)
{
// Temporarily disable assert to unblock getting net8.0 teststing re-nabled on Unix. Will
// Temporarily disable assert to unblock getting net8.0 testing re-enabled on Unix. Will
// remove this shortly.
// https://github.com/dotnet/roslyn/issues/71571
// Debug.Assert(!context.MetadataOnly);
Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/CSharp/Portable/Parser/Lexer.cs
Original file line number Diff line number Diff line change
Expand Up @@ -786,7 +786,7 @@ private bool TryScanInterpolatedString(ref TokenInfo info)
if (TextWindow.PeekChar(1) is '$' or '@' or '"')
{
// $$ - definitely starts a raw interpolated string.
// $@ - definitely starts an interplated string.
// $@ - definitely starts an interpolated string.
//
// This will also match for $@@. This is an error case when the user thinks they can mix verbatim and raw
// interpolations together. This will be properly handled in ScanInterpolatedStringLiteral
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3439,9 +3439,9 @@ internal IEnumerable<SourceMemberMethodSymbol> GetMethodsPossiblyCapturingPrimar
}
else
{
var membersAndInituializers = GetMembersAndInitializers();
nonTypeMembersToCheck = membersAndInituializers.NonTypeMembers;
primaryConstructor = membersAndInituializers.PrimaryConstructor;
var membersAndInitializers = GetMembersAndInitializers();
nonTypeMembersToCheck = membersAndInitializers.NonTypeMembers;
primaryConstructor = membersAndInitializers.PrimaryConstructor;
}

Debug.Assert(primaryConstructor is not null);
Expand Down Expand Up @@ -3484,9 +3484,9 @@ internal ImmutableArray<Symbol> GetMembersToMatchAgainstDeclarationSpan()
}
else
{
var membersAndInituializers = GetMembersAndInitializers();
Debug.Assert(membersAndInituializers.PrimaryConstructor is not null);
return membersAndInituializers.NonTypeMembers;
var membersAndInitializers = GetMembersAndInitializers();
Debug.Assert(membersAndInitializers.PrimaryConstructor is not null);
return membersAndInitializers.NonTypeMembers;
}
}

Expand All @@ -3509,9 +3509,9 @@ internal ImmutableArray<Symbol> GetCandidateMembersForLookup(string name)
}
else
{
var membersAndInituializers = GetMembersAndInitializers();
nonTypeMembersToCheck = membersAndInituializers.NonTypeMembers;
primaryConstructor = membersAndInituializers.PrimaryConstructor;
var membersAndInitializers = GetMembersAndInitializers();
nonTypeMembersToCheck = membersAndInitializers.NonTypeMembers;
primaryConstructor = membersAndInitializers.PrimaryConstructor;
}

Debug.Assert(primaryConstructor is not null);
Expand Down
4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.cs.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.de.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.es.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.fr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.it.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ja.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ko.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.pl.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.pt-BR.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.ru.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions src/Compilers/CSharp/Portable/xlf/CSharpResources.tr.xlf

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading