1 write to TextSpan
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\SuppressOperation.cs (1)
26this.TextSpan = textSpan;
19 references to TextSpan
Microsoft.CodeAnalysis.Workspaces (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (13)
267if (operation.TextSpan.IsEmpty) 303if (operation.TextSpan.IsEmpty) 310if (!option.IsMaskOn(SuppressOption.NoSpacing) || _suppressSpacingMap.Contains(operation.TextSpan)) 321var data = new SuppressSpacingData(operation.TextSpan); 323_suppressSpacingMap.Add(operation.TextSpan); 330if (operation.TextSpan.IsEmpty) 337if (!option.IsOn(SuppressOption.DisableFormatting) || _suppressFormattingMap.Contains(operation.TextSpan)) 342var data = new SuppressSpacingData(operation.TextSpan); 344_suppressFormattingMap.Add(operation.TextSpan); 351if (operation.TextSpan.IsEmpty) 357if (!option.IsMaskOn(SuppressOption.NoWrapping) || _suppressWrappingMap.Contains(operation.TextSpan)) 371var data = new SuppressWrappingData(operation.TextSpan, ignoreElastic: ignoreElastic); 373_suppressWrappingMap.Add(operation.TextSpan);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
59o => o.TextSpan.Contains(startToken.SpanStart) || 60o.TextSpan.Contains(endToken.SpanStart))); 171if (!operation.TextSpan.Contains(tuple.startPosition))
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\SuppressOperation.cs (1)
35=> $"Suppress {TextSpan} from '{StartToken}' to '{EndToken}' with '{Option}'";
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Utilities\CommonFormattingHelpers.cs (2)
20return o1.TextSpan.Start - o2.TextSpan.Start;