27 references to GetCSharpAnalyzerOptions
Microsoft.CodeAnalysis.CSharp.CodeStyle (27)
ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
43
var styleOption = context.
GetCSharpAnalyzerOptions
().PreferSwitchExpression;
ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
36
var diagnostic = AnalyzeNamespace(context.
GetCSharpAnalyzerOptions
().NamespaceDeclarations, namespaceDeclaration);
ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
40
var diagnostic = AnalyzeNamespace(context.
GetCSharpAnalyzerOptions
().NamespaceDeclarations, root, namespaceDeclaration);
ConvertToProgramMainDiagnosticAnalyzer.cs (1)
45
var option = context.
GetCSharpAnalyzerOptions
().PreferTopLevelStatements;
ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
51
var option = context.
GetCSharpAnalyzerOptions
().PreferTopLevelStatements;
CSharpAddBracesDiagnosticAnalyzer.cs (1)
51
var option = context.
GetCSharpAnalyzerOptions
().PreferBraces;
CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
56
var styleOption = context.
GetCSharpAnalyzerOptions
().PreferPatternMatchingOverAsWithNullCheck;
CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
62
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferPatternMatchingOverAsWithNullCheck;
CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
70
var option = context.
GetCSharpAnalyzerOptions
().PreferInlinedVariableDeclaration;
CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
61
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferPatternMatchingOverIsWithCastCheck;
CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
66
var preference = context.
GetCSharpAnalyzerOptions
().PreferMethodGroupConversion;
CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
55
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferExtendedPropertyPattern;
CSharpTypeStyleDiagnosticAnalyzerBase.cs (1)
62
var simplifierOptions = context.
GetCSharpAnalyzerOptions
().GetSimplifierOptions();
CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
44
var option = context.
GetCSharpAnalyzerOptions
().PreferDeconstructedVariableDeclaration;
CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
38
var preference = context.
GetCSharpAnalyzerOptions
().PreferSimpleDefaultExpression;
CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (2)
45
var styleOption = context.
GetCSharpAnalyzerOptions
().ImplicitObjectCreationWhenTypeIsApparent;
77
var simplifierOptions = context.
GetCSharpAnalyzerOptions
().GetSimplifierOptions();
CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
72
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferLocalOverAnonymousFunction;
CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
56
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferNotPattern;
CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
68
var styleOption = context.
GetCSharpAnalyzerOptions
().PreferPatternMatching;
CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
65
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferTupleSwap;
InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
41
var styleOption = syntaxContext.
GetCSharpAnalyzerOptions
().PreferConditionalDelegateCall;
MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
44
var option = context.
GetCSharpAnalyzerOptions
().PreferStaticLocalFunction;
MisplacedUsingDirectivesDiagnosticAnalyzer.cs (2)
58
var option = context.
GetCSharpAnalyzerOptions
().UsingDirectivePlacement;
68
var option = context.
GetCSharpAnalyzerOptions
().UsingDirectivePlacement;
UseExpressionBodyDiagnosticAnalyzer.cs (1)
51
var options = context.
GetCSharpAnalyzerOptions
().GetCodeGenerationOptions();
UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
115
var option = context.
GetCSharpAnalyzerOptions
().PreferSimpleUsingStatement;