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