100 references to GetOption
Microsoft.CodeAnalysis.CodeStyle (11)
AnalyzerOptionsProvider.cs (1)
102
=> _options.
GetOption
(option, defaultValue);
DocumentFormattingOptions.cs (2)
40
FileHeaderTemplate = options.
GetOption
(CodeStyleOptions2.FileHeaderTemplate, fallbackOptions.FileHeaderTemplate),
41
InsertFinalNewLine = options.
GetOption
(FormattingOptions2.InsertFinalNewLine, fallbackOptions.InsertFinalNewLine)
IdeCodeStyleOptions.cs (3)
70
OperatorPlacementWhenWrapping = options.
GetOption
(CodeStyleOptions2.OperatorPlacementWhenWrapping, fallbackOptions.OperatorPlacementWhenWrapping);
89
ForEachExplicitCastInSource = options.
GetOption
(CodeStyleOptions2.ForEachExplicitCastInSource, fallbackOptions.ForEachExplicitCastInSource);
93
RemoveUnnecessarySuppressionExclusions = options.
GetOption
(CodeStyleOptions2.RemoveUnnecessarySuppressionExclusions, fallbackOptions.RemoveUnnecessarySuppressionExclusions);
VisualBasicIdeCodeStyleOptions.cs (5)
42
PreferredModifierOrder = options.
GetOption
(VisualBasicCodeStyleOptions.PreferredModifierOrder, fallbackOptions.PreferredModifierOrder);
43
PreferIsNotExpression = options.
GetOption
(VisualBasicCodeStyleOptions.PreferIsNotExpression, fallbackOptions.PreferIsNotExpression);
44
PreferSimplifiedObjectCreation = options.
GetOption
(VisualBasicCodeStyleOptions.PreferSimplifiedObjectCreation, fallbackOptions.PreferSimplifiedObjectCreation);
45
UnusedValueExpressionStatement = options.
GetOption
(VisualBasicCodeStyleOptions.UnusedValueExpressionStatement, fallbackOptions.UnusedValueExpressionStatement);
46
UnusedValueAssignment = options.
GetOption
(VisualBasicCodeStyleOptions.UnusedValueAssignment, fallbackOptions.UnusedValueAssignment);
Microsoft.CodeAnalysis.CSharp.CodeStyle (86)
CSharpAnalyzerOptionsProvider.cs (1)
105
=> _options.
GetOption
(option, defaultValue);
CSharpCodeGenerationOptions.cs (10)
54
PreferExpressionBodiedMethods = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedMethods, fallbackOptions.PreferExpressionBodiedMethods);
55
PreferExpressionBodiedAccessors = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedAccessors, fallbackOptions.PreferExpressionBodiedAccessors);
56
PreferExpressionBodiedProperties = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedProperties, fallbackOptions.PreferExpressionBodiedProperties);
57
PreferExpressionBodiedIndexers = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedIndexers, fallbackOptions.PreferExpressionBodiedIndexers);
58
PreferExpressionBodiedConstructors = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedConstructors, fallbackOptions.PreferExpressionBodiedConstructors);
59
PreferExpressionBodiedOperators = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedOperators, fallbackOptions.PreferExpressionBodiedOperators);
60
PreferExpressionBodiedLocalFunctions = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedLocalFunctions, fallbackOptions.PreferExpressionBodiedLocalFunctions);
61
PreferExpressionBodiedLambdas = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedLambdas, fallbackOptions.PreferExpressionBodiedLambdas);
62
PreferStaticLocalFunction = options.
GetOption
(CSharpCodeStyleOptions.PreferStaticLocalFunction, fallbackOptions.PreferStaticLocalFunction);
63
NamespaceDeclarations = options.
GetOption
(CSharpCodeStyleOptions.NamespaceDeclarations, fallbackOptions.NamespaceDeclarations);
CSharpIdeCodeStyleOptions.cs (29)
88
ImplicitObjectCreationWhenTypeIsApparent = options.
GetOption
(CSharpCodeStyleOptions.ImplicitObjectCreationWhenTypeIsApparent, fallbackOptions.ImplicitObjectCreationWhenTypeIsApparent);
89
PreferNullCheckOverTypeCheck = options.
GetOption
(CSharpCodeStyleOptions.PreferNullCheckOverTypeCheck, fallbackOptions.PreferNullCheckOverTypeCheck);
90
AllowBlankLinesBetweenConsecutiveBraces = options.
GetOption
(CSharpCodeStyleOptions.AllowBlankLinesBetweenConsecutiveBraces, fallbackOptions.AllowBlankLinesBetweenConsecutiveBraces);
91
AllowBlankLineAfterColonInConstructorInitializer = options.
GetOption
(CSharpCodeStyleOptions.AllowBlankLineAfterColonInConstructorInitializer, fallbackOptions.AllowBlankLineAfterColonInConstructorInitializer);
92
AllowBlankLineAfterTokenInConditionalExpression = options.
GetOption
(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInConditionalExpression, fallbackOptions.AllowBlankLineAfterTokenInConditionalExpression);
93
AllowBlankLineAfterTokenInArrowExpressionClause = options.
GetOption
(CSharpCodeStyleOptions.AllowBlankLineAfterTokenInArrowExpressionClause, fallbackOptions.AllowBlankLineAfterTokenInArrowExpressionClause);
94
PreferConditionalDelegateCall = options.
GetOption
(CSharpCodeStyleOptions.PreferConditionalDelegateCall, fallbackOptions.PreferConditionalDelegateCall);
95
PreferSwitchExpression = options.
GetOption
(CSharpCodeStyleOptions.PreferSwitchExpression, fallbackOptions.PreferSwitchExpression);
96
PreferPatternMatching = options.
GetOption
(CSharpCodeStyleOptions.PreferPatternMatching, fallbackOptions.PreferPatternMatching);
97
PreferPatternMatchingOverAsWithNullCheck = options.
GetOption
(CSharpCodeStyleOptions.PreferPatternMatchingOverAsWithNullCheck, fallbackOptions.PreferPatternMatchingOverAsWithNullCheck);
98
PreferPatternMatchingOverIsWithCastCheck = options.
GetOption
(CSharpCodeStyleOptions.PreferPatternMatchingOverIsWithCastCheck, fallbackOptions.PreferPatternMatchingOverIsWithCastCheck);
99
PreferNotPattern = options.
GetOption
(CSharpCodeStyleOptions.PreferNotPattern, fallbackOptions.PreferNotPattern);
100
PreferExtendedPropertyPattern = options.
GetOption
(CSharpCodeStyleOptions.PreferExtendedPropertyPattern, fallbackOptions.PreferExtendedPropertyPattern);
101
PreferInlinedVariableDeclaration = options.
GetOption
(CSharpCodeStyleOptions.PreferInlinedVariableDeclaration, fallbackOptions.PreferInlinedVariableDeclaration);
102
PreferDeconstructedVariableDeclaration = options.
GetOption
(CSharpCodeStyleOptions.PreferDeconstructedVariableDeclaration, fallbackOptions.PreferDeconstructedVariableDeclaration);
103
PreferIndexOperator = options.
GetOption
(CSharpCodeStyleOptions.PreferIndexOperator, fallbackOptions.PreferIndexOperator);
104
PreferRangeOperator = options.
GetOption
(CSharpCodeStyleOptions.PreferRangeOperator, fallbackOptions.PreferRangeOperator);
105
PreferUtf8StringLiterals = options.
GetOption
(CSharpCodeStyleOptions.PreferUtf8StringLiterals, fallbackOptions.PreferUtf8StringLiterals);
106
PreferredModifierOrder = options.
GetOption
(CSharpCodeStyleOptions.PreferredModifierOrder, fallbackOptions.PreferredModifierOrder);
107
PreferSimpleUsingStatement = options.
GetOption
(CSharpCodeStyleOptions.PreferSimpleUsingStatement, fallbackOptions.PreferSimpleUsingStatement);
108
PreferLocalOverAnonymousFunction = options.
GetOption
(CSharpCodeStyleOptions.PreferLocalOverAnonymousFunction, fallbackOptions.PreferLocalOverAnonymousFunction);
109
PreferTupleSwap = options.
GetOption
(CSharpCodeStyleOptions.PreferTupleSwap, fallbackOptions.PreferTupleSwap);
110
UnusedValueExpressionStatement = options.
GetOption
(CSharpCodeStyleOptions.UnusedValueExpressionStatement, fallbackOptions.UnusedValueExpressionStatement);
111
UnusedValueAssignment = options.
GetOption
(CSharpCodeStyleOptions.UnusedValueAssignment, fallbackOptions.UnusedValueAssignment);
112
PreferMethodGroupConversion = options.
GetOption
(CSharpCodeStyleOptions.PreferMethodGroupConversion, fallbackOptions.PreferMethodGroupConversion);
113
PreferExpressionBodiedLambdas = options.
GetOption
(CSharpCodeStyleOptions.PreferExpressionBodiedLambdas, fallbackOptions.PreferExpressionBodiedLambdas);
114
PreferReadOnlyStruct = options.
GetOption
(CSharpCodeStyleOptions.PreferReadOnlyStruct, fallbackOptions.PreferReadOnlyStruct);
115
PreferReadOnlyStructMember = options.
GetOption
(CSharpCodeStyleOptions.PreferReadOnlyStructMember, fallbackOptions.PreferReadOnlyStructMember);
116
PreferStaticLocalFunction = options.
GetOption
(CSharpCodeStyleOptions.PreferStaticLocalFunction, fallbackOptions.PreferStaticLocalFunction);
CSharpSimplifierOptions.cs (7)
39
VarForBuiltInTypes = options.
GetOption
(CSharpCodeStyleOptions.VarForBuiltInTypes, fallbackOptions.VarForBuiltInTypes);
40
VarWhenTypeIsApparent = options.
GetOption
(CSharpCodeStyleOptions.VarWhenTypeIsApparent, fallbackOptions.VarWhenTypeIsApparent);
41
VarElsewhere = options.
GetOption
(CSharpCodeStyleOptions.VarElsewhere, fallbackOptions.VarElsewhere);
42
PreferSimpleDefaultExpression = options.
GetOption
(CSharpCodeStyleOptions.PreferSimpleDefaultExpression, fallbackOptions.PreferSimpleDefaultExpression);
43
AllowEmbeddedStatementsOnSameLine = options.
GetOption
(CSharpCodeStyleOptions.AllowEmbeddedStatementsOnSameLine, fallbackOptions.AllowEmbeddedStatementsOnSameLine);
44
PreferBraces = options.
GetOption
(CSharpCodeStyleOptions.PreferBraces, fallbackOptions.PreferBraces);
45
PreferThrowExpression = options.
GetOption
(CSharpCodeStyleOptions.PreferThrowExpression, fallbackOptions.PreferThrowExpression);
CSharpSyntaxFormattingOptions.cs (39)
73
(options.
GetOption
(CSharpFormattingOptions2.SpacesIgnoreAroundVariableDeclaration, fallbackOptions.Spacing.HasFlag(SpacePlacement.IgnoreAroundVariableDeclaration)) ? SpacePlacement.IgnoreAroundVariableDeclaration : 0) |
74
(options.
GetOption
(CSharpFormattingOptions2.SpacingAfterMethodDeclarationName, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterMethodDeclarationName)) ? SpacePlacement.AfterMethodDeclarationName : 0) |
75
(options.
GetOption
(CSharpFormattingOptions2.SpaceBetweenEmptyMethodDeclarationParentheses, fallbackOptions.Spacing.HasFlag(SpacePlacement.BetweenEmptyMethodDeclarationParentheses)) ? SpacePlacement.BetweenEmptyMethodDeclarationParentheses : 0) |
76
(options.
GetOption
(CSharpFormattingOptions2.SpaceWithinMethodDeclarationParenthesis, fallbackOptions.Spacing.HasFlag(SpacePlacement.WithinMethodDeclarationParenthesis)) ? SpacePlacement.WithinMethodDeclarationParenthesis : 0) |
77
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterMethodCallName, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterMethodCallName)) ? SpacePlacement.AfterMethodCallName : 0) |
78
(options.
GetOption
(CSharpFormattingOptions2.SpaceBetweenEmptyMethodCallParentheses, fallbackOptions.Spacing.HasFlag(SpacePlacement.BetweenEmptyMethodCallParentheses)) ? SpacePlacement.BetweenEmptyMethodCallParentheses : 0) |
79
(options.
GetOption
(CSharpFormattingOptions2.SpaceWithinMethodCallParentheses, fallbackOptions.Spacing.HasFlag(SpacePlacement.WithinMethodCallParentheses)) ? SpacePlacement.WithinMethodCallParentheses : 0) |
80
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterControlFlowStatementKeyword, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterControlFlowStatementKeyword)) ? SpacePlacement.AfterControlFlowStatementKeyword : 0) |
81
options.
GetOption
(CSharpFormattingOptions2.SpaceBetweenParentheses, fallbackOptions.Spacing.ToSpacingWithinParentheses()).ToSpacePlacement() |
82
(options.
GetOption
(CSharpFormattingOptions2.SpaceBeforeSemicolonsInForStatement, fallbackOptions.Spacing.HasFlag(SpacePlacement.BeforeSemicolonsInForStatement)) ? SpacePlacement.BeforeSemicolonsInForStatement : 0) |
83
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterSemicolonsInForStatement, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterSemicolonsInForStatement)) ? SpacePlacement.AfterSemicolonsInForStatement : 0) |
84
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterCast, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterCast)) ? SpacePlacement.AfterCast : 0) |
85
(options.
GetOption
(CSharpFormattingOptions2.SpaceBeforeOpenSquareBracket, fallbackOptions.Spacing.HasFlag(SpacePlacement.BeforeOpenSquareBracket)) ? SpacePlacement.BeforeOpenSquareBracket : 0) |
86
(options.
GetOption
(CSharpFormattingOptions2.SpaceBetweenEmptySquareBrackets, fallbackOptions.Spacing.HasFlag(SpacePlacement.BetweenEmptySquareBrackets)) ? SpacePlacement.BetweenEmptySquareBrackets : 0) |
87
(options.
GetOption
(CSharpFormattingOptions2.SpaceWithinSquareBrackets, fallbackOptions.Spacing.HasFlag(SpacePlacement.WithinSquareBrackets)) ? SpacePlacement.WithinSquareBrackets : 0) |
88
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterColonInBaseTypeDeclaration, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterColonInBaseTypeDeclaration)) ? SpacePlacement.AfterColonInBaseTypeDeclaration : 0) |
89
(options.
GetOption
(CSharpFormattingOptions2.SpaceBeforeColonInBaseTypeDeclaration, fallbackOptions.Spacing.HasFlag(SpacePlacement.BeforeColonInBaseTypeDeclaration)) ? SpacePlacement.BeforeColonInBaseTypeDeclaration : 0) |
90
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterComma, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterComma)) ? SpacePlacement.AfterComma : 0) |
91
(options.
GetOption
(CSharpFormattingOptions2.SpaceBeforeComma, fallbackOptions.Spacing.HasFlag(SpacePlacement.BeforeComma)) ? SpacePlacement.BeforeComma : 0) |
92
(options.
GetOption
(CSharpFormattingOptions2.SpaceAfterDot, fallbackOptions.Spacing.HasFlag(SpacePlacement.AfterDot)) ? SpacePlacement.AfterDot : 0) |
93
(options.
GetOption
(CSharpFormattingOptions2.SpaceBeforeDot, fallbackOptions.Spacing.HasFlag(SpacePlacement.BeforeDot)) ? SpacePlacement.BeforeDot : 0);
94
SpacingAroundBinaryOperator = options.
GetOption
(CSharpFormattingOptions2.SpacingAroundBinaryOperator, fallbackOptions.SpacingAroundBinaryOperator);
96
(options.
GetOption
(CSharpFormattingOptions2.NewLineForMembersInObjectInit, fallbackOptions.NewLines.HasFlag(NewLinePlacement.BeforeMembersInObjectInitializers)) ? NewLinePlacement.BeforeMembersInObjectInitializers : 0) |
97
(options.
GetOption
(CSharpFormattingOptions2.NewLineForMembersInAnonymousTypes, fallbackOptions.NewLines.HasFlag(NewLinePlacement.BeforeMembersInAnonymousTypes)) ? NewLinePlacement.BeforeMembersInAnonymousTypes : 0) |
98
(options.
GetOption
(CSharpFormattingOptions2.NewLineForElse, fallbackOptions.NewLines.HasFlag(NewLinePlacement.BeforeElse)) ? NewLinePlacement.BeforeElse : 0) |
99
(options.
GetOption
(CSharpFormattingOptions2.NewLineForCatch, fallbackOptions.NewLines.HasFlag(NewLinePlacement.BeforeCatch)) ? NewLinePlacement.BeforeCatch : 0) |
100
(options.
GetOption
(CSharpFormattingOptions2.NewLineForFinally, fallbackOptions.NewLines.HasFlag(NewLinePlacement.BeforeFinally)) ? NewLinePlacement.BeforeFinally : 0) |
101
options.
GetOption
(CSharpFormattingOptions2.NewLineBeforeOpenBrace, fallbackOptions.NewLines.ToNewLineBeforeOpenBracePlacement()).ToNewLinePlacement() |
102
(options.
GetOption
(CSharpFormattingOptions2.NewLineForClausesInQuery, fallbackOptions.NewLines.HasFlag(NewLinePlacement.BetweenQueryExpressionClauses)) ? NewLinePlacement.BetweenQueryExpressionClauses : 0);
103
LabelPositioning = options.
GetOption
(CSharpFormattingOptions2.LabelPositioning, fallbackOptions.LabelPositioning);
105
(options.
GetOption
(CSharpFormattingOptions2.IndentBraces, fallbackOptions.Indentation.HasFlag(IndentationPlacement.Braces)) ? IndentationPlacement.Braces : 0) |
106
(options.
GetOption
(CSharpFormattingOptions2.IndentBlock, fallbackOptions.Indentation.HasFlag(IndentationPlacement.BlockContents)) ? IndentationPlacement.BlockContents : 0) |
107
(options.
GetOption
(CSharpFormattingOptions2.IndentSwitchCaseSection, fallbackOptions.Indentation.HasFlag(IndentationPlacement.SwitchCaseContents)) ? IndentationPlacement.SwitchCaseContents : 0) |
108
(options.
GetOption
(CSharpFormattingOptions2.IndentSwitchCaseSectionWhenBlock, fallbackOptions.Indentation.HasFlag(IndentationPlacement.SwitchCaseContentsWhenBlock)) ? IndentationPlacement.SwitchCaseContentsWhenBlock : 0) |
109
(options.
GetOption
(CSharpFormattingOptions2.IndentSwitchSection, fallbackOptions.Indentation.HasFlag(IndentationPlacement.SwitchSection)) ? IndentationPlacement.SwitchSection : 0);
110
WrappingKeepStatementsOnSingleLine = options.
GetOption
(CSharpFormattingOptions2.WrappingKeepStatementsOnSingleLine, fallbackOptions.WrappingKeepStatementsOnSingleLine);
111
WrappingPreserveSingleLine = options.
GetOption
(CSharpFormattingOptions2.WrappingPreserveSingleLine, fallbackOptions.WrappingPreserveSingleLine);
112
NamespaceDeclarations = options.
GetOption
(CSharpCodeStyleOptions.NamespaceDeclarations, fallbackOptions.NamespaceDeclarations);
113
PreferTopLevelStatements = options.
GetOption
(CSharpCodeStyleOptions.PreferTopLevelStatements, fallbackOptions.PreferTopLevelStatements);
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (2)
CSharpAddImportsService.cs (1)
37
=> configOptions.
GetOption
(CSharpCodeStyleOptions.PreferredUsingDirectivePlacement, fallbackValue);
CSharpCodeFixOptionsProvider.cs (1)
81
=> _options.
GetOption
(option, defaultValue);
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (1)
VisualBasicAnalyzerOptionsProvider.vb (1)
70
Return _options.
GetOption
([option], defaultValue)