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