You can model everything as linear blocks to perform an AC (small signal) stability analysis (either by calculation or simulation).
For example, the PWM part of the circuit converts the error voltage to a PWM duty-cycle which generates a voltage at the converter output as determined by the input voltage and the duty-cycle. So you calculate what the transfer function gain is from the error voltage to the output voltage. This then becomes a linear block in the circuit for the AC analysis.
Thus, suppose a 0V error signal generates a 0% duty-cycle and a 2V error signal generates a 100% duty-cycle, and the supply voltage is 15V. Then the transfer gain of this circuit is 15V/2V =7.5 (since the average output voltage of an ideal PWM is a linear function of duty-cycle with 0V at 0% duty-cycle and equal to the supply voltage at 100% duty-cycle).
Determining this transfer function with an IC PWM modulator chip can require some digging. For one chip I used I had to look at the internal block diagram and the listed parameters for some functions, such as the sawtooth amplitude used to generate the PWM signal along with the internal error amplifier gain, to calculate the transfer function.