10 references to GetLocation
Microsoft.CodeAnalysis (2)
DiagnosticAnalyzer\SymbolDeclaredCompilationEvent.cs (1)
53
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 (8)
Lowering\ClosureConversion\SynthesizedClosureMethod.cs (1)
38
originalMethod.DeclaringSyntaxReferences[0].
GetLocation
(),
Symbols\Source\CrefTypeParameterSymbol.cs (1)
181
return ImmutableArray.Create<Location>(_declaringSyntax.
GetLocation
());
Symbols\Source\SourceDelegateMethodSymbol.cs (2)
248
return new LexicalSortKey(this.syntaxReferenceOpt.
GetLocation
(), this.DeclaringCompilation);
313
return new LexicalSortKey(this.syntaxReferenceOpt.
GetLocation
(), this.DeclaringCompilation);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1677
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.Syntax.
GetLocation
(), this.Name);
1691
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.Syntax.
GetLocation
(), this.Name);
Symbols\Synthesized\SynthesizedSimpleProgramEntryPointSymbol.cs (1)
29
: base(containingType, syntaxReferenceOpt: declaration.SyntaxReference, declaration.SyntaxReference.
GetLocation
(), isIterator: declaration.IsIterator,
Symbols\TypeSymbol.cs (1)
1996
MessageID.IDS_FeatureRefStructInterfaces.CheckFeatureAvailability(diagnostics, implementingSymbol.DeclaringCompilation, applicationSyntaxReference.
GetLocation
());