Table of Contents

Class RoslynAnalyzer

Namespace
SunamoRoslyn
Assembly
SunamoRoslyn.dll

A Roslyn diagnostic analyzer that reports named types containing lowercase letters in their names.

[DiagnosticAnalyzer("C#", new string[] { })]
public class RoslynAnalyzer : DiagnosticAnalyzer
Inheritance
RoslynAnalyzer
Inherited Members
Extension Methods

Fields

DiagnosticId

The unique identifier for diagnostics produced by this analyzer.

public const string DiagnosticId = "Roslyn"

Field Value

string

Properties

SupportedDiagnostics

Gets the set of diagnostic descriptors supported by this analyzer.

public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }

Property Value

ImmutableArray<DiagnosticDescriptor>

Methods

Initialize(AnalysisContext)

Initializes the analyzer by registering analysis actions.

public override void Initialize(AnalysisContext context)

Parameters

context AnalysisContext

The analysis context to register actions on.