{"action":"created","comment":{"url":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/31391646","id":31391646,"diff_hunk":"@@ -1868,16 +1873,18 @@ export class Parser {\n           result.push(new CaseClause(this.getTreeLocation_(start), expression, statements));\n           break;\n         }\n-        case DEFAULT:\n+        case DEFAULT: {\n+          let defaultToken = nextToken();\n           if (foundDefaultClause) {\n-            this.reportError_('Switch statements may have at most one default clause');","path":"src/syntax/Parser.js","position":72,"original_position":72,"commit_id":"5da1633d4edb23c545873cf9c04ba3cd5da5a64c","original_commit_id":"5da1633d4edb23c545873cf9c04ba3cd5da5a64c","user":{"login":"johnjbarton","id":205570,"avatar_url":"https://avatars.githubusercontent.com/u/205570?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjbarton","html_url":"https://github.com/johnjbarton","followers_url":"https://api.github.com/users/johnjbarton/followers","following_url":"https://api.github.com/users/johnjbarton/following{/other_user}","gists_url":"https://api.github.com/users/johnjbarton/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjbarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjbarton/subscriptions","organizations_url":"https://api.github.com/users/johnjbarton/orgs","repos_url":"https://api.github.com/users/johnjbarton/repos","events_url":"https://api.github.com/users/johnjbarton/events{/privacy}","received_events_url":"https://api.github.com/users/johnjbarton/received_events","type":"User","site_admin":false},"body":"Maybe `\\'default\\'` clause","created_at":"2015-05-31T16:10:46Z","updated_at":"2015-05-31T16:10:46Z","html_url":"https://github.com/google/traceur-compiler/pull/1944#discussion_r31391646","pull_request_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1944","_links":{"self":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/comments/31391646"},"html":{"href":"https://github.com/google/traceur-compiler/pull/1944#discussion_r31391646"},"pull_request":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1944"}}},"pull_request":{"url":"https://api.github.com/repos/google/traceur-compiler/pulls/1944","id":36444380,"html_url":"https://github.com/google/traceur-compiler/pull/1944","diff_url":"https://github.com/google/traceur-compiler/pull/1944.diff","patch_url":"https://github.com/google/traceur-compiler/pull/1944.patch","issue_url":"https://api.github.com/repos/google/traceur-compiler/issues/1944","number":1944,"state":"open","locked":false,"title":"Make the ErrorReporter take a SourceRange instead","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 allows better error reporting in editors for example.\r\n\r\nFixes #1938","created_at":"2015-05-28T19:56:30Z","updated_at":"2015-05-31T16:10:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"9a4206d688fd95484e5e516ab480474233f2f2ba","assignee":{"login":"johnjbarton","id":205570,"avatar_url":"https://avatars.githubusercontent.com/u/205570?v=3","gravatar_id":"","url":"https://api.github.com/users/johnjbarton","html_url":"https://github.com/johnjbarton","followers_url":"https://api.github.com/users/johnjbarton/followers","following_url":"https://api.github.com/users/johnjbarton/following{/other_user}","gists_url":"https://api.github.com/users/johnjbarton/gists{/gist_id}","starred_url":"https://api.github.com/users/johnjbarton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnjbarton/subscriptions","organizations_url":"https://api.github.com/users/johnjbarton/orgs","repos_url":"https://api.github.com/users/johnjbarton/repos","events_url":"https://api.github.com/users/johnjbarton/events{/privacy}","received_events_url":"https://api.github.com/users/johnjbarton/received_events","type":"User","site_admin":false},"milestone":null,"commits_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1944/commits","review_comments_url":"https://api.github.com/repos/google/traceur-compiler/pulls/1944/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/1944/comments","statuses_url":"https://api.github.com/repos/google/traceur-compiler/statuses/5da1633d4edb23c545873cf9c04ba3cd5da5a64c","head":{"label":"arv:report-range","ref":"report-range","sha":"5da1633d4edb23c545873cf9c04ba3cd5da5a64c","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},"repo":{"id":9069860,"name":"traceur-compiler","full_name":"arv/traceur-compiler","owner":{"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},"private":false,"html_url":"https://github.com/arv/traceur-compiler","description":"Traceur is a JavaScript.next-to-JavaScript-of-today compiler","fork":true,"url":"https://api.github.com/repos/arv/traceur-compiler","forks_url":"https://api.github.com/repos/arv/traceur-compiler/forks","keys_url":"https://api.github.com/repos/arv/traceur-compiler/keys{/key_id}","collaborators_url":"https://api.github.com/repos/arv/traceur-compiler/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/arv/traceur-compiler/teams","hooks_url":"https://api.github.com/repos/arv/traceur-compiler/hooks","issue_events_url":"https://api.github.com/repos/arv/traceur-compiler/issues/events{/number}","events_url":"https://api.github.com/repos/arv/traceur-compiler/events","assignees_url":"https://api.github.com/repos/arv/traceur-compiler/assignees{/user}","branches_url":"https://api.github.com/repos/arv/traceur-compiler/branches{/branch}","tags_url":"https://api.github.com/repos/arv/traceur-compiler/tags","blobs_url":"https://api.github.com/repos/arv/traceur-compiler/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/arv/traceur-compiler/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/arv/traceur-compiler/git/refs{/sha}","trees_url":"https://api.github.com/repos/arv/traceur-compiler/git/trees{/sha}","statuses_url":"https://api.github.com/repos/arv/traceur-compiler/statuses/{sha}","languages_url":"https://api.github.com/repos/arv/traceur-compiler/languages","stargazers_url":"https://api.github.com/repos/arv/traceur-compiler/stargazers","contributors_url":"https://api.github.com/repos/arv/traceur-compiler/contributors","subscribers_url":"https://api.github.com/repos/arv/traceur-compiler/subscribers","subscription_url":"https://api.github.com/repos/arv/traceur-compiler/subscription","commits_url":"https://api.github.com/repos/arv/traceur-compiler/commits{/sha}","git_commits_url":"https://api.github.com/repos/arv/traceur-compiler/git/commits{/sha}","comments_url":"https://api.github.com/repos/arv/traceur-compiler/comments{/number}","issue_comment_url":"https://api.github.com/repos/arv/traceur-compiler/issues/comments{/number}","contents_url":"https://api.github.com/repos/arv/traceur-compiler/contents/{+path}","compare_url":"https://api.github.com/repos/arv/traceur-compiler/compare/{base}...{head}","merges_url":"https://api.github.com/repos/arv/traceur-compiler/merges","archive_url":"https://api.github.com/repos/arv/traceur-compiler/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/arv/traceur-compiler/downloads","issues_url":"https://api.github.com/repos/arv/traceur-compiler/issues{/number}","pulls_url":"https://api.github.com/repos/arv/traceur-compiler/pulls{/number}","milestones_url":"https://api.github.com/repos/arv/traceur-compiler/milestones{/number}","notifications_url":"https://api.github.com/repos/arv/traceur-compiler/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/arv/traceur-compiler/labels{/name}","releases_url":"https://api.github.com/repos/arv/traceur-compiler/releases{/id}","created_at":"2013-03-28T04:13:00Z","updated_at":"2015-05-07T15:57:39Z","pushed_at":"2015-05-28T19:56:25Z","git_url":"git://github.com/arv/traceur-compiler.git","ssh_url":"git@github.com:arv/traceur-compiler.git","clone_url":"https://github.com/arv/traceur-compiler.git","svn_url":"https://github.com/arv/traceur-compiler","homepage":"","size":27150,"stargazers_count":10,"watchers_count":10,"language":"JavaScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":10,"default_branch":"master"}},"base":{"label":"google:master","ref":"master","sha":"c62ce8f7a469c52eacd1496e4d34ea19fabf6ff9","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-05-31T10:47:50Z","pushed_at":"2015-05-28T19:56:31Z","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":39448,"stargazers_count":5307,"watchers_count":5307,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":313,"mirror_url":null,"open_issues_count":275,"forks":313,"open_issues":275,"watchers":5307,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1944"},"html":{"href":"https://github.com/google/traceur-compiler/pull/1944"},"issue":{"href":"https://api.github.com/repos/google/traceur-compiler/issues/1944"},"comments":{"href":"https://api.github.com/repos/google/traceur-compiler/issues/1944/comments"},"review_comments":{"href":"https://api.github.com/repos/google/traceur-compiler/pulls/1944/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/1944/commits"},"statuses":{"href":"https://api.github.com/repos/google/traceur-compiler/statuses/5da1633d4edb23c545873cf9c04ba3cd5da5a64c"}}}}