128 references to Span
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (4)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
185end = trivia.Span.End;
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaExtensions.cs (1)
10=> trivia.Span.Length;
Microsoft.CodeAnalysis.CSharp (1)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.Features (7)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (46)
LexicalAndXml\LexicalTests.cs (38)
3879Assert.True(trivia.Span.Length == 8);
3958Assert.Equal(22, trivia.Span.Length);
3971Assert.Equal(16, trivia.Span.Length);
3980Assert.Equal(16, trivia.Span.Start);
3981Assert.Equal(2, trivia.Span.Length);
3985Assert.Equal(18, trivia.Span.Start);
3986Assert.Equal(13, trivia.Span.Length);
3995Assert.Equal(16, trivia.Span.Length);
4004Assert.Equal(2, trivia.Span.Length);
4008Assert.Equal(34, trivia.Span.Length);
4016Assert.Equal(16, trivia1.Span.Length);
4025Assert.Equal(16, trivia2.Span.Start);
4026Assert.Equal(2, trivia2.Span.Length);
4030Assert.Equal(18, trivia3.Span.Start);
4031Assert.Equal(15, trivia3.Span.Length);
4035Assert.Equal(33, trivia4.Span.Start);
4036Assert.Equal(24, trivia4.Span.Length);
4049Assert.Equal(16, trivia1.Span.Length);
4058Assert.Equal(16, trivia2.Span.Start);
4059Assert.Equal(2, trivia2.Span.Length);
4063Assert.Equal(18, trivia3.Span.Start);
4064Assert.Equal(24, trivia3.Span.Length);
4097Assert.Equal(22, trivia.Span.Length);
4105Assert.Equal(16, trivia.Span.Length);
4109Assert.Equal(19, trivia.Span.Start);
4110Assert.Equal(2, trivia.Span.Length);
4114Assert.Equal(21, trivia.Span.Start);
4115Assert.Equal(13, trivia.Span.Length);
4124Assert.Equal(16, trivia.Span.Length);
4128Assert.Equal(2, trivia.Span.Length);
4132Assert.Equal(34, trivia.Span.Length);
4140Assert.Equal(16, trivia1.Span.Length);
4144Assert.Equal(19, trivia2.Span.Start);
4145Assert.Equal(2, trivia2.Span.Length);
4149Assert.Equal(21, trivia3.Span.Start);
4150Assert.Equal(15, trivia3.Span.Length);
4154Assert.Equal(36, trivia4.Span.Start);
4155Assert.Equal(24, trivia4.Span.Length);
Microsoft.CodeAnalysis.CSharp.Workspaces (8)
Microsoft.CodeAnalysis.EditorFeatures (2)
Microsoft.CodeAnalysis.Features (4)
src\Analyzers\Core\Analyzers\RemoveUnnecessaryImports\AbstractRemoveUnnecessaryImportsDiagnosticAnalyzer.cs (1)
185end = trivia.Span.End;
Microsoft.CodeAnalysis.UnitTests (12)
CommonSyntaxTests.cs (12)
119var correctSpan = csharpTrivia.Span;
124Assert.Equal(correctSpan, commonTrivia.Span);
129Assert.Equal(correctSpan, commonTrivia2.Span);
135Assert.Equal(correctSpan, commonTrivia3.Span);
138Assert.Equal(correctSpan, csharpTrivia2.Span);
143Assert.Equal(correctSpan, csharpTrivia3.Span);
156var correctSpan = vbTrivia.Span;
161Assert.Equal(correctSpan, commonTrivia.Span);
166Assert.Equal(correctSpan, commonTrivia2.Span);
172Assert.Equal(correctSpan, commonTrivia3.Span);
175Assert.Equal(correctSpan, vbTrivia2.Span);
180Assert.Equal(correctSpan, vbTrivia3.Span);
Microsoft.CodeAnalysis.VisualBasic (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (2)
Microsoft.CodeAnalysis.VisualBasic.EditorFeatures (1)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (11)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (10)
Microsoft.CodeAnalysis.Workspaces (3)
src\Workspaces\SharedUtilitiesAndExtensions\Compiler\Core\Extensions\SyntaxTriviaExtensions.cs (1)
10=> trivia.Span.Length;