{"action":"opened","issue":{"url":"https://api.github.com/repos/dave/jennifer/issues/37","repository_url":"https://api.github.com/repos/dave/jennifer","labels_url":"https://api.github.com/repos/dave/jennifer/issues/37/labels{/name}","comments_url":"https://api.github.com/repos/dave/jennifer/issues/37/comments","events_url":"https://api.github.com/repos/dave/jennifer/issues/37/events","html_url":"https://github.com/dave/jennifer/issues/37","id":335206909,"node_id":"MDU6SXNzdWUzMzUyMDY5MDk=","number":37,"title":"Jen doesn't panic on probably an invalid ast","user":{"login":"yuriy-yarosh","id":6811933,"node_id":"MDQ6VXNlcjY4MTE5MzM=","avatar_url":"https://avatars0.githubusercontent.com/u/6811933?v=4","gravatar_id":"","url":"https://api.github.com/users/yuriy-yarosh","html_url":"https://github.com/yuriy-yarosh","followers_url":"https://api.github.com/users/yuriy-yarosh/followers","following_url":"https://api.github.com/users/yuriy-yarosh/following{/other_user}","gists_url":"https://api.github.com/users/yuriy-yarosh/gists{/gist_id}","starred_url":"https://api.github.com/users/yuriy-yarosh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuriy-yarosh/subscriptions","organizations_url":"https://api.github.com/users/yuriy-yarosh/orgs","repos_url":"https://api.github.com/users/yuriy-yarosh/repos","events_url":"https://api.github.com/users/yuriy-yarosh/events{/privacy}","received_events_url":"https://api.github.com/users/yuriy-yarosh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-24T19:58:41Z","updated_at":"2018-06-24T19:58:41Z","closed_at":null,"author_association":"NONE","body":"So I've got something like this\r\n\r\n```\r\n// +build ignore\r\n\r\npackage main\r\n\r\nimport (\r\n\tj \"github.com/dave/jennifer/jen\"\r\n)\r\n\r\nfunc main() {\r\n\tf := j.NewFile(\"decimal\")\r\n\r\n\tf.Func().Params(\r\n\t\tj.Id(\"dec\").Id(\"*Decimal\"),\r\n\t).Id(\"AddUInt32\").Params(\r\n\t\tj.Id(\"number\").Id(\"uint32\"),\r\n\t).Return(j.Id(\"*Decimal\")).Block(\r\n\t\tj.Return(j.Id(\"dec\")),\r\n\t)\r\n\r\n\tf.Save(\"convenience_generated.go\")\r\n}\r\n```\r\n\r\nJen doesn't save a respective file and doesn't panic, which is quite confusing."}}
{"actor":{"display_login":"yuriy-yarosh"}}