1 write to ParameterName
Microsoft.Gen.Logging (1)
Parsing\Parser.cs (1)
578ParameterName = paramName,
21 references to ParameterName
Microsoft.Gen.Logging (21)
Emission\Emitter.Method.cs (8)
77var stateName = PickUniqueName("state", lm.Parameters.Select(p => p.ParameterName)); 248exceptionArg = p.ParameterName; 276var tmpVarName = PickUniqueName("tmp", lm.Parameters.Select(p => p.ParameterName)); 532OutLn($"var {atSign}{p.ParameterName} = {lambdaStateName}.TagArray[{index}].Value ?? {Null};"); 536OutLn($"var {atSign}{p.ParameterName} = {lambdaStateName}.TagArray[{index}].Value;"); 561OutLn($"var {atSign}{p.ParameterName} = {lambdaStateName}.RedactedTagArray[{index}].Value ?? {Null};"); 565OutLn($"var {atSign}{p.ParameterName} = {lambdaStateName}.RedactedTagArray[{index}].Value;"); 588logger = p.ParameterName;
Emission\Emitter.Utils.cs (1)
58level = p.ParameterName;
Model\LoggingMethod.cs (1)
63if (parameterName == p.ParameterName)
Model\LoggingMethodParameter.cs (2)
38public string ParameterNameWithAtIfNeeded => NeedsAtSign ? "@" + ParameterName : ParameterName;
Model\LoggingMethodParameterExtensions.cs (1)
19PropertyName = parameter.ParameterName,
Parsing\Parser.cs (8)
162lm.Templates.Contains($"@{lp.ParameterName}", StringComparer.OrdinalIgnoreCase); 167Diag(DiagDescriptors.ShouldntMentionLoggerInMessage, attrLoc, lp.ParameterName); 172Diag(DiagDescriptors.ShouldntMentionExceptionInMessage, attrLoc, lp.ParameterName); 177Diag(DiagDescriptors.ShouldntMentionLogLevelInMessage, attrLoc, lp.ParameterName); 182Diag(DiagDescriptors.ParameterHasNoCorrespondingTemplate, paramSymbol.GetLocation(), lp.ParameterName); 194Diag(DiagDescriptors.RecordTypeSensitiveArgumentIsInTemplate, paramSymbol.GetLocation(), lp.ParameterName, lm.Name); 501Diag(DiagDescriptors.TagNameCollision, parameterSymbols[parameter].GetLocation(), parameter.ParameterName, fullName, lm.Name); 507Diag(DiagDescriptors.TagNameCollision, parameterSymbols[parameter].GetLocation(), parameter.ParameterName, parameter.TagName, lm.Name);