2 overrides of SourceSpan
Microsoft.CodeAnalysis (2)
626 references to SourceSpan
AnalyzerRunner (2)
ConfigurationSchemaGenerator (1)
ILLink.CodeFixProvider (2)
Microsoft.Analyzers.Extra.Tests (6)
Microsoft.Analyzers.Local.Tests (8)
Microsoft.AspNetCore.Analyzer.Testing (2)
Microsoft.AspNetCore.App.Analyzers (6)
Microsoft.AspNetCore.App.CodeFixes (15)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (3)
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (3)
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.CodeAnalysis (10)
Microsoft.CodeAnalysis.CodeStyle (17)
Microsoft.CodeAnalysis.CodeStyle.Fixes (48)
Microsoft.CodeAnalysis.CSharp (36)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (33)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Features (41)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (4)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (18)
Diagnostics\LocationsTests.cs (10)
400Assert.InRange(diag.Location.SourceSpan.End, diag.Location.SourceSpan.Start, syntaxTree.GetText().Length);
465Assert.InRange(diag.Location.SourceSpan.Start, 0, syntaxTree.GetText().Length);
466Assert.InRange(diag.Location.SourceSpan.End, 0, syntaxTree.GetText().Length);
567Assert.Equal(5, diagnostics[0].Location.SourceSpan.Start);
568Assert.Equal(0, diagnostics[0].Location.SourceSpan.Length);
570Assert.True(treeSpan.Contains(diagnostics[0].Location.SourceSpan));
595Assert.Equal(0, diagnostics[0].Location.SourceSpan.Start);
596Assert.Equal(0, diagnostics[0].Location.SourceSpan.Length);
598Assert.True(treeSpan.Contains(diagnostics[0].Location.SourceSpan));
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.EditorFeatures (1)
Microsoft.CodeAnalysis.EditorFeatures.Wpf (1)
Microsoft.CodeAnalysis.EditorFeatures2.UnitTests (3)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (99)
Microsoft.CodeAnalysis.Features.Test.Utilities (1)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (7)
Microsoft.CodeAnalysis.Test.Utilities (4)
Microsoft.CodeAnalysis.VisualBasic (27)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (34)
Compilation\SemanticModelGetDeclaredSymbolAPITests.vb (34)
1258paramSymbol1.Locations.Single().SourceSpan.Start)
1266paramSymbol2.Locations.Single().SourceSpan.Start - "Optional ".Length)
1274paramSymbol3.Locations.Single().SourceSpan.Start)
1282paramSymbol4.Locations.Single().SourceSpan.Start)
1290paramSymbol5.Locations.Single().SourceSpan.Start)
1369Assert.Equal(syntax.SpanStart + 6, paramSymbol1.Locations.Single().SourceSpan.Start)
1374Assert.Equal(syntax.SpanStart + 6, paramSymbol2.Locations.Single().SourceSpan.Start)
1379Assert.Equal(syntax.SpanStart, paramSymbol3.Locations.Single().SourceSpan.Start)
1384Assert.Equal(syntax.SpanStart + 6, paramSymbol4.Locations.Single().SourceSpan.Start)
1849Assert.True(syntax.SpanStart = tpSymbol1.Locations.Item(0).SourceSpan.Start OrElse
1850syntax.SpanStart = tpSymbol1.Locations.Item(1).SourceSpan.Start,
1858Assert.True(syntax.SpanStart = tpSymbol2.Locations.Item(0).SourceSpan.Start OrElse
1859syntax.SpanStart = tpSymbol2.Locations.Item(1).SourceSpan.Start,
1867Assert.True(syntax.SpanStart = tpSymbol3.Locations.Item(0).SourceSpan.Start OrElse
1868syntax.SpanStart = tpSymbol3.Locations.Item(1).SourceSpan.Start,
1876Assert.True(syntax.SpanStart = tpSymbol4.Locations.Item(0).SourceSpan.Start OrElse
1877syntax.SpanStart = tpSymbol4.Locations.Item(1).SourceSpan.Start,
1885Assert.Equal(syntax.SpanStart, tpSymbol5.Locations.Single().SourceSpan.Start)
2022Assert.True(syntax.SpanStart = varSymbol1.Locations.Item(0).SourceSpan.Start OrElse
2023syntax.SpanStart = varSymbol1.Locations.Item(1).SourceSpan.Start,
2032Assert.True(syntax.SpanStart = varSymbol2.Locations.Item(0).SourceSpan.Start OrElse
2033syntax.SpanStart = varSymbol2.Locations.Item(1).SourceSpan.Start,
2042Assert.True(syntax.SpanStart = varSymbol3.Locations.Item(0).SourceSpan.Start OrElse
2043syntax.SpanStart = varSymbol3.Locations.Item(1).SourceSpan.Start,
2052Assert.True(syntax.SpanStart = varSymbol4.Locations.Item(0).SourceSpan.Start OrElse
2053syntax.SpanStart = varSymbol4.Locations.Item(1).SourceSpan.Start,
2062Assert.True(syntax.SpanStart = varSymbol5.Locations.Item(0).SourceSpan.Start OrElse
2063syntax.SpanStart = varSymbol5.Locations.Item(1).SourceSpan.Start,
2072Assert.True(syntax.SpanStart = varSymbol6.Locations.Item(0).SourceSpan.Start OrElse
2073syntax.SpanStart = varSymbol6.Locations.Item(1).SourceSpan.Start,
2083Assert.True(syntax.SpanStart = varSymbol7.Locations.Item(0).SourceSpan.Start OrElse
2084syntax.SpanStart = varSymbol7.Locations.Item(1).SourceSpan.Start,
2093Assert.True(syntax.SpanStart = varSymbol8.Locations.Item(0).SourceSpan.Start OrElse
2094syntax.SpanStart = varSymbol8.Locations.Item(1).SourceSpan.Start,
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (17)
SymbolsTests\Source\SourceSymbolTests.vb (15)
341Assert.Equal("C", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
343Assert.Equal("C", locs(1).SourceTree.GetText().ToString(locs(1).SourceSpan))
350Assert.Equal("D", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
352Assert.Equal("D", locs(1).SourceTree.GetText().ToString(locs(1).SourceSpan))
359Assert.Equal("T", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
361Assert.Equal("T", locs(1).SourceTree.GetText().ToString(locs(1).SourceSpan))
367Assert.Equal("m1", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
373Assert.Equal("x", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
379Assert.Equal("v1$", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
386Assert.Equal("N1", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
388Assert.Equal("N1", locs(1).SourceTree.GetText().ToString(locs(1).SourceSpan))
395Assert.Equal("N2", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
397Assert.Equal("N2", locs(1).SourceTree.GetText().ToString(locs(1).SourceSpan))
404Assert.Equal("N3", locs(0).SourceTree.GetText().ToString(locs(0).SourceSpan))
406Assert.Equal("N3", locs(1).SourceTree.GetText().ToString(locs(1).SourceSpan))
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (13)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces (45)
Microsoft.CodeAnalysis.Workspaces.UnitTests (7)
Microsoft.Gen.ComplianceReports.Unit.Tests (10)
Microsoft.Gen.ContextualOptions.Unit.Tests (10)
Microsoft.Gen.Logging.Unit.Tests (10)
Microsoft.Gen.Metrics.Unit.Tests (10)
Microsoft.Gen.MetricsReports.Unit.Tests (10)
Microsoft.Interop.ComInterfaceGenerator (5)
Microsoft.Interop.LibraryImportGenerator (6)
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.ML.InternalCodeAnalyzer (3)
Microsoft.VisualStudio.LanguageServices (5)
Mvc.Api.Analyzers.Test (4)
System.Text.Json.SourceGeneration (1)
System.Text.RegularExpressions.Generator (1)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)