348 references to GetLocation
Aspire.Hosting.Analyzers (1)
Microsoft.AspNetCore.App.Analyzers (4)
Microsoft.CodeAnalysis (3)
Microsoft.CodeAnalysis.CodeStyle (17)
Microsoft.CodeAnalysis.CodeStyle.Fixes (6)
Microsoft.CodeAnalysis.CSharp (53)
Symbols\Source\ParameterHelpers.cs (11)
147diagnostics.Add(ErrorCode.ERR_ThisInBadContext, thisKeyword.GetLocation());
162diagnostics.Add(ErrorCode.ERR_IllegalVarArgs, arglistToken.GetLocation());
188diagnostics.Add(ErrorCode.ERR_IllegalRefParam, refnessKeyword.GetLocation());
632diagnostics.Add(ErrorCode.ERR_DupParamMod, modifier.GetLocation(), SyntaxFacts.GetText(modifier.Kind()));
637diagnostics.Add(ErrorCode.ERR_BadParameterModifiers, modifier.GetLocation(), SyntaxFacts.GetText(modifier.Kind()), SyntaxFacts.GetText(otherModifierKind));
642diagnostics.Add(ErrorCode.ERR_ParamsCantBeWithModifier, modifier.GetLocation(), SyntaxFacts.GetText(otherModifierKind));
669diagnostics.Add(ErrorCode.ERR_BadThisParam, thisKeyword.GetLocation(), owner?.Name ?? "");
674diagnostics.Add(ErrorCode.ERR_IllegalParams, paramsKeyword.GetLocation());
749diagnostics.Add(ErrorCode.ERR_RefOutDefaultValue, refnessKeyword.GetLocation());
755diagnostics.Add(ErrorCode.ERR_DefaultValueForParamsParameter, paramsKeyword.GetLocation());
765diagnostics.Add(ErrorCode.ERR_DefaultValueForExtensionParameter, thisKeyword.GetLocation());
Microsoft.CodeAnalysis.CSharp.CodeStyle (40)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
60name.GetLocation(),
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
85secondBrace.GetLocation(),
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
93colonToken.GetLocation(),
Microsoft.CodeAnalysis.CSharp.EditorFeatures.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (8)
Microsoft.CodeAnalysis.CSharp.Features (39)
src\Analyzers\CSharp\Analyzers\AddAccessibilityModifiers\CSharpAddAccessibilityModifiersDiagnosticAnalyzer.cs (1)
60name.GetLocation(),
src\Analyzers\CSharp\Analyzers\NewLines\ConsecutiveBracePlacement\ConsecutiveBracePlacementDiagnosticAnalyzer.cs (1)
85secondBrace.GetLocation(),
src\Analyzers\CSharp\Analyzers\NewLines\ConstructorInitializerPlacement\ConstructorInitializerPlacementDiagnosticAnalyzer.cs (1)
93colonToken.GetLocation(),
Microsoft.CodeAnalysis.CSharp.Features.UnitTests (12)
Diagnostics\Suppression\SuppressionTests.cs (10)
709context.ReportDiagnostic(Diagnostic.Create(Decsciptor, classDecl.Identifier.GetLocation()));
819context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()));
882context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()));
1076context.ReportDiagnostic(Diagnostic.Create(Descriptor, classDecl.Identifier.GetLocation()));
1086context.ReportDiagnostic(Diagnostic.Create(Descriptor, method.Identifier.GetLocation()));
1091context.ReportDiagnostic(Diagnostic.Create(Descriptor, property.Identifier.GetLocation()));
1096context.ReportDiagnostic(Diagnostic.Create(Descriptor, field.Declaration.Variables.First().Identifier.GetLocation()));
1101context.ReportDiagnostic(Diagnostic.Create(Descriptor, e.Identifier.GetLocation()));
2070context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()));
2080context.ReportDiagnostic(Diagnostic.Create(_descriptor, method.Identifier.GetLocation()));
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
Microsoft.CodeAnalysis.CSharp.Syntax.UnitTests (6)
Microsoft.CodeAnalysis.CSharp.Workspaces (6)
Microsoft.CodeAnalysis.Features (24)
Microsoft.CodeAnalysis.LanguageServer.Protocol.UnitTests (2)
Microsoft.CodeAnalysis.Test.Utilities (2)
Microsoft.CodeAnalysis.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic (24)
Microsoft.CodeAnalysis.VisualBasic.CodeStyle (4)
src\Analyzers\VisualBasic\Analyzers\AddAccessibilityModifiers\VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
68name.GetLocation(),
Microsoft.CodeAnalysis.VisualBasic.ExpressionCompiler (1)
Microsoft.CodeAnalysis.VisualBasic.Features (4)
src\Analyzers\VisualBasic\Analyzers\AddAccessibilityModifiers\VisualBasicAddAccessibilityModifiersDiagnosticAnalyzer.vb (1)
68name.GetLocation(),
Microsoft.CodeAnalysis.VisualBasic.Features.UnitTests (12)
Diagnostics\Suppression\SuppressionTests.vb (12)
711context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()))
786context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()))
830context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()))
896context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()))
1018context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()))
1028context.ReportDiagnostic(Diagnostic.Create(_descriptor, method.Identifier.GetLocation()))
1033context.ReportDiagnostic(Diagnostic.Create(_descriptor, p.Identifier.GetLocation()))
1043context.ReportDiagnostic(Diagnostic.Create(_descriptor, e.Identifier.GetLocation()))
1734context.ReportDiagnostic(Diagnostic.Create(_descriptor, classDecl.Identifier.GetLocation()))
1744context.ReportDiagnostic(Diagnostic.Create(_descriptor, method.Identifier.GetLocation()))
1749context.ReportDiagnostic(Diagnostic.Create(_descriptor, p.Identifier.GetLocation()))
1759context.ReportDiagnostic(Diagnostic.Create(_descriptor, e.Identifier.GetLocation()))
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Microsoft.CodeAnalysis.VisualBasic.Symbol.UnitTests (15)
Microsoft.CodeAnalysis.VisualBasic.Workspaces (2)
Microsoft.CodeAnalysis.Workspaces (6)
Microsoft.CodeAnalysis.Workspaces.UnitTests (1)
Microsoft.Extensions.Logging.Generators (3)
Microsoft.Gen.ContextualOptions (4)
Microsoft.Gen.Logging (5)
Microsoft.Interop.ComInterfaceGenerator (23)
ComInterfaceInfo.cs (14)
58return DiagnosticOrInterfaceInfo.From(DiagnosticInfo.Create(GeneratorDiagnostics.RequiresAllowUnsafeBlocks, syntax.Identifier.GetLocation()));
66syntax.Identifier.GetLocation(),
77syntax.Identifier.GetLocation(),
107syntax.Identifier.GetLocation()),
126syntax.Identifier.GetLocation(),
183syntax.Identifier.GetLocation(),
208syntax.Identifier.GetLocation(),
217syntax.Identifier.GetLocation(),
227syntax.Identifier.GetLocation(),
242syntax.Identifier.GetLocation(),
264syntax.Identifier.GetLocation(),
278syntax.Identifier.GetLocation(),
311syntax.Identifier.GetLocation(),
353syntax.Identifier.GetLocation(),
VtableIndexStubGenerator.cs (4)
400return Diagnostic.Create(GeneratorDiagnostics.InvalidAttributedMethodSignature, methodSyntax.Identifier.GetLocation(), method.Name);
408return Diagnostic.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingModifiers, methodSyntax.Identifier.GetLocation(), method.Name, typeDecl.Identifier);
415return Diagnostic.Create(GeneratorDiagnostics.ReturnConfigurationNotSupported, methodSyntax.Identifier.GetLocation(), "ref return", method.ToDisplayString());
421return Diagnostic.Create(GeneratorDiagnostics.InvalidAttributedMethodContainingTypeMissingUnmanagedObjectUnwrapperAttribute, methodSyntax.Identifier.GetLocation(), method.Name);
Microsoft.Interop.JavaScript.JSImportGenerator (6)
Microsoft.Interop.LibraryImportGenerator (3)
Microsoft.Interop.LibraryImportGenerator.Downlevel (3)
Microsoft.Interop.SourceGeneration (2)
Microsoft.ML.InternalCodeAnalyzer (3)