protected override void HandleStoreParameter(MethodDefinition method, MethodParameterValue parameter, Instruction operation, MultiValue valueToStore) { if (parameter.DynamicallyAccessedMemberTypes != 0) { _origin = _origin.WithInstructionOffset(operation.Offset); var diagnosticContext = new DiagnosticContext(_origin, ShouldEnableReflectionPatternReporting(_origin.Provider), _context); RequireDynamicallyAccessedMembers(diagnosticContext, valueToStore, parameter); } }
protected override void HandleStoreParameter(MethodDefinition method, MethodParameterValue parameter, Instruction operation, MultiValue valueToStore) => HandleStoreValueWithDynamicallyAccessedMembers(parameter, operation, valueToStore);