6 overrides of Location
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.ExpressionEvaluator.ExpressionCompiler (1)
618 references to Location
AnalyzerRunner (3)
ILLink.CodeFixProvider (1)
Microsoft.Analyzers.Extra.Tests (8)
Microsoft.Analyzers.Local.Tests (9)
Microsoft.AspNetCore.Analyzer.Testing (8)
Microsoft.AspNetCore.App.Analyzers.Test (51)
Microsoft.AspNetCore.App.CodeFixes (14)
Microsoft.AspNetCore.Components.Analyzers (1)
Microsoft.AspNetCore.Components.Analyzers.Tests (22)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
35AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMBaseClass"], diagnostic.Location);
40AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location);
45AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location);
50AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location);
55AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMParameter"], diagnostic.Location);
60AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMReturnType"], diagnostic.Location);
79AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location);
84AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject"], diagnostic.Location);
89AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location);
94AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject2"], diagnostic.Location);
99AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location);
Microsoft.AspNetCore.Components.SdkAnalyzers (1)
Microsoft.AspNetCore.Components.SdkAnalyzers.Tests (22)
ComponentInternalUsageDiagnosticsAnalyzerTest.cs (11)
35AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMBaseClass"], diagnostic.Location);
40AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location);
45AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location);
50AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location);
55AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMParameter"], diagnostic.Location);
60AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMReturnType"], diagnostic.Location);
79AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMField"], diagnostic.Location);
84AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject"], diagnostic.Location);
89AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMProperty"], diagnostic.Location);
94AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMNewObject2"], diagnostic.Location);
99AnalyzerAssert.DiagnosticLocation(source.MarkerLocations["MMInvocation"], diagnostic.Location);
Microsoft.AspNetCore.Http.RequestDelegateGenerator (1)
Microsoft.AspNetCore.Mvc.Api.Analyzers (2)
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (3)
Microsoft.CodeAnalysis (41)
Microsoft.CodeAnalysis.CodeStyle (4)
Microsoft.CodeAnalysis.CodeStyle.Fixes (46)
Microsoft.CodeAnalysis.CSharp (5)
Microsoft.CodeAnalysis.CSharp.CodeStyle (2)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (48)
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (2)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Features (52)
Microsoft.CodeAnalysis.CSharp.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (25)
Diagnostics\LocationsTests.cs (18)
314FileLinePositionSpan flps = diag.Location.GetLineSpan();
332flps = diag.Location.GetLineSpan();
352flps = diag.Location.GetLineSpan();
377FileLinePositionSpan flps = diag.Location.GetLineSpan();
400Assert.InRange(diag.Location.SourceSpan.End, diag.Location.SourceSpan.Start, syntaxTree.GetText().Length);
418var span = syntaxTree.GetDiagnostics().ElementAt(3).Location.GetLineSpan();
460expressionDiags.First().Location.GetLineSpan();
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));
572var lineSpan = diagnostics[0].Location.GetLineSpan();
595Assert.Equal(0, diagnostics[0].Location.SourceSpan.Start);
596Assert.Equal(0, diagnostics[0].Location.SourceSpan.Length);
598Assert.True(treeSpan.Contains(diagnostics[0].Location.SourceSpan));
600var lineSpan = diagnostics[0].Location.GetLineSpan();
Microsoft.CodeAnalysis.CSharp.Test.Utilities (1)
Microsoft.CodeAnalysis.CSharp.Workspaces (2)
Microsoft.CodeAnalysis.ExternalAccess.Copilot (1)
Microsoft.CodeAnalysis.Features (77)
Microsoft.CodeAnalysis.InteractiveHost (2)
Microsoft.CodeAnalysis.LanguageServer.Protocol (11)
Microsoft.CodeAnalysis.Test.Utilities (5)
Microsoft.CodeAnalysis.VisualBasic (12)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (2)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle.Fixes (3)
Microsoft.CodeAnalysis.VisualBasic.Features (6)
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Syntax.UnitTests (2)
Microsoft.CodeAnalysis.VisualBasic.Test.Utilities (7)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (3)
Microsoft.CodeAnalysis.Workspaces (30)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
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 (3)
Microsoft.Interop.LibraryImportGenerator (11)
Microsoft.ML.InternalCodeAnalyzer (4)
Mvc.Api.Analyzers.Test (2)
System.Windows.Forms.Analyzers.CodeFixes.CSharp (1)
System.Windows.Forms.Analyzers.CodeFixes.VisualBasic (1)