22 references to ParserUtilities
Microsoft.Gen.Logging (15)
Parsing\Parser.cs (9)
115
var logPropertiesAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.LogPropertiesAttribute, paramSymbol);
130
var tagProviderAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.TagProviderAttribute, paramSymbol);
377
var attr =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.LoggerMessageAttribute, methodSymbol)!;
533
.Where(x => x is not null && symbols.DataClassificationAttribute is not null &&
ParserUtilities
.IsBaseOrIdentity(x, symbols.DataClassificationAttribute, symbols.Compilation))
646
var tagNameAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.TagNameAttribute, paramSymbol);
661
IsLogger = !parsingState.FoundLogger &&
ParserUtilities
.IsBaseOrIdentity(paramTypeSymbol, symbols.ILoggerSymbol, _compilation),
662
IsException = !parsingState.FoundException &&
ParserUtilities
.IsBaseOrIdentity(paramTypeSymbol, symbols.ExceptionSymbol, _compilation),
747
if (
ParserUtilities
.IsBaseOrIdentity(typeSymbol, loggerSymbol, _compilation))
791
if (
ParserUtilities
.IsBaseOrIdentity(parameter.Type, loggerSymbol, _compilation))
Parsing\Parser.LogProperties.cs (5)
129
var logPropertiesAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.LogPropertiesAttribute, property);
130
var logPropertyIgnoreAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.LogPropertyIgnoreAttribute, property);
131
var tagProviderAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.TagProviderAttribute, property);
189
var tagNameAttribute =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(symbols.TagNameAttribute, property);
241
if (
ParserUtilities
.PropertyHasModifier(property, SyntaxKind.NewKeyword, _cancellationToken))
Parsing\Parser.TagProvider.cs (1)
179
return
ParserUtilities
.IsBaseOrIdentity(type, target, _compilation);
Microsoft.Gen.Logging.Unit.Tests (7)
ParserUtilitiesTests.cs (7)
53
var result =
ParserUtilities
.PropertyHasModifier(symbolMock.Object, SyntaxKind.ProtectedKeyword, CancellationToken.None);
74
var result =
ParserUtilities
.PropertyHasModifier(symbolMock.Object, SyntaxKind.ProtectedKeyword, CancellationToken.None);
81
var result =
ParserUtilities
.GetSymbolAttributeAnnotationOrDefault(null, null!);
88
Assert.Null(
ParserUtilities
.GetLocation(null!));
94
Assert.Null(
ParserUtilities
.GetLocation(symbolMock.Object));
99
Assert.Null(
ParserUtilities
.GetLocation(symbolMock.Object));
110
var result =
ParserUtilities
.GetLocation(symbolMock.Object);