384 references to GetLocation
Aspire.Hosting.Integration.Analyzers (2)
GenerateDocumentationAndConfigFiles (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
38.GetLocation()
ILLink.RoslynAnalyzer (17)
Microsoft.Analyzers.Extra (16)
Microsoft.Analyzers.Local (2)
Microsoft.AspNetCore.Analyzers (4)
Microsoft.AspNetCore.App.Analyzers (15)
Microsoft.AspNetCore.Components.Analyzers (7)
Microsoft.AspNetCore.Components.SdkAnalyzers (5)
Microsoft.AspNetCore.Mvc.Analyzers (4)
Microsoft.AspNetCore.Mvc.Api.Analyzers (4)
Microsoft.CodeAnalysis (4)
Microsoft.CodeAnalysis.Analyzers (8)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
38.GetLocation()
Microsoft.CodeAnalysis.AnalyzerUtilities (6)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
38.GetLocation()
Microsoft.CodeAnalysis.CodeStyle (52)
src\roslyn\src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
84nameSyntax.GetLocation(),
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
216value.Syntax.GetLocation(),
src\roslyn\src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
65nameNode.GetLocation(),
Microsoft.CodeAnalysis.CodeStyle.Fixes (4)
Microsoft.CodeAnalysis.CSharp (33)
FlowAnalysis\NullableWalker.cs (12)
1179Diagnostics.Add(ErrorCode.WRN_MemberNotNullWhen, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation(), member.Name, sense ? "true" : "false");
1347location = syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation();
1433var location = syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation();
1456ReportDiagnostic(ErrorCode.WRN_ShouldNotReturn, syntaxOpt?.GetLocation() ?? methodMainNode.Syntax.GetLastToken().GetLocation());
2477location ??= value.Syntax.GetLocation();
2733ReportDiagnostic(errorCode, syntaxNode.GetLocation(), arguments);
9579diagnosticLocation: (conversionOpt ?? convertedNode).Syntax.GetLocation());
9631diagnosticLocation: (conversionOpt ?? convertedNode).Syntax.GetLocation());
10209diagnosticLocation ??= (conversionOpt ?? conversionOperand).Syntax.GetLocation();
10486Location operandLocation = conversionOperand.Syntax.GetLocation();
12067ReportNullabilityMismatchInArgument(argument.GetLocation(), argumentType, parameter, parameterType, forOutput);
12529ReportDiagnostic(ErrorCode.WRN_NullReferenceReceiver, expr.Syntax.GetLocation());
Microsoft.CodeAnalysis.CSharp.CodeStyle (17)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
46[node.GetLocation()],
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\CSharpRemoveUnnecessaryUnsafeModifierDiagnosticAnalyzer.cs (1)
47[declaration.GetLocation()]));
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (2)
80Descriptor, context.Operation.Syntax.GetLocation(), notificationOption, context.Options, additionalLocations: null, properties: null));
110Descriptor, syntax.GetLocation(), notificationOption, context.Options, additionalLocations: null, properties: null));
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
100[node.GetLocation()],
Microsoft.CodeAnalysis.CSharp.Features (20)
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveConfusingSuppression\CSharpRemoveConfusingSuppressionDiagnosticAnalyzer.cs (1)
46[node.GetLocation()],
src\roslyn\src\Analyzers\CSharp\Analyzers\RemoveUnnecessaryUnsafeModifier\CSharpRemoveUnnecessaryUnsafeModifierDiagnosticAnalyzer.cs (1)
47[declaration.GetLocation()]));
src\roslyn\src\Analyzers\CSharp\Analyzers\UseIsNullCheck\CSharpUseNullCheckOverTypeCheckDiagnosticAnalyzer.cs (2)
80Descriptor, context.Operation.Syntax.GetLocation(), notificationOption, context.Options, additionalLocations: null, properties: null));
110Descriptor, syntax.GetLocation(), notificationOption, context.Options, additionalLocations: null, properties: null));
src\roslyn\src\Analyzers\CSharp\Analyzers\UsePatternMatching\CSharpUseNotPatternDiagnosticAnalyzer.cs (1)
100[node.GetLocation()],
Microsoft.CodeAnalysis.CSharp.Workspaces (1)
Microsoft.CodeAnalysis.Features (71)
src\roslyn\src\Analyzers\Core\Analyzers\MatchFolderAndNamespace\AbstractMatchFolderAndNamespaceDiagnosticAnalyzer.cs (1)
84nameSyntax.GetLocation(),
src\roslyn\src\Analyzers\Core\Analyzers\RemoveUnusedParametersAndValues\AbstractRemoveUnusedParametersAndValuesDiagnosticAnalyzer.SymbolStartAnalyzer.BlockAnalyzer.cs (1)
216value.Syntax.GetLocation(),
src\roslyn\src\Analyzers\Core\Analyzers\UseExplicitTupleName\UseExplicitTupleNameDiagnosticAnalyzer.cs (1)
65nameNode.GetLocation(),
Microsoft.CodeAnalysis.ResxSourceGenerator (2)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
38.GetLocation()
Microsoft.CodeAnalysis.VisualBasic (46)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (3)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\NewLines\ConsecutiveStatementPlacement\VisualBasicConsecutiveStatementPlacementDiagnosticAnalyzer.vb (1)
44Return block.GetLocation()
Microsoft.CodeAnalysis.VisualBasic.Features (3)
src\roslyn\src\Analyzers\VisualBasic\Analyzers\NewLines\ConsecutiveStatementPlacement\VisualBasicConsecutiveStatementPlacementDiagnosticAnalyzer.vb (1)
44Return block.GetLocation()
Microsoft.CodeAnalysis.VisualBasic.NetAnalyzers (1)
Microsoft.CodeAnalysis.Workspaces (4)
Microsoft.DotNet.CodeAnalysis (1)
Microsoft.Extensions.Options.SourceGeneration (1)
Microsoft.Gen.Logging (4)
Microsoft.Interop.ComInterfaceGenerator (6)
Microsoft.Interop.LibraryImportGenerator (5)
Microsoft.Maui.Controls.BindingSourceGen (1)
Microsoft.ML.InternalCodeAnalyzer (3)
Roslyn.Diagnostics.Analyzers (3)
src\roslyn\src\RoslynAnalyzers\Utilities\Compiler\Extensions\DiagnosticExtensions.cs (1)
38.GetLocation()
Roslyn.Diagnostics.CSharp.Analyzers (1)
System.Private.CoreLib.Generators (4)
System.Text.RegularExpressions.Generator (2)