1 write to TextSpan
Microsoft.CodeAnalysis.Workspaces (1)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Rules\Operations\SuppressOperation.cs (1)
26
this.
TextSpan
= textSpan;
19 references to TextSpan
Microsoft.CodeAnalysis.Workspaces (19)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.cs (13)
267
if (operation.
TextSpan
.IsEmpty)
303
if (operation.
TextSpan
.IsEmpty)
310
if (!option.IsMaskOn(SuppressOption.NoSpacing) || _suppressSpacingMap.Contains(operation.
TextSpan
))
321
var data = new SuppressSpacingData(operation.
TextSpan
);
323
_suppressSpacingMap.Add(operation.
TextSpan
);
330
if (operation.
TextSpan
.IsEmpty)
337
if (!option.IsOn(SuppressOption.DisableFormatting) || _suppressFormattingMap.Contains(operation.
TextSpan
))
342
var data = new SuppressSpacingData(operation.
TextSpan
);
344
_suppressFormattingMap.Add(operation.
TextSpan
);
351
if (operation.
TextSpan
.IsEmpty)
357
if (!option.IsMaskOn(SuppressOption.NoWrapping) || _suppressWrappingMap.Contains(operation.
TextSpan
))
371
var data = new SuppressWrappingData(operation.
TextSpan
, ignoreElastic: ignoreElastic);
373
_suppressWrappingMap.Add(operation.
TextSpan
);
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Formatting\Context\FormattingContext.InitialContextFinder.cs (3)
59
o => o.
TextSpan
.Contains(startToken.SpanStart) ||
60
o.
TextSpan
.Contains(endToken.SpanStart)));
171
if (!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)
20
return o1.
TextSpan
.Start - o2.
TextSpan
.Start;