extract declared symbols from declaration
actually extract declared symbols