30 references to SpanMarkerType
Microsoft.CodeAnalysis.Workspaces (30)
CodeCleanup\AbstractCodeCleanerService.cs (30)
190
if (nextTokenMarker.OppositeMarkerType ==
SpanMarkerType
.BeginningOfFile)
202
if (previousTokenMarker.OppositeMarkerType ==
SpanMarkerType
.EndOfFile)
216
if (hasMultiplePreviousToken && previousTokenMarker.Type ==
SpanMarkerType
.BeginningOfFile)
223
if (hasMultipleNextToken && nextTokenMarker.Type ==
SpanMarkerType
.EndOfFile)
237
private static int GetPreviousTokenStartPosition(
SpanMarkerType
spanMarkerType, SyntaxToken previousToken)
239
Contract.ThrowIfTrue(spanMarkerType ==
SpanMarkerType
.EndOfFile);
242
if (spanMarkerType ==
SpanMarkerType
.Normal)
253
private static int GetNextTokenEndPosition(
SpanMarkerType
spanMarkerType, SyntaxToken nextToken)
255
Contract.ThrowIfTrue(spanMarkerType ==
SpanMarkerType
.BeginningOfFile);
258
if (spanMarkerType ==
SpanMarkerType
.Normal)
286
var startMarker = new SpanMarker(type: (previousToken.RawKind == 0) ?
SpanMarkerType
.BeginningOfFile :
SpanMarkerType
.Normal,
287
oppositeMarkerType: (nextToken.RawKind == 0) ?
SpanMarkerType
.EndOfFile :
SpanMarkerType
.Normal);
289
var endMarker = new SpanMarker(type: (nextToken.RawKind == 0) ?
SpanMarkerType
.EndOfFile :
SpanMarkerType
.Normal,
290
oppositeMarkerType: (previousToken.RawKind == 0) ?
SpanMarkerType
.BeginningOfFile :
SpanMarkerType
.Normal);
441
return startMarker.Type ==
SpanMarkerType
.BeginningOfFile && endMarker.Type ==
SpanMarkerType
.EndOfFile;
641
public
SpanMarkerType
Type { get; }
646
public
SpanMarkerType
OppositeMarkerType { get; }
652
private SpanMarker(
SpanMarkerType
type,
SpanMarkerType
oppositeMarkerType, SyntaxAnnotation annotation)
659
public SpanMarker(
SpanMarkerType
type =
SpanMarkerType
.Normal,
SpanMarkerType
oppositeMarkerType =
SpanMarkerType
.Normal)
670
var types = annotation.Data.Split(s_separators).Select(s => (
SpanMarkerType
)Enum.Parse(typeof(
SpanMarkerType
), s)).ToArray();