32 references to AllowEmbeddedStatementsOnSameLine
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (13)
CodeActions\InitializeParameter\AddParameterCheckTests.cs (13)
2396
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, false },
2430
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, false },
2466
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, false },
2499
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
2532
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
2568
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
2606
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, false },
2646
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, false },
2688
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, false },
2727
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
2766
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
2808
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
2845
{ CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true },
Microsoft.CodeAnalysis.CSharp.Features (2)
src\Analyzers\CSharp\Analyzers\CodeStyle\CSharpAnalyzerOptionsProvider.cs (1)
27
public CodeStyleOption2<bool> AllowEmbeddedStatementsOnSameLine => GetOption(CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
);
src\Analyzers\CSharp\Analyzers\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementDiagnosticAnalyzer.cs (1)
21
CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
,
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
src\Analyzers\CSharp\Tests\NewLines\EmbeddedStatementPlacement\EmbeddedStatementPlacementTests.cs (12)
35
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
61
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
77
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, true, NotificationOption2.Suggestion } }
96
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
126
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
154
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
180
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
208
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
235
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
268
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
297
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
328
Options = { { CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CodeStyleOption2.FalseWithSuggestionEnforcement } }
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Simplification\CSharpSimplifierOptions.cs (1)
46
AllowEmbeddedStatementsOnSameLine = options.GetOption(CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
);
Microsoft.VisualStudio.LanguageServices.CSharp (4)
EditorConfigSettings\DataProvider\CodeStyle\CSharpCodeStyleSettingsProvider.cs (1)
162
yield return CodeStyleSetting.Create(CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CSharpVSResources.Allow_embedded_statements_on_same_line, options, updater);
Options\AutomationObject\AutomationObject.Style.cs (2)
404
get { return GetXmlOption(CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
); }
405
set { SetXmlOption(CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, value); }
Options\Formatting\StyleViewModel.cs (1)
2334
CodeStyleItems.Add(new BooleanCodeStyleOptionViewModel(CSharpCodeStyleOptions.
AllowEmbeddedStatementsOnSameLine
, CSharpVSResources.Allow_embedded_statements_on_same_line, s_allow_embedded_statements_on_same_line_true, s_allow_embedded_statements_on_same_line_false, this, optionStore, newLinePreferencesGroupTitle));