{"action":"created","comment":{"url":"https://api.github.com/repos/alexeagle/ts2dart/pulls/comments/26320815","id":26320815,"diff_hunk":"@@ -387,11 +387,14 @@ export function translateProgram(program: ts.Program): string {\n }\n \n export function translateFiles(fileNames: string[]): string {\n-  var options: ts.CompilerOptions = { target: ts.ScriptTarget.ES6, module: ts.ModuleKind.CommonJS };\n+  var options: ts.CompilerOptions = {\n+    target: ts.ScriptTarget.ES6,\n+    module: ts.ModuleKind.CommonJS\n+  };\n   var host = ts.createCompilerHost(options);\n   var program = ts.createProgram(fileNames, options, host);\n   return translateProgram(program);\n }\n \n // CLI entry point\n-translateFiles(process.argv.slice(2));\n+translateFiles(process.argv.slice(2));","path":"main.ts","position":null,"original_position":311,"commit_id":"e122b6f2005e50715aa07fff1d70777e07f57b73","original_commit_id":"a73b3dae419bfe7e62a0bc645a57615b1e02cdd5","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"body":"I was wrong, I ran the formatter again and it didn't eat a final newline. Looks pretty good, will commit now.\r\nNext step is to format the test and then turn on the enforcement somehow.","created_at":"2015-03-12T16:53:05Z","updated_at":"2015-03-12T16:53:05Z","html_url":"https://github.com/alexeagle/ts2dart/pull/19#discussion_r26320815","pull_request_url":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19","_links":{"self":{"href":"https://api.github.com/repos/alexeagle/ts2dart/pulls/comments/26320815"},"html":{"href":"https://github.com/alexeagle/ts2dart/pull/19#discussion_r26320815"},"pull_request":{"href":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19"}}},"pull_request":{"url":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19","id":30998386,"html_url":"https://github.com/alexeagle/ts2dart/pull/19","diff_url":"https://github.com/alexeagle/ts2dart/pull/19.diff","patch_url":"https://github.com/alexeagle/ts2dart/pull/19.patch","issue_url":"https://api.github.com/repos/alexeagle/ts2dart/issues/19","number":19,"state":"open","locked":false,"title":"Formatter","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"body":"The gulp task is working (warns if your file isn't formatted).\r\nBut the resulting format is still buggy, eg. \\n in the middle of a => operator.","created_at":"2015-03-12T00:18:13Z","updated_at":"2015-03-12T16:53:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa01440ccd6654322ad15e0fbd1582ced2025267","assignee":{"login":"mprobst","id":7208,"avatar_url":"https://avatars.githubusercontent.com/u/7208?v=3","gravatar_id":"","url":"https://api.github.com/users/mprobst","html_url":"https://github.com/mprobst","followers_url":"https://api.github.com/users/mprobst/followers","following_url":"https://api.github.com/users/mprobst/following{/other_user}","gists_url":"https://api.github.com/users/mprobst/gists{/gist_id}","starred_url":"https://api.github.com/users/mprobst/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mprobst/subscriptions","organizations_url":"https://api.github.com/users/mprobst/orgs","repos_url":"https://api.github.com/users/mprobst/repos","events_url":"https://api.github.com/users/mprobst/events{/privacy}","received_events_url":"https://api.github.com/users/mprobst/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19/commits","review_comments_url":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19/comments","review_comment_url":"https://api.github.com/repos/alexeagle/ts2dart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/alexeagle/ts2dart/issues/19/comments","statuses_url":"https://api.github.com/repos/alexeagle/ts2dart/statuses/e122b6f2005e50715aa07fff1d70777e07f57b73","head":{"label":"alexeagle:formatter","ref":"formatter","sha":"e122b6f2005e50715aa07fff1d70777e07f57b73","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"repo":{"id":31740122,"name":"ts2dart","full_name":"alexeagle/ts2dart","owner":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeagle/ts2dart","description":"","fork":false,"url":"https://api.github.com/repos/alexeagle/ts2dart","forks_url":"https://api.github.com/repos/alexeagle/ts2dart/forks","keys_url":"https://api.github.com/repos/alexeagle/ts2dart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeagle/ts2dart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeagle/ts2dart/teams","hooks_url":"https://api.github.com/repos/alexeagle/ts2dart/hooks","issue_events_url":"https://api.github.com/repos/alexeagle/ts2dart/issues/events{/number}","events_url":"https://api.github.com/repos/alexeagle/ts2dart/events","assignees_url":"https://api.github.com/repos/alexeagle/ts2dart/assignees{/user}","branches_url":"https://api.github.com/repos/alexeagle/ts2dart/branches{/branch}","tags_url":"https://api.github.com/repos/alexeagle/ts2dart/tags","blobs_url":"https://api.github.com/repos/alexeagle/ts2dart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeagle/ts2dart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeagle/ts2dart/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeagle/ts2dart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeagle/ts2dart/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeagle/ts2dart/languages","stargazers_url":"https://api.github.com/repos/alexeagle/ts2dart/stargazers","contributors_url":"https://api.github.com/repos/alexeagle/ts2dart/contributors","subscribers_url":"https://api.github.com/repos/alexeagle/ts2dart/subscribers","subscription_url":"https://api.github.com/repos/alexeagle/ts2dart/subscription","commits_url":"https://api.github.com/repos/alexeagle/ts2dart/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeagle/ts2dart/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeagle/ts2dart/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeagle/ts2dart/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeagle/ts2dart/contents/{+path}","compare_url":"https://api.github.com/repos/alexeagle/ts2dart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeagle/ts2dart/merges","archive_url":"https://api.github.com/repos/alexeagle/ts2dart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeagle/ts2dart/downloads","issues_url":"https://api.github.com/repos/alexeagle/ts2dart/issues{/number}","pulls_url":"https://api.github.com/repos/alexeagle/ts2dart/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeagle/ts2dart/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeagle/ts2dart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeagle/ts2dart/labels{/name}","releases_url":"https://api.github.com/repos/alexeagle/ts2dart/releases{/id}","created_at":"2015-03-05T22:27:22Z","updated_at":"2015-03-12T16:44:25Z","pushed_at":"2015-03-12T16:51:14Z","git_url":"git://github.com/alexeagle/ts2dart.git","ssh_url":"git@github.com:alexeagle/ts2dart.git","clone_url":"https://github.com/alexeagle/ts2dart.git","svn_url":"https://github.com/alexeagle/ts2dart","homepage":null,"size":388,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"alexeagle:master","ref":"master","sha":"b518d8c6b0b79de4f9ac1e2b135cc467a071770a","user":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"repo":{"id":31740122,"name":"ts2dart","full_name":"alexeagle/ts2dart","owner":{"login":"alexeagle","id":47395,"avatar_url":"https://avatars.githubusercontent.com/u/47395?v=3","gravatar_id":"","url":"https://api.github.com/users/alexeagle","html_url":"https://github.com/alexeagle","followers_url":"https://api.github.com/users/alexeagle/followers","following_url":"https://api.github.com/users/alexeagle/following{/other_user}","gists_url":"https://api.github.com/users/alexeagle/gists{/gist_id}","starred_url":"https://api.github.com/users/alexeagle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alexeagle/subscriptions","organizations_url":"https://api.github.com/users/alexeagle/orgs","repos_url":"https://api.github.com/users/alexeagle/repos","events_url":"https://api.github.com/users/alexeagle/events{/privacy}","received_events_url":"https://api.github.com/users/alexeagle/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/alexeagle/ts2dart","description":"","fork":false,"url":"https://api.github.com/repos/alexeagle/ts2dart","forks_url":"https://api.github.com/repos/alexeagle/ts2dart/forks","keys_url":"https://api.github.com/repos/alexeagle/ts2dart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alexeagle/ts2dart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alexeagle/ts2dart/teams","hooks_url":"https://api.github.com/repos/alexeagle/ts2dart/hooks","issue_events_url":"https://api.github.com/repos/alexeagle/ts2dart/issues/events{/number}","events_url":"https://api.github.com/repos/alexeagle/ts2dart/events","assignees_url":"https://api.github.com/repos/alexeagle/ts2dart/assignees{/user}","branches_url":"https://api.github.com/repos/alexeagle/ts2dart/branches{/branch}","tags_url":"https://api.github.com/repos/alexeagle/ts2dart/tags","blobs_url":"https://api.github.com/repos/alexeagle/ts2dart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alexeagle/ts2dart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alexeagle/ts2dart/git/refs{/sha}","trees_url":"https://api.github.com/repos/alexeagle/ts2dart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alexeagle/ts2dart/statuses/{sha}","languages_url":"https://api.github.com/repos/alexeagle/ts2dart/languages","stargazers_url":"https://api.github.com/repos/alexeagle/ts2dart/stargazers","contributors_url":"https://api.github.com/repos/alexeagle/ts2dart/contributors","subscribers_url":"https://api.github.com/repos/alexeagle/ts2dart/subscribers","subscription_url":"https://api.github.com/repos/alexeagle/ts2dart/subscription","commits_url":"https://api.github.com/repos/alexeagle/ts2dart/commits{/sha}","git_commits_url":"https://api.github.com/repos/alexeagle/ts2dart/git/commits{/sha}","comments_url":"https://api.github.com/repos/alexeagle/ts2dart/comments{/number}","issue_comment_url":"https://api.github.com/repos/alexeagle/ts2dart/issues/comments{/number}","contents_url":"https://api.github.com/repos/alexeagle/ts2dart/contents/{+path}","compare_url":"https://api.github.com/repos/alexeagle/ts2dart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alexeagle/ts2dart/merges","archive_url":"https://api.github.com/repos/alexeagle/ts2dart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alexeagle/ts2dart/downloads","issues_url":"https://api.github.com/repos/alexeagle/ts2dart/issues{/number}","pulls_url":"https://api.github.com/repos/alexeagle/ts2dart/pulls{/number}","milestones_url":"https://api.github.com/repos/alexeagle/ts2dart/milestones{/number}","notifications_url":"https://api.github.com/repos/alexeagle/ts2dart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alexeagle/ts2dart/labels{/name}","releases_url":"https://api.github.com/repos/alexeagle/ts2dart/releases{/id}","created_at":"2015-03-05T22:27:22Z","updated_at":"2015-03-12T16:44:25Z","pushed_at":"2015-03-12T16:51:14Z","git_url":"git://github.com/alexeagle/ts2dart.git","ssh_url":"git@github.com:alexeagle/ts2dart.git","clone_url":"https://github.com/alexeagle/ts2dart.git","svn_url":"https://github.com/alexeagle/ts2dart","homepage":null,"size":388,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19"},"html":{"href":"https://github.com/alexeagle/ts2dart/pull/19"},"issue":{"href":"https://api.github.com/repos/alexeagle/ts2dart/issues/19"},"comments":{"href":"https://api.github.com/repos/alexeagle/ts2dart/issues/19/comments"},"review_comments":{"href":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19/comments"},"review_comment":{"href":"https://api.github.com/repos/alexeagle/ts2dart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/alexeagle/ts2dart/pulls/19/commits"},"statuses":{"href":"https://api.github.com/repos/alexeagle/ts2dart/statuses/e122b6f2005e50715aa07fff1d70777e07f57b73"}}}}