30 references to SpanMarkerType
Microsoft.CodeAnalysis.Workspaces (30)
CodeCleanup\AbstractCodeCleanerService.cs (30)
191
if (nextTokenMarker.OppositeMarkerType ==
SpanMarkerType
.BeginningOfFile)
203
if (previousTokenMarker.OppositeMarkerType ==
SpanMarkerType
.EndOfFile)
217
if (hasMultiplePreviousToken && previousTokenMarker.Type ==
SpanMarkerType
.BeginningOfFile)
224
if (hasMultipleNextToken && nextTokenMarker.Type ==
SpanMarkerType
.EndOfFile)
238
private static int GetPreviousTokenStartPosition(
SpanMarkerType
spanMarkerType, SyntaxToken previousToken)
240
Contract.ThrowIfTrue(spanMarkerType ==
SpanMarkerType
.EndOfFile);
243
if (spanMarkerType ==
SpanMarkerType
.Normal)
254
private static int GetNextTokenEndPosition(
SpanMarkerType
spanMarkerType, SyntaxToken nextToken)
256
Contract.ThrowIfTrue(spanMarkerType ==
SpanMarkerType
.BeginningOfFile);
259
if (spanMarkerType ==
SpanMarkerType
.Normal)
287
var startMarker = new SpanMarker(type: (previousToken.RawKind == 0) ?
SpanMarkerType
.BeginningOfFile :
SpanMarkerType
.Normal,
288
oppositeMarkerType: (nextToken.RawKind == 0) ?
SpanMarkerType
.EndOfFile :
SpanMarkerType
.Normal);
290
var endMarker = new SpanMarker(type: (nextToken.RawKind == 0) ?
SpanMarkerType
.EndOfFile :
SpanMarkerType
.Normal,
291
oppositeMarkerType: (previousToken.RawKind == 0) ?
SpanMarkerType
.BeginningOfFile :
SpanMarkerType
.Normal);
442
return startMarker.Type ==
SpanMarkerType
.BeginningOfFile && endMarker.Type ==
SpanMarkerType
.EndOfFile;
642
public
SpanMarkerType
Type { get; }
647
public
SpanMarkerType
OppositeMarkerType { get; }
653
private SpanMarker(
SpanMarkerType
type,
SpanMarkerType
oppositeMarkerType, SyntaxAnnotation annotation)
660
public SpanMarker(
SpanMarkerType
type =
SpanMarkerType
.Normal,
SpanMarkerType
oppositeMarkerType =
SpanMarkerType
.Normal)
671
var types = annotation.Data.Split(s_separators).Select(s => (
SpanMarkerType
)Enum.Parse(typeof(
SpanMarkerType
), s)).ToArray();