The poetic device used in this line from Poe's "The Raven" is called alliteration. Alliteration is the repetition of the initial consonant sounds in neighboring words. In this line, the repetition of the "d" sound in "Doubting, dreaming dreams" creates an alliterative effect.