Skip to content

Commit

Permalink
Fix typos (#59237)
Browse files Browse the repository at this point in the history
  • Loading branch information
cston authored Feb 16, 2022
1 parent 07b1ca2 commit b452e27
Show file tree
Hide file tree
Showing 13 changed files with 22 additions and 22 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ internal sealed class SingleTypeDeclaration : SingleNamespaceOrTypeDeclaration
/// through a using alias in the file. For example
/// <c>using X = System.Runtime.CompilerServices.TypeForwardedToAttribute</c> or
/// <c>[TypeForwardedToAttribute]</c>. Can be used to avoid having to go back to source
/// to retrieve attributes whtn there is no chance they would bind to attribute of interest.
/// to retrieve attributes when there is no chance they would bind to attribute of interest.
/// </summary>
public QuickAttributes QuickAttributes { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -708,7 +708,7 @@ private bool IsAtEndOfMultiLineRawLiteral(InterpolatedStringKind kind, int start

/// <summary>
/// Returns <see langword="true"/> if the quote was an end delimiter and lexing of the contents of the
/// interpolated string literal should stop. If it was an end delimeter it will not be consumed. If it is
/// interpolated string literal should stop. If it was an end delimiter it will not be consumed. If it is
/// content and should not terminate the string then it will be consumed by this method.
/// </summary>
private bool IsEndDelimiterOtherwiseConsume(InterpolatedStringKind kind, int startingQuoteCount)
Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/CSharp/Test/CommandLine/CommandLineTests.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1411,7 +1411,7 @@ public void ModuleManifest()
}

// The following test is failing in the Linux Debug test leg of CI.
// This issus is being tracked by https://github.com/dotnet/roslyn/issues/58077
// This issue is being tracked by https://github.com/dotnet/roslyn/issues/58077
[ConditionalFact(typeof(WindowsOrMacOSOnly))]
public void ArgumentParsing()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1622,7 +1622,7 @@ static unsafe void F<U>() where U : unmanaged
}

[Fact]
public void Lambda_SynthesizedDeletage_06()
public void Lambda_SynthesizedDelegate_06()
{
var source0 = MarkedSource(
@"class C
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ .maxstack 4
}

[Fact]
public void Not_InExpressionLamba0()
public void Not_InExpressionLambda0()
{
var source = @"
using System;
Expand Down Expand Up @@ -329,7 +329,7 @@ .locals init (System.Linq.Expressions.ParameterExpression V_0)
}

[Fact]
public void Not_InExpressionLamba1()
public void Not_InExpressionLambda1()
{
var source = @"
using System;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2618,7 +2618,7 @@ public static void M(C? c)

#endregion

#region "constructor initalizer"
#region "constructor initializer"
[Fact]
public void TestDataFlowsInCtorInitPublicApi()
{
Expand Down Expand Up @@ -2757,7 +2757,7 @@ class C
}
#endregion

#region "primary constructor initalizer"
#region "primary constructor initializer"

[Fact]
public void TestDataFlowsInPrimaryCtorInitPublicApi()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3264,9 +3264,9 @@ interface IRouteBuilder
}
static class AppBuilderExtensions
{
public static IAppBuilder Map(this IAppBuilder app, PathSring path, Action<IAppBuilder> callback)
public static IAppBuilder Map(this IAppBuilder app, PathString path, Action<IAppBuilder> callback)
{
Console.WriteLine(""AppBuilderExtensions.Map(this IAppBuilder app, PathSring path, Action<IAppBuilder> callback)"");
Console.WriteLine(""AppBuilderExtensions.Map(this IAppBuilder app, PathString path, Action<IAppBuilder> callback)"");
return app;
}
}
Expand All @@ -3278,20 +3278,20 @@ public static IRouteBuilder Map(this IRouteBuilder routes, string path, Delegate
return routes;
}
}
struct PathSring
struct PathString
{
public PathSring(string? path)
public PathString(string? path)
{
Path = path;
}
public string? Path { get; }
public static implicit operator PathSring(string? s) => new PathSring(s);
public static implicit operator string?(PathSring path) => path.Path;
public static implicit operator PathString(string? s) => new PathString(s);
public static implicit operator string?(PathString path) => path.Path;
}";

var expectedOutput =
@"AppBuilderExtensions.Map(this IAppBuilder app, PathSring path, Action<IAppBuilder> callback)
AppBuilderExtensions.Map(this IAppBuilder app, PathSring path, Action<IAppBuilder> callback)
@"AppBuilderExtensions.Map(this IAppBuilder app, PathString path, Action<IAppBuilder> callback)
AppBuilderExtensions.Map(this IAppBuilder app, PathString path, Action<IAppBuilder> callback)
";
CompileAndVerify(source, parseOptions: TestOptions.Regular9, expectedOutput: expectedOutput);
CompileAndVerify(source, parseOptions: TestOptions.Regular10, expectedOutput: expectedOutput);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3766,7 +3766,7 @@ record struct A(int I, string S);
}

[Fact]
public void Deconstruct_WihtNonReadOnlyGetter_GeneratedAsNonReadOnly()
public void Deconstruct_WithNonReadOnlyGetter_GeneratedAsNonReadOnly()
{
var src = @"
record struct A(int I, string S)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ public void Hint_Name_Must_Be_Unique(string hintName1, string hintName2)
}

[Fact]
public void Hint_Name_Must_Be_Unique_When_Combining_Soruces()
public void Hint_Name_Must_Be_Unique_When_Combining_Sources()
{
AdditionalSourcesCollection asc = new AdditionalSourcesCollection(".cs");
asc.Add("hintName1", SourceText.From("", Encoding.UTF8));
Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/Core/Portable/Compilation/Compilation.cs
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ protected static IReadOnlyDictionary<string, string> SyntaxTreeCommonFeatures(IE
/// <item>
/// <description>
/// Manipulation of strong name keys: strong name keys are read "on demand" by the compiler
/// and both normal compilation and this key can have non-determinstic output if they are
/// and both normal compilation and this key can have non-deterministic output if they are
/// manipulated at the correct point in program execution. That is an existing limitation
/// of compilation that is tracked by https://github.com/dotnet/roslyn/issues/57940
/// </description>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ JObject getValue(bool deterministic)
}

/// <summary>
/// Disabling determinism should mean all calls to GetDeteriministicKey return different values.
/// Disabling determinism should mean all calls to GetDeterministicKey return different values.
/// </summary>
[Fact]
public void CompilationOptionsDeterministicOff()
Expand Down
2 changes: 1 addition & 1 deletion src/Compilers/Shared/BuildServerConnection.cs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,7 @@ internal bool TryLockFile()
// file here, then the other thread unlocks and deletes the file, and then we
// acquire the lock on our file handle - but the actual file is already deleted.
// To close this race, we verify that the file does in fact still exist now that
// we have successfull acquired the locked FileStream. (Note that this check is
// we have successfully acquired the locked FileStream. (Note that this check is
// safe because we cannot race with an other attempt to create the file since we
// hold the guard, and after the FileStream constructor returned we can no race
// with file deletion because we hold the lock.)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -873,7 +873,7 @@ BC30587: Named argument cannot match a ParamArray parameter.

<CompilerTrait(CompilerFeature.IOperation)>
<Fact()>
Public Sub Error_NamedArgumenNotExist()
Public Sub Error_NamedArgumentNotExist()
Dim source = <![CDATA[
Class P
Sub M1()
Expand Down

0 comments on commit b452e27

Please sign in to comment.