1 write to TextSpan
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\SuppressOperation.cs (1)
25this.TextSpan = textSpan;
21 references to TextSpan
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\CSharp\Formatting\Rules\WrappingFormattingRule.cs (2)
188if (operation.TextSpan.Start >= span.Start && operation.TextSpan.End <= span.End && operation.Option.HasFlag(SuppressOption.NoWrappingIfOnSingleLine))
Microsoft.CodeAnalysis.Workspaces (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (13)
266if (operation.TextSpan.IsEmpty) 302if (operation.TextSpan.IsEmpty) 309if (!option.IsMaskOn(SuppressOption.NoSpacing) || _suppressSpacingMap.Contains(operation.TextSpan)) 320var data = new SuppressSpacingData(operation.TextSpan); 322_suppressSpacingMap.Add(operation.TextSpan); 329if (operation.TextSpan.IsEmpty) 336if (!option.IsOn(SuppressOption.DisableFormatting) || _suppressFormattingMap.Contains(operation.TextSpan)) 341var data = new SuppressSpacingData(operation.TextSpan); 343_suppressFormattingMap.Add(operation.TextSpan); 350if (operation.TextSpan.IsEmpty) 356if (!option.IsMaskOn(SuppressOption.NoWrapping) || _suppressWrappingMap.Contains(operation.TextSpan)) 370var data = new SuppressWrappingData(operation.TextSpan, ignoreElastic: ignoreElastic); 372_suppressWrappingMap.Add(operation.TextSpan);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
58o => o.TextSpan.Contains(startToken.SpanStart) || 59o.TextSpan.Contains(endToken.SpanStart))); 170if (!operation.TextSpan.Contains(tuple.startPosition))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\SuppressOperation.cs (1)
34=> $"Suppress {TextSpan} from '{StartToken}' to '{EndToken}' with '{Option}'";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
19return o1.TextSpan.Start - o2.TextSpan.Start;