parsing annotations for functions and parameters