15 references to GetLocation
Microsoft.Gen.MetadataExtractor (15)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (15)
367
Diag(DiagDescriptors.ErrorXmlNotLoadedCorrectly, symbol.
GetLocation
(), ex.Message);
415
Diag(DiagDescriptors.ErrorGaugeNotSupported, methodSymbol.
GetLocation
());
422
Diag(DiagDescriptors.ErrorInvalidAttributeGenericType, methodSymbol.
GetLocation
(), genericType.ToString());
477
Diag(DiagDescriptors.ErrorInvalidMethodName, methodSymbol.
GetLocation
());
484
Diag(DiagDescriptors.ErrorMethodIsGeneric, methodSymbol.
GetLocation
());
493
Diag(DiagDescriptors.ErrorNotStaticMethod, methodSymbol.
GetLocation
());
499
Diag(DiagDescriptors.ErrorMethodHasBody, methodSymbol.
GetLocation
());
504
Diag(DiagDescriptors.ErrorNotPartialMethod, methodSymbol.
GetLocation
());
512
Diag(DiagDescriptors.ErrorInvalidMetricName, methodSymbol.
GetLocation
(), metricNameFromMethod);
517
Diag(DiagDescriptors.ErrorMetricNameReuse, methodSymbol.
GetLocation
(), metricNameFromMethod);
523
Diag(DiagDescriptors.ErrorInvalidTagNames, methodSymbol.
GetLocation
());
569
Diag(DiagDescriptors.ErrorMissingMeter, methodSymbol.
GetLocation
());
584
Diag(DiagDescriptors.ErrorInvalidMethodReturnType, returnType.
GetLocation
(), returnType.ToDisplayString(SymbolDisplayFormat.MinimallyQualifiedFormat));
590
Diag(DiagDescriptors.ErrorInvalidMethodReturnTypeArity, methodSymbol.
GetLocation
(), methodSymbol.Name, returnType.Name);
596
Diag(DiagDescriptors.ErrorInvalidMethodReturnTypeLocation, methodSymbol.
GetLocation
(), methodSymbol.Name, returnType.Name);