{"action":"created","comment":{"url":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/22820300","id":22820300,"diff_hunk":"@@ -107,15 +114,40 @@ function classCall(func, object, staticObject, superClass) {\n       `($traceurRuntime.createClass)(${func}, ${object}, ${staticObject})`;\n }\n \n+function methodNameFromToken(token) {","path":"src/codegeneration/ClassTransformer.js","position":27,"original_position":27,"commit_id":"fcd600a5f18b47814e0a09b31b693f546af86a34","original_commit_id":"fcd600a5f18b47814e0a09b31b693f546af86a34","user":{"login":"arv","id":45845,"avatar_url":"https://avatars.githubusercontent.com/u/45845?v=3","gravatar_id":"","url":"https://api.github.com/users/arv","html_url":"https://github.com/arv","followers_url":"https://api.github.com/users/arv/followers","following_url":"https://api.github.com/users/arv/following{/other_user}","gists_url":"https://api.github.com/users/arv/gists{/gist_id}","starred_url":"https://api.github.com/users/arv/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/arv/subscriptions","organizations_url":"https://api.github.com/users/arv/orgs","repos_url":"https://api.github.com/users/arv/repos","events_url":"https://api.github.com/users/arv/events{/privacy}","received_events_url":"https://api.github.com/users/arv/received_events","type":"User","site_admin":false},"body":"this is missleading... token is not a token.","created_at":"2015-01-12T20:41:38Z","updated_at":"2015-01-12T20:41:38Z","html_url":"https://github.com/google/traceur-compiler/pull/1582#discussion_r22820300","pull_request_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1582","_links":{"self":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/22820300"},"html":{"href":"https://github.com/google/traceur-compiler/pull/1582#discussion_r22820300"},"pull_request":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1582"}}},"pull_request":{"url":"https://api.github.com/repos/google/traceur-compiler/pulls/1582","id":25860554,"html_url":"https://github.com/google/traceur-compiler/pull/1582","diff_url":"https://github.com/google/traceur-compiler/pull/1582.diff","patch_url":"https://github.com/google/traceur-compiler/pull/1582.patch","issue_url":"https://api.github.com/repos/google/traceur-compiler/issues/1582","number":1582,"state":"open","locked":false,"title":"Class methods: generate named functions (for debugging)","user":{"login":"vojtajina","id":46647,"avatar_url":"https://avatars.githubusercontent.com/u/46647?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtajina","html_url":"https://github.com/vojtajina","followers_url":"https://api.github.com/users/vojtajina/followers","following_url":"https://api.github.com/users/vojtajina/following{/other_user}","gists_url":"https://api.github.com/users/vojtajina/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtajina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtajina/subscriptions","organizations_url":"https://api.github.com/users/vojtajina/orgs","repos_url":"https://api.github.com/users/vojtajina/repos","events_url":"https://api.github.com/users/vojtajina/events{/privacy}","received_events_url":"https://api.github.com/users/vojtajina/received_events","type":"User","site_admin":false},"body":"For class methods, generate named functions to make debugging easier.\r\n\r\nBefore:\r\n```\r\nclass Foo {\r\n  bar() {}\r\n  static baz() {}\r\n}\r\n\r\n// ->\r\n\r\n($traceurRuntime.createClass)(Foo, {\r\n  bar: function() {}\r\n}, {\r\n  baz: function() {}\r\n});\r\n```\r\n\r\nAfter:\r\n```\r\nclass Foo {\r\n  bar() {}\r\n  static baz() {}\r\n}\r\n\r\n// ->\r\n\r\n($traceurRuntime.createClass)(Foo, {\r\n  bar: function Foo_bar() {}\r\n}, {\r\n  baz: function Foo$baz() {}\r\n});\r\n```","created_at":"2014-12-10T22:23:00Z","updated_at":"2015-01-12T20:41:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"86d9a6d6810bfe38c3e05aab9697e45dabbf5566","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1582/commits","review_comments_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1582/comments","review_comment_url":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/{number}","comments_url":"https://api.github.com/repos/google/traceur-compiler/issues/1582/comments","statuses_url":"https://api.github.com/repos/google/traceur-compiler/statuses/fcd600a5f18b47814e0a09b31b693f546af86a34","head":{"label":"vojtajina:classmethods-debugname","ref":"classmethods-debugname","sha":"fcd600a5f18b47814e0a09b31b693f546af86a34","user":{"login":"vojtajina","id":46647,"avatar_url":"https://avatars.githubusercontent.com/u/46647?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtajina","html_url":"https://github.com/vojtajina","followers_url":"https://api.github.com/users/vojtajina/followers","following_url":"https://api.github.com/users/vojtajina/following{/other_user}","gists_url":"https://api.github.com/users/vojtajina/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtajina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtajina/subscriptions","organizations_url":"https://api.github.com/users/vojtajina/orgs","repos_url":"https://api.github.com/users/vojtajina/repos","events_url":"https://api.github.com/users/vojtajina/events{/privacy}","received_events_url":"https://api.github.com/users/vojtajina/received_events","type":"User","site_admin":false},"repo":{"id":14732513,"name":"traceur-compiler","full_name":"vojtajina/traceur-compiler","owner":{"login":"vojtajina","id":46647,"avatar_url":"https://avatars.githubusercontent.com/u/46647?v=3","gravatar_id":"","url":"https://api.github.com/users/vojtajina","html_url":"https://github.com/vojtajina","followers_url":"https://api.github.com/users/vojtajina/followers","following_url":"https://api.github.com/users/vojtajina/following{/other_user}","gists_url":"https://api.github.com/users/vojtajina/gists{/gist_id}","starred_url":"https://api.github.com/users/vojtajina/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vojtajina/subscriptions","organizations_url":"https://api.github.com/users/vojtajina/orgs","repos_url":"https://api.github.com/users/vojtajina/repos","events_url":"https://api.github.com/users/vojtajina/events{/privacy}","received_events_url":"https://api.github.com/users/vojtajina/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vojtajina/traceur-compiler","description":"Traceur is a JavaScript.next-to-JavaScript-of-today compiler","fork":true,"url":"https://api.github.com/repos/vojtajina/traceur-compiler","forks_url":"https://api.github.com/repos/vojtajina/traceur-compiler/forks","keys_url":"https://api.github.com/repos/vojtajina/traceur-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vojtajina/traceur-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vojtajina/traceur-compiler/teams","hooks_url":"https://api.github.com/repos/vojtajina/traceur-compiler/hooks","issue_events_url":"https://api.github.com/repos/vojtajina/traceur-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/vojtajina/traceur-compiler/events","assignees_url":"https://api.github.com/repos/vojtajina/traceur-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/vojtajina/traceur-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/vojtajina/traceur-compiler/tags","blobs_url":"https://api.github.com/repos/vojtajina/traceur-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vojtajina/traceur-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vojtajina/traceur-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/vojtajina/traceur-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vojtajina/traceur-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/vojtajina/traceur-compiler/languages","stargazers_url":"https://api.github.com/repos/vojtajina/traceur-compiler/stargazers","contributors_url":"https://api.github.com/repos/vojtajina/traceur-compiler/contributors","subscribers_url":"https://api.github.com/repos/vojtajina/traceur-compiler/subscribers","subscription_url":"https://api.github.com/repos/vojtajina/traceur-compiler/subscription","commits_url":"https://api.github.com/repos/vojtajina/traceur-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/vojtajina/traceur-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/vojtajina/traceur-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/vojtajina/traceur-compiler/issues/comments/{number}","contents_url":"https://api.github.com/repos/vojtajina/traceur-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/vojtajina/traceur-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vojtajina/traceur-compiler/merges","archive_url":"https://api.github.com/repos/vojtajina/traceur-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vojtajina/traceur-compiler/downloads","issues_url":"https://api.github.com/repos/vojtajina/traceur-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/vojtajina/traceur-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/vojtajina/traceur-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/vojtajina/traceur-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vojtajina/traceur-compiler/labels{/name}","releases_url":"https://api.github.com/repos/vojtajina/traceur-compiler/releases{/id}","created_at":"2013-11-26T23:42:52Z","updated_at":"2014-03-31T21:42:40Z","pushed_at":"2015-01-12T18:43:41Z","git_url":"git://github.com/vojtajina/traceur-compiler.git","ssh_url":"git@github.com:vojtajina/traceur-compiler.git","clone_url":"https://github.com/vojtajina/traceur-compiler.git","svn_url":"https://github.com/vojtajina/traceur-compiler","homepage":"","size":24186,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"bc482bfcd21e7884f469df7e7dac0839fb4c0859","user":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"repo":{"id":9060347,"name":"traceur-compiler","full_name":"google/traceur-compiler","owner":{"login":"google","id":1342004,"avatar_url":"https://avatars.githubusercontent.com/u/1342004?v=3","gravatar_id":"","url":"https://api.github.com/users/google","html_url":"https://github.com/google","followers_url":"https://api.github.com/users/google/followers","following_url":"https://api.github.com/users/google/following{/other_user}","gists_url":"https://api.github.com/users/google/gists{/gist_id}","starred_url":"https://api.github.com/users/google/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/google/subscriptions","organizations_url":"https://api.github.com/users/google/orgs","repos_url":"https://api.github.com/users/google/repos","events_url":"https://api.github.com/users/google/events{/privacy}","received_events_url":"https://api.github.com/users/google/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/google/traceur-compiler","description":"Traceur is a JavaScript.next-to-JavaScript-of-today compiler","fork":false,"url":"https://api.github.com/repos/google/traceur-compiler","forks_url":"https://api.github.com/repos/google/traceur-compiler/forks","keys_url":"https://api.github.com/repos/google/traceur-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/google/traceur-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/google/traceur-compiler/teams","hooks_url":"https://api.github.com/repos/google/traceur-compiler/hooks","issue_events_url":"https://api.github.com/repos/google/traceur-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/google/traceur-compiler/events","assignees_url":"https://api.github.com/repos/google/traceur-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/google/traceur-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/google/traceur-compiler/tags","blobs_url":"https://api.github.com/repos/google/traceur-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/google/traceur-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/google/traceur-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/google/traceur-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/google/traceur-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/google/traceur-compiler/languages","stargazers_url":"https://api.github.com/repos/google/traceur-compiler/stargazers","contributors_url":"https://api.github.com/repos/google/traceur-compiler/contributors","subscribers_url":"https://api.github.com/repos/google/traceur-compiler/subscribers","subscription_url":"https://api.github.com/repos/google/traceur-compiler/subscription","commits_url":"https://api.github.com/repos/google/traceur-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/google/traceur-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/google/traceur-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/google/traceur-compiler/issues/comments/{number}","contents_url":"https://api.github.com/repos/google/traceur-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/google/traceur-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/google/traceur-compiler/merges","archive_url":"https://api.github.com/repos/google/traceur-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/google/traceur-compiler/downloads","issues_url":"https://api.github.com/repos/google/traceur-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/google/traceur-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/google/traceur-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/google/traceur-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/google/traceur-compiler/labels{/name}","releases_url":"https://api.github.com/repos/google/traceur-compiler/releases{/id}","created_at":"2013-03-27T18:05:40Z","updated_at":"2015-01-12T19:35:40Z","pushed_at":"2015-01-12T17:57:30Z","git_url":"git://github.com/google/traceur-compiler.git","ssh_url":"git@github.com:google/traceur-compiler.git","clone_url":"https://github.com/google/traceur-compiler.git","svn_url":"https://github.com/google/traceur-compiler","homepage":"","size":33891,"stargazers_count":4262,"watchers_count":4262,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":250,"mirror_url":null,"open_issues_count":235,"forks":250,"open_issues":235,"watchers":4262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1582"},"html":{"href":"https://github.com/google/traceur-compiler/pull/1582"},"issue":{"href":"https://api.github.com/repos/google/traceur-compiler/issues/1582"},"comments":{"href":"https://api.github.com/repos/google/traceur-compiler/issues/1582/comments"},"review_comments":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1582/comments"},"review_comment":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1582/commits"},"statuses":{"href":"https://api.github.com/repos/google/traceur-compiler/statuses/fcd600a5f18b47814e0a09b31b693f546af86a34"}}}}