9 implementations of Locations
GenerateDocumentationAndConfigFiles (1)
Microsoft.CodeAnalysis.Analyzers (1)
Microsoft.CodeAnalysis.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp (2)
Microsoft.CodeAnalysis.Features (1)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.Workspaces (1)
Roslyn.Diagnostics.Analyzers (1)
489 references to Locations
Aspire.Hosting.Integration.Analyzers (2)
GenerateDocumentationAndConfigFiles (26)
ILLink.RoslynAnalyzer (17)
DynamicallyAccessedMembersAnalyzer.cs (9)
147var location = GetPrimaryLocation(type.Locations);
180var location = GetPrimaryLocation(member.Locations);
223Location attributableSymbolLocation = GetPrimaryLocation(attributableMethod.Locations);
234GetPrimaryLocation(returnOrigin.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary(), overrideMethod.GetDisplayName(), baseMethod.GetDisplayName()));
258GetPrimaryLocation(parameterOrigin?.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary(),
273Location attributableSymbolLocation = GetPrimaryLocation(attributableSymbol.Locations);
284GetPrimaryLocation(typeParameterOrigin.Locations), sourceLocation, DAMArgs?.ToImmutableDictionary(),
299GetPrimaryLocation(methodOrigin.Locations),
346GetPrimaryLocation(propertySymbol.Locations),
Microsoft.Analyzers.Extra (1)
Microsoft.Analyzers.Local (7)
ApiLifecycle\ApiLifecycleAnalyzer.cs (7)
74context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.NewSymbolsMustBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
111context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.ExperimentalSymbolsCantBeMarkedObsolete, symbol.Locations.FirstOrDefault(), symbol));
118context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantBeMarkedExperimental, symbol.Locations.FirstOrDefault(), symbol));
125context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
133context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.PublishedSymbolsCantChange, symbol.Locations.FirstOrDefault(), symbol));
154context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.NewSymbolsMustBeMarkedExperimental, type.Locations.FirstOrDefault(), type));
158context.ReportDiagnostic(Diagnostic.Create(DiagDescriptors.ExperimentalSymbolsCantBeMarkedObsolete, type.Locations.FirstOrDefault(), type));
Microsoft.AspNetCore.Components.Analyzers (4)
Microsoft.AspNetCore.Components.SdkAnalyzers (2)
Microsoft.AspNetCore.Mvc.Analyzers (2)
Microsoft.AspNetCore.Mvc.Api.Analyzers (1)
Microsoft.AspNetCore.SignalR.Client.SourceGenerator (13)
Microsoft.CodeAnalysis (5)
Microsoft.CodeAnalysis.Analyzers (33)
Microsoft.CodeAnalysis.AnalyzerUtilities (25)
Microsoft.CodeAnalysis.CodeStyle (30)
Microsoft.CodeAnalysis.CodeStyle.Fixes (8)
Microsoft.CodeAnalysis.CSharp (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle (3)
Microsoft.CodeAnalysis.CSharp.CodeStyle.Fixes (1)
Microsoft.CodeAnalysis.CSharp.Features (10)
Microsoft.CodeAnalysis.CSharp.Workspaces (10)
Microsoft.CodeAnalysis.Extensions.Package (10)
Microsoft.CodeAnalysis.Features (67)
FindUsages\DefinitionItemFactory.cs (5)
42=> ToNonClassifiedDefinitionItemAsync(definition, definition.Locations, solution, options, isPrimary: false, includeHiddenLocations, cancellationToken);
74var sourceLocations = await GetSourceLocationsAsync(solution, definition, definition.Locations, includeHiddenLocations, cancellationToken).ConfigureAwait(false);
90var locations = group.Symbols.SelectManyAsArray(s => s.Locations);
172if (!definition.Locations.Any(static location => location.MetadataModule != null))
201if (!constituentNamespace.Locations.Any(static location => location.MetadataModule != null))
Microsoft.CodeAnalysis.ResxSourceGenerator (24)
Microsoft.CodeAnalysis.VisualBasic (1)
Microsoft.CodeAnalysis.VisualBasic.Features (3)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces (62)
Microsoft.Extensions.Logging.Generators (11)
LoggerMessageGenerator.Parser.cs (11)
386Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterOut, paramSymbol.Locations[0], paramName);
401Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterParams, paramSymbol.Locations[0], paramName);
408Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterRefStruct, paramSymbol.Locations[0], paramName);
416Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterParams, paramSymbol.Locations[0], paramName);
446Diag(DiagnosticDescriptors.ShouldntMentionLoggerInMessage, paramSymbol.Locations[0], paramName);
451Diag(DiagnosticDescriptors.ShouldntMentionExceptionInMessage, paramSymbol.Locations[0], paramName);
456Diag(DiagnosticDescriptors.ShouldntMentionLogLevelInMessage, paramSymbol.Locations[0], paramName);
461Diag(DiagnosticDescriptors.ArgumentHasNoCorrespondingTemplate, paramSymbol.Locations[0], paramName);
465Diag(DiagnosticDescriptors.ArgumentHasNoCorrespondingTemplate, paramSymbol.Locations[0], paramName);
472Diag(DiagnosticDescriptors.InvalidLoggingMethodParameterName, paramSymbol.Locations[0]);
750Diag(DiagnosticDescriptors.PrimaryConstructorParameterLoggerHidden, parameter.Locations[0], classDec.Identifier.Text);
Microsoft.Extensions.Options.SourceGeneration (3)
Microsoft.Gen.BuildMetadata (2)
Microsoft.Gen.ComplianceReports (3)
Microsoft.Gen.Logging (2)
Microsoft.Gen.Logging.Unit.Tests (3)
Microsoft.Gen.MetadataExtractor (13)
Microsoft.Gen.Metrics (10)
Parser.cs (8)
555Diag(DiagDescriptors.ErrorInvalidParameterName, paramSymbol.Locations[0]);
664strongTypeSymbol.Locations[0],
672Diag(DiagDescriptors.ErrorTooManyTagNames, strongTypeSymbol.Locations[0]);
747Diag(DiagDescriptors.ErrorDuplicateTagName, member.Locations[0], member.Name);
779Diag(DiagDescriptors.ErrorDuplicateTagName, member.Locations[0], member.Name);
822Diag(DiagDescriptors.ErrorInvalidTagNameType, member.Locations[0]);
831Diag(DiagDescriptors.ErrorInvalidTagNameType, member.Locations[0]);
852Diag(DiagDescriptors.ErrorInvalidTagNameType, member.Locations[0]);
Microsoft.Gen.MetricsReports (10)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (8)
555Diag(DiagDescriptors.ErrorInvalidParameterName, paramSymbol.Locations[0]);
664strongTypeSymbol.Locations[0],
672Diag(DiagDescriptors.ErrorTooManyTagNames, strongTypeSymbol.Locations[0]);
747Diag(DiagDescriptors.ErrorDuplicateTagName, member.Locations[0], member.Name);
779Diag(DiagDescriptors.ErrorDuplicateTagName, member.Locations[0], member.Name);
822Diag(DiagDescriptors.ErrorInvalidTagNameType, member.Locations[0]);
831Diag(DiagDescriptors.ErrorInvalidTagNameType, member.Locations[0]);
852Diag(DiagDescriptors.ErrorInvalidTagNameType, member.Locations[0]);
Microsoft.Interop.ComInterfaceGenerator (7)
Microsoft.Interop.SourceGeneration (6)
Microsoft.ML.CodeAnalyzer.Tests (1)
Microsoft.ML.InternalCodeAnalyzer (3)
Roslyn.Diagnostics.Analyzers (32)
Roslyn.Diagnostics.CSharp.Analyzers (2)
Roslyn.Diagnostics.VisualBasic.Analyzers (1)
System.Text.Json.SourceGeneration (2)
System.Windows.Forms.Analyzers.CSharp (1)
System.Windows.Forms.Analyzers.VisualBasic (1)