22 references to GetLocation
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (1)
37var loc = DeclaringSyntaxReferences.Length != 0 ? " @ " + string.Join(", ", System.Linq.Enumerable.Select(DeclaringSyntaxReferences, r => r.GetLocation().GetLineSpan())) : null;
Emit\Context.cs (1)
23public Location? Location => _syntaxNode?.Location ?? SyntaxReference?.GetLocation();
Microsoft.CodeAnalysis.CSharp (7)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
38originalMethod.DeclaringSyntaxReferences[0].GetLocation(),
Symbols\Source\CrefTypeParameterSymbol.cs (1)
176return ImmutableArray.Create<Location>(_declaringSyntax.GetLocation());
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
253return new LexicalSortKey(this.syntaxReferenceOpt.GetLocation(), this.DeclaringCompilation); 322return new LexicalSortKey(this.syntaxReferenceOpt.GetLocation(), this.DeclaringCompilation);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1504diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.Syntax.GetLocation(), this.Name); 1518diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.Syntax.GetLocation(), this.Name);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
29: base(containingType, syntaxReferenceOpt: declaration.SyntaxReference, ImmutableArray.Create(declaration.SyntaxReference.GetLocation()), isIterator: declaration.IsIterator)
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\CrefTests.cs (1)
1561AssertEx.All(actualTypeParameters, p => p.Locations.Single() == p.DeclaringSyntaxReferences.Single().GetLocation());
Microsoft.CodeAnalysis.VisualBasic (11)
Declarations\DeclarationTreeBuilder.vb (4)
125nameLocation:=parentReference.GetLocation(), 146nameLocation:=parentReference.GetLocation(), 156nameLocation:=parentReference.GetLocation(), 308Dim nameLocation = syntaxReference.GetLocation()
Declarations\RootSingleNamespaceDeclaration.vb (1)
31MyBase.New(hasImports, treeNode, treeNode.GetLocation(), children)
Declarations\SingleNamespaceOrTypeDeclaration.vb (1)
22Return Me.SyntaxReference.GetLocation()
Symbols\Source\CrefTypeParameterSymbol.vb (1)
100Return ImmutableArray.Create(Of Location)(Me._syntaxReference.GetLocation())
Symbols\Source\SourceFile.vb (1)
334memberImports(i).Dependencies, memberImportsSyntax(i).GetLocation(),
Symbols\Source\SourceModuleSymbol.vb (1)
529diagnostics.Add(info.Import.MapDiagnostic(New VBDiagnostic(pair.UseSiteInfo.DiagnosticInfo, info.SyntaxReference.GetLocation())))
Symbols\Source\SynthesizedMyGroupCollectionPropertySymbol.vb (1)
124Dim diagnosticLocation As Location = AttributeSyntax.GetLocation()
Symbols\SynthesizedSymbols\SynthesizedEventDelegateSymbol.vb (1)
221Return ImmutableArray.Create(_syntaxRef.GetLocation())
Microsoft.CodeAnalysis.VisualBasic.Semantic.UnitTests (1)
Diagnostics\DiagnosticAnalyzerTests.vb (1)
412context.ReportDiagnostic(CodeAnalysis.Diagnostic.Create(s_descriptor, context.OwningSymbol.DeclaringSyntaxReferences.First.GetLocation))