7 references to IsOn
Microsoft.CodeAnalysis.CodeStyle (7)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (6)
285
if (operation.ContainsElasticTrivia(TokenStream) && !operation.Option.
IsOn
(SuppressOption.IgnoreElasticWrapping))
315
if (!(option.
IsOn
(SuppressOption.NoSpacingIfOnSingleLine) && twoTokensOnSameLine) &&
316
!(option.
IsOn
(SuppressOption.NoSpacingIfOnMultipleLine) && !twoTokensOnSameLine))
337
if (!option.
IsOn
(SuppressOption.DisableFormatting) || _suppressFormattingMap.Contains(operation.TextSpan))
362
if (!(option.
IsOn
(SuppressOption.NoWrappingIfOnSingleLine) && twoTokensOnSameLine) &&
363
!(option.
IsOn
(SuppressOption.NoWrappingIfOnMultipleLine) && !twoTokensOnSameLine))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (1)
174
if (operation.ContainsElasticTrivia(tuple.tokenStream) && !operation.Option.
IsOn
(SuppressOption.IgnoreElasticWrapping))