6 references to ForceLinesIfOnSingleLine
Microsoft.CodeAnalysis.Workspaces (6)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.cs (1)
403
if (pair.LineOperation.Option == AdjustNewLinesOption.
ForceLinesIfOnSingleLine
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Engine\AbstractFormatEngine.OperationApplier.cs (1)
148
Debug.Assert(operation.Option == AdjustNewLinesOption.
ForceLinesIfOnSingleLine
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\AdjustNewLinesOperation.cs (1)
18
Contract.ThrowIfFalse(option != AdjustNewLinesOption.
ForceLinesIfOnSingleLine
|| line > 0);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\FormattingOperations.cs (2)
17
private static readonly AdjustNewLinesOperation s_forceIfSameLine = new(1, AdjustNewLinesOption.
ForceLinesIfOnSingleLine
);
110
else if (option == AdjustNewLinesOption.
ForceLinesIfOnSingleLine
)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\TriviaEngine\AbstractTriviaFormatter.cs (1)
431
case AdjustNewLinesOption.
ForceLinesIfOnSingleLine
: