Add prependDecls but needs fix

Signed-off-by: Akira Hayakawa <ruby.wktk@gmail.com>