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