Class NavigationTypeSafetyAnalyzer
- Namespace
- Blazing.Mvvm.Analyzers.Analyzers
- Assembly
- Blazing.Mvvm.Analyzers.dll
Analyzer that ensures NavigateTo<TViewModel>() calls reference ViewModels with valid route mappings. Validates that the target ViewModel inherits from ViewModelBase AND has [ViewModelDefinition] attribute.
[DiagnosticAnalyzer("C#", new string[] { })]
public class NavigationTypeSafetyAnalyzer : DiagnosticAnalyzerInheritance
Inherited Members
Properties
SupportedDiagnostics
Returns a set of descriptors for the diagnostics that this analyzer is capable of producing.
public override ImmutableArray<DiagnosticDescriptor> SupportedDiagnostics { get; }Property Value
Methods
Initialize(AnalysisContext)
Called once at session start to register actions in the analysis context.
public override void Initialize(AnalysisContext context)Parameters
contextAnalysisContext