Skip to content

Commit 32d1df8

Browse files
Naming
1 parent f5034aa commit 32d1df8

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

analyzers/src/SonarAnalyzer.CFG/ShimLayer/IOperationWrapperSonar.cs

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -26,28 +26,28 @@ namespace StyleCop.Analyzers.Lightup
2626
// This is a temporary substitute for IOperationWrapper in case StyleCop will accept PR https://github.com/DotNetAnalyzers/StyleCopAnalyzers/issues/3381
2727
public readonly struct IOperationWrapperSonar
2828
{
29-
private static readonly Func<IOperation, IOperation> ParentPropertyAccessor;
30-
private static readonly Func<IOperation, IEnumerable<IOperation>> ChildrenPropertyAccessor;
31-
private static readonly Func<IOperation, string> LanguagePropertyAccessor;
32-
private static readonly Func<IOperation, bool> IsImplicitPropertyAccessor;
33-
private static readonly Func<IOperation, SemanticModel> SemanticModelPropertyAccessor;
29+
private static readonly Func<IOperation, IOperation> ParentAccessor;
30+
private static readonly Func<IOperation, IEnumerable<IOperation>> ChildrenAccessor;
31+
private static readonly Func<IOperation, string> LanguageAccessor;
32+
private static readonly Func<IOperation, bool> IsImplicitAccessor;
33+
private static readonly Func<IOperation, SemanticModel> SemanticModelAccessor;
3434

3535
static IOperationWrapperSonar()
3636
{
3737
var type = typeof(IOperation);
38-
ParentPropertyAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, IOperation>(type, nameof(Parent));
39-
ChildrenPropertyAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, IEnumerable<IOperation>>(type, nameof(Children));
40-
LanguagePropertyAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, string>(type, nameof(Language));
41-
IsImplicitPropertyAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, bool>(type, nameof(IsImplicit));
42-
SemanticModelPropertyAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, SemanticModel>(type, nameof(SemanticModel));
38+
ParentAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, IOperation>(type, nameof(Parent));
39+
ChildrenAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, IEnumerable<IOperation>>(type, nameof(Children));
40+
LanguageAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, string>(type, nameof(Language));
41+
IsImplicitAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, bool>(type, nameof(IsImplicit));
42+
SemanticModelAccessor = LightupHelpers.CreateSyntaxPropertyAccessor<IOperation, SemanticModel>(type, nameof(SemanticModel));
4343
}
4444

4545
public IOperation Instance { get; }
46-
public IOperation Parent => ParentPropertyAccessor(Instance);
47-
public IEnumerable<IOperation> Children => ChildrenPropertyAccessor(Instance);
48-
public string Language => LanguagePropertyAccessor(Instance);
49-
public bool IsImplicit => IsImplicitPropertyAccessor(Instance);
50-
public SemanticModel SemanticModel => SemanticModelPropertyAccessor(Instance);
46+
public IOperation Parent => ParentAccessor(Instance);
47+
public IEnumerable<IOperation> Children => ChildrenAccessor(Instance);
48+
public string Language => LanguageAccessor(Instance);
49+
public bool IsImplicit => IsImplicitAccessor(Instance);
50+
public SemanticModel SemanticModel => SemanticModelAccessor(Instance);
5151

5252
public IOperationWrapperSonar(IOperation instance) =>
5353
Instance = instance ?? throw new ArgumentNullException(nameof(instance));

0 commit comments

Comments
 (0)