Meaning: The snake had a good night's sleep, thinking about the nice time it had in the sun.
Choice of Words: The snake "slept soundly," meaning it slept deeply and peacefully, while "dreaming of the sun," which suggests it had pleasant thoughts about the warm sun.