12 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)
244
return new LexicalSortKey(this.syntaxReferenceOpt.
GetLocation
(), this.DeclaringCompilation);
307
return new LexicalSortKey(this.syntaxReferenceOpt.
GetLocation
(), this.DeclaringCompilation);
Symbols\Source\SourceNamedTypeSymbol.cs (2)
1629
diagnostics.Add(ErrorCode.ERR_ComImportWithInitializers, singleInitializer.Syntax.
GetLocation
(), this.Name);
1643
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)
1987
MessageID.IDS_FeatureRefStructInterfaces.CheckFeatureAvailability(diagnostics, implementingSymbol.DeclaringCompilation, applicationSyntaxReference.
GetLocation
());
Microsoft.CodeAnalysis.CSharp.Emit3.UnitTests (1)
Diagnostics\GetDiagnosticsTests.cs (1)
1850
var diag = CodeAnalysis.Diagnostic.Create(Descriptor, field.DeclaringSyntaxReferences[0].
GetLocation
());
Microsoft.CodeAnalysis.CSharp.Symbol.UnitTests (1)
DocumentationComments\CrefTests.cs (1)
1561
AssertEx.All(actualTypeParameters, p => p.Locations.Single() == p.DeclaringSyntaxReferences.Single().
GetLocation
());