117 references to CSharpCodeStyleOptions
Microsoft.CodeAnalysis.CSharp.CodeStyle (117)
src\Analyzers\CSharp\Analyzers\AddBraces\CSharpAddBracesDiagnosticAnalyzer.cs (1)
26
CSharpCodeStyleOptions
.PreferBraces,
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (42)
23
public CodeStyleOption2<bool> VarForBuiltInTypes => GetOption(
CSharpCodeStyleOptions
.VarForBuiltInTypes);
24
public CodeStyleOption2<bool> VarWhenTypeIsApparent => GetOption(
CSharpCodeStyleOptions
.VarWhenTypeIsApparent);
25
public CodeStyleOption2<bool> VarElsewhere => GetOption(
CSharpCodeStyleOptions
.VarElsewhere);
26
public CodeStyleOption2<bool> PreferSimpleDefaultExpression => GetOption(
CSharpCodeStyleOptions
.PreferSimpleDefaultExpression);
27
public CodeStyleOption2<bool> AllowEmbeddedStatementsOnSameLine => GetOption(
CSharpCodeStyleOptions
.AllowEmbeddedStatementsOnSameLine);
28
public CodeStyleOption2<bool> PreferThrowExpression => GetOption(
CSharpCodeStyleOptions
.PreferThrowExpression);
29
public CodeStyleOption2<PreferBracesPreference> PreferBraces => GetOption(
CSharpCodeStyleOptions
.PreferBraces);
36
public CodeStyleOption2<NamespaceDeclarationPreference> NamespaceDeclarations => GetOption(
CSharpCodeStyleOptions
.NamespaceDeclarations);
37
public CodeStyleOption2<bool> PreferTopLevelStatements => GetOption(
CSharpCodeStyleOptions
.PreferTopLevelStatements);
41
public CodeStyleOption2<AddImportPlacement> UsingDirectivePlacement => GetOption(
CSharpCodeStyleOptions
.PreferredUsingDirectivePlacement);
45
public CodeStyleOption2<bool> ImplicitObjectCreationWhenTypeIsApparent => GetOption(
CSharpCodeStyleOptions
.ImplicitObjectCreationWhenTypeIsApparent);
46
public CodeStyleOption2<bool> PreferNullCheckOverTypeCheck => GetOption(
CSharpCodeStyleOptions
.PreferNullCheckOverTypeCheck);
47
public CodeStyleOption2<bool> AllowBlankLinesBetweenConsecutiveBraces => GetOption(
CSharpCodeStyleOptions
.AllowBlankLinesBetweenConsecutiveBraces);
48
public CodeStyleOption2<bool> AllowBlankLineAfterColonInConstructorInitializer => GetOption(
CSharpCodeStyleOptions
.AllowBlankLineAfterColonInConstructorInitializer);
49
public CodeStyleOption2<bool> AllowBlankLineAfterTokenInArrowExpressionClause => GetOption(
CSharpCodeStyleOptions
.AllowBlankLineAfterTokenInArrowExpressionClause);
50
public CodeStyleOption2<bool> AllowBlankLineAfterTokenInConditionalExpression => GetOption(
CSharpCodeStyleOptions
.AllowBlankLineAfterTokenInConditionalExpression);
51
public CodeStyleOption2<bool> PreferConditionalDelegateCall => GetOption(
CSharpCodeStyleOptions
.PreferConditionalDelegateCall);
52
public CodeStyleOption2<bool> PreferSwitchExpression => GetOption(
CSharpCodeStyleOptions
.PreferSwitchExpression);
53
public CodeStyleOption2<bool> PreferPatternMatching => GetOption(
CSharpCodeStyleOptions
.PreferPatternMatching);
54
public CodeStyleOption2<bool> PreferPatternMatchingOverAsWithNullCheck => GetOption(
CSharpCodeStyleOptions
.PreferPatternMatchingOverAsWithNullCheck);
55
public CodeStyleOption2<bool> PreferPatternMatchingOverIsWithCastCheck => GetOption(
CSharpCodeStyleOptions
.PreferPatternMatchingOverIsWithCastCheck);
56
public CodeStyleOption2<bool> PreferNotPattern => GetOption(
CSharpCodeStyleOptions
.PreferNotPattern);
57
public CodeStyleOption2<bool> PreferExtendedPropertyPattern => GetOption(
CSharpCodeStyleOptions
.PreferExtendedPropertyPattern);
58
public CodeStyleOption2<bool> PreferInlinedVariableDeclaration => GetOption(
CSharpCodeStyleOptions
.PreferInlinedVariableDeclaration);
59
public CodeStyleOption2<bool> PreferDeconstructedVariableDeclaration => GetOption(
CSharpCodeStyleOptions
.PreferDeconstructedVariableDeclaration);
60
public CodeStyleOption2<bool> PreferIndexOperator => GetOption(
CSharpCodeStyleOptions
.PreferIndexOperator);
61
public CodeStyleOption2<bool> PreferRangeOperator => GetOption(
CSharpCodeStyleOptions
.PreferRangeOperator);
62
public CodeStyleOption2<bool> PreferUtf8StringLiterals => GetOption(
CSharpCodeStyleOptions
.PreferUtf8StringLiterals);
63
public CodeStyleOption2<string> PreferredModifierOrder => GetOption(
CSharpCodeStyleOptions
.PreferredModifierOrder);
64
public CodeStyleOption2<bool> PreferSimpleUsingStatement => GetOption(
CSharpCodeStyleOptions
.PreferSimpleUsingStatement);
65
public CodeStyleOption2<bool> PreferLocalOverAnonymousFunction => GetOption(
CSharpCodeStyleOptions
.PreferLocalOverAnonymousFunction);
66
public CodeStyleOption2<bool> PreferTupleSwap => GetOption(
CSharpCodeStyleOptions
.PreferTupleSwap);
67
public CodeStyleOption2<UnusedValuePreference> UnusedValueExpressionStatement => GetOption(
CSharpCodeStyleOptions
.UnusedValueExpressionStatement);
68
public CodeStyleOption2<UnusedValuePreference> UnusedValueAssignment => GetOption(
CSharpCodeStyleOptions
.UnusedValueAssignment);
69
public CodeStyleOption2<bool> PreferMethodGroupConversion => GetOption(
CSharpCodeStyleOptions
.PreferMethodGroupConversion);
70
public CodeStyleOption2<bool> PreferPrimaryConstructors => GetOption(
CSharpCodeStyleOptions
.PreferPrimaryConstructors);
71
public CodeStyleOption2<bool> PreferSystemThreadingLock => GetOption(
CSharpCodeStyleOptions
.PreferSystemThreadingLock);
78
public CodeStyleOption2<ExpressionBodyPreference> PreferExpressionBodiedLambdas => GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedLambdas);
79
public CodeStyleOption2<bool> PreferReadOnlyStruct => GetOption(
CSharpCodeStyleOptions
.PreferReadOnlyStruct);
80
public CodeStyleOption2<bool> PreferReadOnlyStructMember => GetOption(
CSharpCodeStyleOptions
.PreferReadOnlyStructMember);
81
public CodeStyleOption2<bool> PreferStaticLocalFunction => GetOption(
CSharpCodeStyleOptions
.PreferStaticLocalFunction);
82
public CodeStyleOption2<bool> PreferStaticAnonymousFunction => GetOption(
CSharpCodeStyleOptions
.PreferStaticAnonymousFunction);
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToBlockScopedNamespaceDiagnosticAnalyzer.cs (1)
21
CSharpCodeStyleOptions
.NamespaceDeclarations,
src\Analyzers\CSharp\Analyzers\ConvertNamespace\ConvertToFileScopedNamespaceDiagnosticAnalyzer.cs (1)
21
CSharpCodeStyleOptions
.NamespaceDeclarations,
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToProgramMainDiagnosticAnalyzer.cs (1)
23
CSharpCodeStyleOptions
.PreferTopLevelStatements,
src\Analyzers\CSharp\Analyzers\ConvertProgram\ConvertToTopLevelStatementsDiagnosticAnalyzer.cs (1)
25
CSharpCodeStyleOptions
.PreferTopLevelStatements,
src\Analyzers\CSharp\Analyzers\ConvertSwitchStatementToExpression\ConvertSwitchStatementToExpressionDiagnosticAnalyzer.cs (1)
26
CSharpCodeStyleOptions
.PreferSwitchExpression,
src\Analyzers\CSharp\Analyzers\InlineDeclaration\CSharpInlineDeclarationDiagnosticAnalyzer.cs (1)
41
CSharpCodeStyleOptions
.PreferInlinedVariableDeclaration,
src\Analyzers\CSharp\Analyzers\InvokeDelegateWithConditionalAccess\InvokeDelegateWithConditionalAccessAnalyzer.cs (1)
31
CSharpCodeStyleOptions
.PreferConditionalDelegateCall,
src\Analyzers\CSharp\Analyzers\MakeAnonymousFunctionStatic\MakeAnonymousFunctionStaticDiagnosticAnalyzer.cs (1)
19
CSharpCodeStyleOptions
.PreferStaticAnonymousFunction,
src\Analyzers\CSharp\Analyzers\MakeLocalFunctionStatic\MakeLocalFunctionStaticDiagnosticAnalyzer.cs (1)
20
CSharpCodeStyleOptions
.PreferStaticLocalFunction,
src\Analyzers\CSharp\Analyzers\MakeStructMemberReadOnly\CSharpMakeStructMemberReadOnlyAnalyzer.cs (1)
27
CSharpCodeStyleOptions
.PreferReadOnlyStructMember,
src\Analyzers\CSharp\Analyzers\MakeStructReadOnly\CSharpMakeStructReadOnlyDiagnosticAnalyzer.cs (1)
21
CSharpCodeStyleOptions
.PreferReadOnlyStruct,
src\Analyzers\CSharp\Analyzers\MisplacedUsingDirectives\MisplacedUsingDirectivesDiagnosticAnalyzer.cs (2)
42
(s_outsideDiagnosticDescriptor,
CSharpCodeStyleOptions
.PreferredUsingDirectivePlacement),
43
(s_insideDiagnosticDescriptor,
CSharpCodeStyleOptions
.PreferredUsingDirectivePlacement)
src\Analyzers\CSharp\Analyzers\NewLines\ArrowExpressionClausePlacement\ArrowExpressionClausePlacementDiagnosticAnalyzer.cs (1)
22
CSharpCodeStyleOptions
.AllowBlankLineAfterTokenInArrowExpressionClause,
src\Analyzers\CSharp\Analyzers\NewLines\ConditionalExpressionPlacement\ConditionalExpressionPlacementDiagnosticAnalyzer.cs (1)
22
CSharpCodeStyleOptions
.AllowBlankLineAfterTokenInConditionalExpression,
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
22
CSharpCodeStyleOptions
.AllowBlankLinesBetweenConsecutiveBraces,
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
23
CSharpCodeStyleOptions
.AllowBlankLineAfterColonInConstructorInitializer,
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
22
CSharpCodeStyleOptions
.AllowEmbeddedStatementsOnSameLine,
src\Analyzers\CSharp\Analyzers\OrderModifiers\CSharpOrderModifiersDiagnosticAnalyzer.cs (1)
21
CSharpCodeStyleOptions
.PreferredModifierOrder,
src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryLambdaExpression\CSharpRemoveUnnecessaryLambdaExpressionDiagnosticAnalyzer.cs (1)
34
CSharpCodeStyleOptions
.PreferMethodGroupConversion,
src\Analyzers\CSharp\Analyzers\RemoveUnusedParametersAndValues\CSharpRemoveUnusedParametersAndValuesDiagnosticAnalyzer.cs (2)
22
: base(unusedValueExpressionStatementOption:
CSharpCodeStyleOptions
.UnusedValueExpressionStatement,
23
unusedValueAssignmentOption:
CSharpCodeStyleOptions
.UnusedValueAssignment)
src\Analyzers\CSharp\Analyzers\SimplifyPropertyPattern\CSharpSimplifyPropertyPatternDiagnosticAnalyzer.cs (1)
29
CSharpCodeStyleOptions
.PreferExtendedPropertyPattern,
src\Analyzers\CSharp\Analyzers\UseDeconstruction\CSharpUseDeconstructionDiagnosticAnalyzer.cs (1)
27
CSharpCodeStyleOptions
.PreferDeconstructedVariableDeclaration,
src\Analyzers\CSharp\Analyzers\UseDefaultLiteral\CSharpUseDefaultLiteralDiagnosticAnalyzer.cs (1)
21
CSharpCodeStyleOptions
.PreferSimpleDefaultExpression,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForAccessorsHelper.cs (1)
24
CSharpCodeStyleOptions
.PreferExpressionBodiedAccessors,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConstructorsHelper.cs (1)
24
CSharpCodeStyleOptions
.PreferExpressionBodiedConstructors,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForConversionOperatorsHelper.cs (1)
24
CSharpCodeStyleOptions
.PreferExpressionBodiedOperators,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForIndexersHelper.cs (1)
28
CSharpCodeStyleOptions
.PreferExpressionBodiedIndexers,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForLocalFunctionHelper.cs (1)
27
CSharpCodeStyleOptions
.PreferExpressionBodiedLocalFunctions,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForMethodsHelper.cs (1)
27
CSharpCodeStyleOptions
.PreferExpressionBodiedMethods,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForOperatorsHelper.cs (1)
26
CSharpCodeStyleOptions
.PreferExpressionBodiedOperators,
src\Analyzers\CSharp\Analyzers\UseExpressionBody\Helpers\UseExpressionBodyForPropertiesHelper.cs (1)
28
CSharpCodeStyleOptions
.PreferExpressionBodiedProperties,
src\Analyzers\CSharp\Analyzers\UseExpressionBodyForLambda\UseExpressionBodyForLambdaDiagnosticAnalyzer.cs (2)
24
(s_useExpressionBodyForLambda,
CSharpCodeStyleOptions
.PreferExpressionBodiedLambdas),
25
(s_useBlockBodyForLambda,
CSharpCodeStyleOptions
.PreferExpressionBodiedLambdas)
src\Analyzers\CSharp\Analyzers\UseImplicitObjectCreation\CSharpUseImplicitObjectCreationDiagnosticAnalyzer.cs (1)
25
CSharpCodeStyleOptions
.ImplicitObjectCreationWhenTypeIsApparent,
src\Analyzers\CSharp\Analyzers\UseImplicitOrExplicitType\CSharpTypeStyleDiagnosticAnalyzerBase.cs (3)
28
[
CSharpCodeStyleOptions
.VarForBuiltInTypes,
CSharpCodeStyleOptions
.VarWhenTypeIsApparent,
CSharpCodeStyleOptions
.VarElsewhere],
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseIndexOperatorDiagnosticAnalyzer.cs (1)
49
CSharpCodeStyleOptions
.PreferIndexOperator,
src\Analyzers\CSharp\Analyzers\UseIndexOrRangeOperator\CSharpUseRangeOperatorDiagnosticAnalyzer.cs (1)
47
CSharpCodeStyleOptions
.PreferRangeOperator,
src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (1)
22
CSharpCodeStyleOptions
.PreferNullCheckOverTypeCheck,
src\Analyzers\CSharp\Analyzers\UseLocalFunction\CSharpUseLocalFunctionDiagnosticAnalyzer.cs (1)
47
CSharpCodeStyleOptions
.PreferLocalOverAnonymousFunction,
src\Analyzers\CSharp\Analyzers\UsePatternCombinators\CSharpUsePatternCombinatorsDiagnosticAnalyzer.cs (1)
38
CSharpCodeStyleOptions
.PreferPatternMatching,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndMemberAccessDiagnosticAnalyzer.cs (1)
31
CSharpCodeStyleOptions
.PreferPatternMatchingOverAsWithNullCheck,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpAsAndNullCheckDiagnosticAnalyzer.cs (1)
35
CSharpCodeStyleOptions
.PreferPatternMatchingOverAsWithNullCheck,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpIsAndCastCheckDiagnosticAnalyzer.cs (1)
40
CSharpCodeStyleOptions
.PreferPatternMatchingOverIsWithCastCheck,
src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
30
CSharpCodeStyleOptions
.PreferNotPattern,
src\Analyzers\CSharp\Analyzers\UsePrimaryConstructor\CSharpUsePrimaryConstructorDiagnosticAnalyzer.cs (1)
56
CSharpCodeStyleOptions
.PreferPrimaryConstructors,
src\Analyzers\CSharp\Analyzers\UseSimpleUsingStatement\UseSimpleUsingStatementDiagnosticAnalyzer.cs (1)
56
CSharpCodeStyleOptions
.PreferSimpleUsingStatement,
src\Analyzers\CSharp\Analyzers\UseSystemThreadingLock\CSharpUseSystemThreadingLockDiagnosticAnalyzer.cs (1)
42
CSharpCodeStyleOptions
.PreferSystemThreadingLock,
src\Analyzers\CSharp\Analyzers\UseThrowExpression\CSharpUseThrowExpressionDiagnosticAnalyzer.cs (1)
16
: AbstractUseThrowExpressionDiagnosticAnalyzer(
CSharpCodeStyleOptions
.PreferThrowExpression)
src\Analyzers\CSharp\Analyzers\UseTupleSwap\CSharpUseTupleSwapDiagnosticAnalyzer.cs (1)
38
CSharpCodeStyleOptions
.PreferTupleSwap,
src\Analyzers\CSharp\Analyzers\UseUtf8StringLiteral\UseUtf8StringLiteralDiagnosticAnalyzer.cs (1)
38
CSharpCodeStyleOptions
.PreferUtf8StringLiterals,
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeGeneration\CSharpCodeGenerationOptions.cs (10)
45
PreferExpressionBodiedMethods = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedMethods);
46
PreferExpressionBodiedAccessors = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedAccessors);
47
PreferExpressionBodiedProperties = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedProperties);
48
PreferExpressionBodiedIndexers = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedIndexers);
49
PreferExpressionBodiedConstructors = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedConstructors);
50
PreferExpressionBodiedOperators = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedOperators);
51
PreferExpressionBodiedLocalFunctions = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedLocalFunctions);
52
PreferExpressionBodiedLambdas = options.GetOption(
CSharpCodeStyleOptions
.PreferExpressionBodiedLambdas);
53
PreferStaticLocalFunction = options.GetOption(
CSharpCodeStyleOptions
.PreferStaticLocalFunction);
54
NamespaceDeclarations = options.GetOption(
CSharpCodeStyleOptions
.NamespaceDeclarations);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\CodeStyle\PreferBracesPreference.cs (1)
11
/// Defines the known values for <see cref="
CSharpCodeStyleOptions
.PreferBraces"/>.
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\CSharpSyntaxFormattingOptions.cs (2)
113
NamespaceDeclarations = options.GetOption(
CSharpCodeStyleOptions
.NamespaceDeclarations);
114
PreferTopLevelStatements = options.GetOption(
CSharpCodeStyleOptions
.PreferTopLevelStatements);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (7)
39
VarForBuiltInTypes = options.GetOption(
CSharpCodeStyleOptions
.VarForBuiltInTypes);
40
VarWhenTypeIsApparent = options.GetOption(
CSharpCodeStyleOptions
.VarWhenTypeIsApparent);
41
VarElsewhere = options.GetOption(
CSharpCodeStyleOptions
.VarElsewhere);
42
PreferSimpleDefaultExpression = options.GetOption(
CSharpCodeStyleOptions
.PreferSimpleDefaultExpression);
43
AllowEmbeddedStatementsOnSameLine = options.GetOption(
CSharpCodeStyleOptions
.AllowEmbeddedStatementsOnSameLine);
44
PreferBraces = options.GetOption(
CSharpCodeStyleOptions
.PreferBraces);
45
PreferThrowExpression = options.GetOption(
CSharpCodeStyleOptions
.PreferThrowExpression);