Skip to content

Commit 9e5d9f8

Browse files
authored
Merge pull request github#10824 from jsoref/spelling-csharp
Spelling csharp
2 parents caaee26 + 86a85b8 commit 9e5d9f8

File tree

46 files changed

+75
-73
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+75
-73
lines changed

csharp/extractor/Semmle.Extraction.CIL/Context.Factories.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -218,7 +218,7 @@ private Namespace CreateNamespace(NamespaceDefinitionHandle handle)
218218
public PdbSourceFile CreateSourceFile(PDB.ISourceFile file) => sourceFiles[file];
219219

220220
/// <summary>
221-
/// Creates a folder entitiy with the given path.
221+
/// Creates a folder entity with the given path.
222222
/// </summary>
223223
/// <param name="path">The path of the folder.</param>
224224
/// <returns>A folder entity.</returns>

csharp/extractor/Semmle.Extraction.CIL/Entities/Base/UnlabelledEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ namespace Semmle.Extraction.CIL
55
{
66
/// <summary>
77
/// An entity that has contents to extract. There is no need to populate
8-
/// a key as it's done in the contructor.
8+
/// a key as it's done in the constructor.
99
/// </summary>
1010
internal abstract class UnlabelledEntity : Extraction.UnlabelledEntity, IExtractedEntity
1111
{

csharp/extractor/Semmle.Extraction.CIL/Entities/IMember.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
namespace Semmle.Extraction.CIL.Entities
22
{
33
/// <summary>
4-
/// An entity represting a member.
4+
/// An entity representing a member.
55
/// Used to type tuples correctly.
66
/// </summary>
77
internal interface IMember : IExtractedEntity

csharp/extractor/Semmle.Extraction.CSharp/Entities/CachedSymbol.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ protected void ExtractCompilerGenerated(TextWriter trapFile)
6666
}
6767

6868
/// <summary>
69-
/// The location which is stored in the database and is used when highlighing source code.
69+
/// The location which is stored in the database and is used when highlighting source code.
7070
/// It's generally short, e.g. a method name.
7171
/// </summary>
7272
public override Microsoft.CodeAnalysis.Location? ReportingLocation => Symbol.Locations.FirstOrDefault();

csharp/extractor/Semmle.Extraction.CSharp/Entities/EventAccessor.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public override void Populate(TextWriter trapFile)
4242
}
4343
else
4444
{
45-
Context.ModelError(Symbol, $"Undhandled event accessor kind {Symbol.ToDisplayString()}");
45+
Context.ModelError(Symbol, $"Unhandled event accessor kind {Symbol.ToDisplayString()}");
4646
return;
4747
}
4848

csharp/extractor/Semmle.Extraction.CSharp/Entities/Expression.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ internal void SetType(ITypeSymbol? type)
7474
bool IExpressionParentEntity.IsTopLevelParent => false;
7575

7676
/// <summary>
77-
/// Gets a string represention of a constant value.
77+
/// Gets a string representation of a constant value.
7878
/// </summary>
7979
/// <param name="obj">The value.</param>
8080
/// <returns>The string representation.</returns>

csharp/extractor/Semmle.Extraction.CSharp/Entities/Modifier.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ public override void Populate(TextWriter trapFile)
2323
trapFile.modifiers(Label, Symbol);
2424
}
2525

26-
public static string AccessbilityModifier(Accessibility access)
26+
public static string AccessibilityModifier(Accessibility access)
2727
{
2828
switch (access)
2929
{
@@ -48,7 +48,7 @@ public static void HasAccessibility(Context cx, TextWriter trapFile, IEntity typ
4848
case Accessibility.Public:
4949
case Accessibility.Protected:
5050
case Accessibility.Internal:
51-
HasModifier(cx, trapFile, type, Modifier.AccessbilityModifier(access));
51+
HasModifier(cx, trapFile, type, Modifier.AccessibilityModifier(access));
5252
break;
5353
case Accessibility.NotApplicable:
5454
break;
@@ -131,7 +131,7 @@ public static Modifier Create(Context cx, string modifier)
131131

132132
public static Modifier Create(Context cx, Accessibility access)
133133
{
134-
var modifier = AccessbilityModifier(access);
134+
var modifier = AccessibilityModifier(access);
135135
return ModifierFactory.Instance.CreateEntity(cx, (typeof(Modifier), modifier), modifier);
136136
}
137137

csharp/extractor/Semmle.Extraction.CSharp/SymbolExtensions.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ namespace Semmle.Extraction.CSharp
1010
{
1111
/// <summary>
1212
/// An ITypeSymbol with nullability annotations.
13-
/// Although a similar class has been implemented in Rolsyn,
13+
/// Although a similar class has been implemented in Roslyn,
1414
/// https://github.com/dotnet/roslyn/blob/090e52e27c38ad8f1ea4d033114c2a107604ddaa/src/Compilers/CSharp/Portable/Symbols/TypeWithAnnotations.cs
1515
/// it is an internal struct that has not yet been exposed on the public interface.
1616
/// </summary>
@@ -80,8 +80,8 @@ private static IEnumerable<SyntaxToken> GetModifiers<T>(this ISymbol symbol, Fun
8080
public static IEnumerable<string> GetSourceLevelModifiers(this ISymbol symbol)
8181
{
8282
var methodModifiers = symbol.GetModifiers<Microsoft.CodeAnalysis.CSharp.Syntax.BaseMethodDeclarationSyntax>(md => md.Modifiers);
83-
var typeModifers = symbol.GetModifiers<Microsoft.CodeAnalysis.CSharp.Syntax.TypeDeclarationSyntax>(cd => cd.Modifiers);
84-
return methodModifiers.Concat(typeModifers).Select(m => m.Text);
83+
var typeModifiers = symbol.GetModifiers<Microsoft.CodeAnalysis.CSharp.Syntax.TypeDeclarationSyntax>(cd => cd.Modifiers);
84+
return methodModifiers.Concat(typeModifiers).Select(m => m.Text);
8585
}
8686

8787
/// <summary>

csharp/extractor/Semmle.Extraction/Entities/Base/IEntity.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public interface IEntity
2626
Label Label { get; set; }
2727

2828
/// <summary>
29-
/// Writes the unique identifier of this entitiy to a trap file.
29+
/// Writes the unique identifier of this entity to a trap file.
3030
/// </summary>
3131
/// <param name="trapFile">The trapfile to write to.</param>
3232
void WriteId(EscapingTextWriter trapFile);

csharp/extractor/Semmle.Util/Enumerators.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ public static class Enumerators
88
/// Create an enumerable with a single element.
99
/// </summary>
1010
///
11-
/// <typeparam name="T">The type of the enumerble/element.</typeparam>
11+
/// <typeparam name="T">The type of the enumerable/element.</typeparam>
1212
/// <param name="t">The element.</param>
1313
/// <returns>An enumerable containing a single element.</returns>
1414
public static IEnumerable<T> Singleton<T>(T t)

0 commit comments

Comments
 (0)