{"action":"opened","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2704","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2704/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2704/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/2704/events","html_url":"https://github.com/Microsoft/TypeScript/issues/2704","id":67502324,"number":2704,"title":"If the expression after the return statement is on a new line, the generated code is incorrect","user":{"login":"victorhurdugaci","id":5921642,"avatar_url":"https://avatars.githubusercontent.com/u/5921642?v=3","gravatar_id":"","url":"https://api.github.com/users/victorhurdugaci","html_url":"https://github.com/victorhurdugaci","followers_url":"https://api.github.com/users/victorhurdugaci/followers","following_url":"https://api.github.com/users/victorhurdugaci/following{/other_user}","gists_url":"https://api.github.com/users/victorhurdugaci/gists{/gist_id}","starred_url":"https://api.github.com/users/victorhurdugaci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/victorhurdugaci/subscriptions","organizations_url":"https://api.github.com/users/victorhurdugaci/orgs","repos_url":"https://api.github.com/users/victorhurdugaci/repos","events_url":"https://api.github.com/users/victorhurdugaci/events{/privacy}","received_events_url":"https://api.github.com/users/victorhurdugaci/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-10T03:49:46Z","updated_at":"2015-04-10T03:49:46Z","closed_at":null,"body":"Typescript:\r\n\r\n```\r\n    private isIdentifierCharacter(char: string): boolean {\r\n        var charCode = char.charCodeAt(0);\r\n        return\r\n            ((charCode >= 'a'.charCodeAt(0) && charCode <= 'z'.charCodeAt(0)) ||\r\n            charCode == '_'.charCodeAt(0));\r\n    }\r\n```\r\n\r\nGenerated js:\r\n\r\n```\r\n FormulaScanner.prototype.isIdentifierCharacter = function (char) {\r\n        var charCode = char.charCodeAt(0);\r\n        return;\r\n        ((charCode >= 'a'.charCodeAt(0) && charCode <= 'z'.charCodeAt(0)) || charCode == '_'.charCodeAt(0));\r\n    };\r\n```\r\n\r\nNotice the `;` after `return` in the generated code."}}