15 references to GetLocation
Microsoft.Gen.MetadataExtractor (15)
src\Generators\Microsoft.Gen.Metrics\Parser.cs (15)
361
Diag(DiagDescriptors.ErrorXmlNotLoadedCorrectly, symbol.
GetLocation
(), ex.Message);
409
Diag(DiagDescriptors.ErrorGaugeNotSupported, methodSymbol.
GetLocation
());
416
Diag(DiagDescriptors.ErrorInvalidAttributeGenericType, methodSymbol.
GetLocation
(), genericType.ToString());
470
Diag(DiagDescriptors.ErrorInvalidMethodName, methodSymbol.
GetLocation
());
477
Diag(DiagDescriptors.ErrorMethodIsGeneric, methodSymbol.
GetLocation
());
486
Diag(DiagDescriptors.ErrorNotStaticMethod, methodSymbol.
GetLocation
());
492
Diag(DiagDescriptors.ErrorMethodHasBody, methodSymbol.
GetLocation
());
497
Diag(DiagDescriptors.ErrorNotPartialMethod, methodSymbol.
GetLocation
());
505
Diag(DiagDescriptors.ErrorInvalidMetricName, methodSymbol.
GetLocation
(), metricNameFromMethod);
510
Diag(DiagDescriptors.ErrorMetricNameReuse, methodSymbol.
GetLocation
(), metricNameFromMethod);
516
Diag(DiagDescriptors.ErrorInvalidTagNames, methodSymbol.
GetLocation
());
562
Diag(DiagDescriptors.ErrorMissingMeter, methodSymbol.
GetLocation
());
577
Diag(DiagDescriptors.ErrorInvalidMethodReturnType, methodSymbol.ReturnType.
GetLocation
(), methodSymbol.Name);
583
Diag(DiagDescriptors.ErrorInvalidMethodReturnTypeArity, methodSymbol.
GetLocation
(), methodSymbol.Name, returnType.Name);
589
Diag(DiagDescriptors.ErrorInvalidMethodReturnTypeLocation, methodSymbol.
GetLocation
(), methodSymbol.Name, returnType.Name);