C# Class Bridge.React.Analyser.SelectAttributesAnalyzer

Inheritance: Microsoft.CodeAnalysis.Diagnostics.DiagnosticAnalyzer
Show file Open project: ProductiveRage/Bridge.React

Public Properties

Property Type Description
DoNotUseValueWhenMultipleIsTrueRule Microsoft.CodeAnalysis.DiagnosticDescriptor
DoNotUseValuesWhenMultipleIsFalseRule Microsoft.CodeAnalysis.DiagnosticDescriptor

Public Methods

Method Description
Initialize ( AnalysisContext context ) : void

Private Methods

Method Description
GetLocalizableString ( string nameOfLocalizableResource ) : Microsoft.CodeAnalysis.LocalizableString
LookForMultiplePropertyUsedWithInappropriateValueOrValuesProperty ( SyntaxNodeAnalysisContext context ) : void
TargetTypeIsSelectAttributes ( ObjectCreationExpressionSyntax objectCreation, SyntaxNodeAnalysisContext context ) : bool

This requires querying the semantic model, which is typically more expensive that querying the syntax tree, so leave this check until last (so that as few code paths have to travel down this route as possible)

Method Details

Initialize() public method

public Initialize ( AnalysisContext context ) : void
context AnalysisContext
return void

Property Details

DoNotUseValueWhenMultipleIsTrueRule public static property

public static DiagnosticDescriptor,Microsoft.CodeAnalysis DoNotUseValueWhenMultipleIsTrueRule
return Microsoft.CodeAnalysis.DiagnosticDescriptor

DoNotUseValuesWhenMultipleIsFalseRule public static property

public static DiagnosticDescriptor,Microsoft.CodeAnalysis DoNotUseValuesWhenMultipleIsFalseRule
return Microsoft.CodeAnalysis.DiagnosticDescriptor