1 write to ExceptionParamIndex
Microsoft.Analyzers.Extra (1)
CallAnalysis\Fixers\LegacyLoggingFixer.FixDetails.cs (1)
40
(MessageParamIndex,
ExceptionParamIndex
, EventIdParamIndex, LogLevelParamIndex, ArgsParamIndex) = IdentifyParameters(method);
4 references to ExceptionParamIndex
Microsoft.Analyzers.Extra (4)
CallAnalysis\Fixers\LegacyLoggingFixer.cs (4)
384
if (details.
ExceptionParamIndex
>= 0)
386
parameters.Add(gen.ParameterDeclaration("exception", gen.TypeExpression(invocationOp.Arguments[details.
ExceptionParamIndex
].Value.Type!)));
434
if (details.
ExceptionParamIndex
>= 0)
436
args.Add(invocationOp.Arguments[details.
ExceptionParamIndex
].Value.Type!);