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