Parse out method type and name into AST.