InvalidMethodTypeParams occurs when methods have type parameters. It cannot be encountered with an AST parsed using go/parser.