Skip to content

Commit 12b6f93

Browse files
Comments
1 parent 3386603 commit 12b6f93

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

StyleCop.Analyzers/StyleCop.Analyzers/Lightup/LightupHelpers.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ internal static bool CanWrapObject(object obj, Type underlyingType)
6767

6868
ConcurrentDictionary<Type, bool> wrappedObject = SupportedObjectWrappers.GetOrAdd(underlyingType, static _ => new ConcurrentDictionary<Type, bool>());
6969

70-
// Avoid creating the delegate and capture class
70+
// Avoid creating a delegate and capture class
7171
if (!wrappedObject.TryGetValue(obj.GetType(), out var canCast))
7272
{
7373
canCast = underlyingType.GetTypeInfo().IsAssignableFrom(obj.GetType().GetTypeInfo());
@@ -93,7 +93,7 @@ internal static bool CanWrapNode(SyntaxNode node, Type underlyingType)
9393

9494
ConcurrentDictionary<SyntaxKind, bool> wrappedSyntax = SupportedSyntaxWrappers.GetOrAdd(underlyingType, static _ => new ConcurrentDictionary<SyntaxKind, bool>());
9595

96-
// Avoid creating the delegate and capture class
96+
// Avoid creating a delegate and capture class
9797
if (!wrappedSyntax.TryGetValue(node.Kind(), out var canCast))
9898
{
9999
canCast = underlyingType.GetTypeInfo().IsAssignableFrom(node.GetType().GetTypeInfo());
@@ -119,7 +119,7 @@ internal static bool CanWrapOperation(IOperation operation, Type underlyingType)
119119

120120
ConcurrentDictionary<OperationKind, bool> wrappedSyntax = SupportedOperationWrappers.GetOrAdd(underlyingType, static _ => new ConcurrentDictionary<OperationKind, bool>());
121121

122-
// Avoid creating the delegate and capture class
122+
// Avoid creating a delegate and capture class
123123
if (!wrappedSyntax.TryGetValue(operation.Kind, out var canCast))
124124
{
125125
canCast = underlyingType.GetTypeInfo().IsAssignableFrom(operation.GetType().GetTypeInfo());

0 commit comments

Comments
 (0)