{"action":"opened","issue":{"url":"https://api.github.com/repos/babel/babel/issues/2489","labels_url":"https://api.github.com/repos/babel/babel/issues/2489/labels{/name}","comments_url":"https://api.github.com/repos/babel/babel/issues/2489/comments","events_url":"https://api.github.com/repos/babel/babel/issues/2489/events","html_url":"https://github.com/babel/babel/issues/2489","id":109784164,"number":2489,"title":"Misplaced comments after async function","user":{"login":"vkurchatkin","id":2993861,"avatar_url":"https://avatars.githubusercontent.com/u/2993861?v=3","gravatar_id":"","url":"https://api.github.com/users/vkurchatkin","html_url":"https://github.com/vkurchatkin","followers_url":"https://api.github.com/users/vkurchatkin/followers","following_url":"https://api.github.com/users/vkurchatkin/following{/other_user}","gists_url":"https://api.github.com/users/vkurchatkin/gists{/gist_id}","starred_url":"https://api.github.com/users/vkurchatkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vkurchatkin/subscriptions","organizations_url":"https://api.github.com/users/vkurchatkin/orgs","repos_url":"https://api.github.com/users/vkurchatkin/repos","events_url":"https://api.github.com/users/vkurchatkin/events{/privacy}","received_events_url":"https://api.github.com/users/vkurchatkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-05T12:18:17Z","updated_at":"2015-10-05T12:18:17Z","closed_at":null,"body":"I'm using async functions with `asyncToGenerator`. Here's what happens:\r\n\r\nThis:\r\n\r\n```js\r\nasync function a() {\r\n  \r\n}\r\n\r\n/* very useful comment */\r\nfunction b() {\r\n  \r\n}\r\n```\r\n\r\ncompiles to this:\r\n\r\n```js\r\n\"use strict\";\r\n\r\nvar a = _asyncToGenerator(function* () {}\r\n\r\n/* very useful comment */\r\n);\r\n\r\nfunction _asyncToGenerator(fn) { // ... }\r\n\r\nfunction b() {}\r\n```"}}