{"action":"created","comment":{"url":"https://api.github.com/repos/shapesecurity/shift-java/pulls/comments/22403242","id":22403242,"diff_hunk":"@@ -179,7 +181,13 @@ JsonObjectBuilder add(@NotNull String property, @NotNull Either<StringBuilder, S\n       return this;\n     }\n \n-    StringBuilder done() {\n+    StringBuilder done(@NotNull Node node) {\n+      SourceLocation loc = node.getLoc();\n+      if (loc != null) {\n+        this.add(\"range\",","path":"src/test/java/com/shapesecurity/shift/serialization/Serializer.java","position":18,"original_position":18,"commit_id":"5bedd81c5c93a4150d39848b28ecebd2a269b297","original_commit_id":"5bedd81c5c93a4150d39848b28ecebd2a269b297","user":{"login":"ikarienator","id":1472048,"avatar_url":"https://avatars.githubusercontent.com/u/1472048?v=3","gravatar_id":"","url":"https://api.github.com/users/ikarienator","html_url":"https://github.com/ikarienator","followers_url":"https://api.github.com/users/ikarienator/followers","following_url":"https://api.github.com/users/ikarienator/following{/other_user}","gists_url":"https://api.github.com/users/ikarienator/gists{/gist_id}","starred_url":"https://api.github.com/users/ikarienator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikarienator/subscriptions","organizations_url":"https://api.github.com/users/ikarienator/orgs","repos_url":"https://api.github.com/users/ikarienator/repos","events_url":"https://api.github.com/users/ikarienator/events{/privacy}","received_events_url":"https://api.github.com/users/ikarienator/received_events","type":"User","site_admin":false},"body":"It is easy to do the sanity check. BTW, the end index is much more important than the source but we cannot have it without providing the source right now. I believe it's a defect.","created_at":"2015-01-02T00:15:19Z","updated_at":"2015-01-02T00:15:19Z","html_url":"https://github.com/shapesecurity/shift-java/pull/21#discussion_r22403242","pull_request_url":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21","_links":{"self":{"href":"https://api.github.com/repos/shapesecurity/shift-java/pulls/comments/22403242"},"html":{"href":"https://github.com/shapesecurity/shift-java/pull/21#discussion_r22403242"},"pull_request":{"href":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21"}}},"pull_request":{"url":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21","id":26719621,"html_url":"https://github.com/shapesecurity/shift-java/pull/21","diff_url":"https://github.com/shapesecurity/shift-java/pull/21.diff","patch_url":"https://github.com/shapesecurity/shift-java/pull/21.patch","issue_url":"https://api.github.com/repos/shapesecurity/shift-java/issues/21","number":21,"state":"open","locked":false,"title":"source location tests","user":{"login":"ikarienator","id":1472048,"avatar_url":"https://avatars.githubusercontent.com/u/1472048?v=3","gravatar_id":"","url":"https://api.github.com/users/ikarienator","html_url":"https://github.com/ikarienator","followers_url":"https://api.github.com/users/ikarienator/followers","following_url":"https://api.github.com/users/ikarienator/following{/other_user}","gists_url":"https://api.github.com/users/ikarienator/gists{/gist_id}","starred_url":"https://api.github.com/users/ikarienator/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ikarienator/subscriptions","organizations_url":"https://api.github.com/users/ikarienator/orgs","repos_url":"https://api.github.com/users/ikarienator/repos","events_url":"https://api.github.com/users/ikarienator/events{/privacy}","received_events_url":"https://api.github.com/users/ikarienator/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-12-31T09:42:05Z","updated_at":"2015-01-02T00:15:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"623f73b5e58d9c5d73b0944c91b5ca42f469b1a8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21/commits","review_comments_url":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21/comments","review_comment_url":"https://api.github.com/repos/shapesecurity/shift-java/pulls/comments/{number}","comments_url":"https://api.github.com/repos/shapesecurity/shift-java/issues/21/comments","statuses_url":"https://api.github.com/repos/shapesecurity/shift-java/statuses/5bedd81c5c93a4150d39848b28ecebd2a269b297","head":{"label":"shapesecurity:source-location-tests","ref":"source-location-tests","sha":"5bedd81c5c93a4150d39848b28ecebd2a269b297","user":{"login":"shapesecurity","id":7728313,"avatar_url":"https://avatars.githubusercontent.com/u/7728313?v=3","gravatar_id":"","url":"https://api.github.com/users/shapesecurity","html_url":"https://github.com/shapesecurity","followers_url":"https://api.github.com/users/shapesecurity/followers","following_url":"https://api.github.com/users/shapesecurity/following{/other_user}","gists_url":"https://api.github.com/users/shapesecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/shapesecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shapesecurity/subscriptions","organizations_url":"https://api.github.com/users/shapesecurity/orgs","repos_url":"https://api.github.com/users/shapesecurity/repos","events_url":"https://api.github.com/users/shapesecurity/events{/privacy}","received_events_url":"https://api.github.com/users/shapesecurity/received_events","type":"Organization","site_admin":false},"repo":{"id":27738435,"name":"shift-java","full_name":"shapesecurity/shift-java","owner":{"login":"shapesecurity","id":7728313,"avatar_url":"https://avatars.githubusercontent.com/u/7728313?v=3","gravatar_id":"","url":"https://api.github.com/users/shapesecurity","html_url":"https://github.com/shapesecurity","followers_url":"https://api.github.com/users/shapesecurity/followers","following_url":"https://api.github.com/users/shapesecurity/following{/other_user}","gists_url":"https://api.github.com/users/shapesecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/shapesecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shapesecurity/subscriptions","organizations_url":"https://api.github.com/users/shapesecurity/orgs","repos_url":"https://api.github.com/users/shapesecurity/repos","events_url":"https://api.github.com/users/shapesecurity/events{/privacy}","received_events_url":"https://api.github.com/users/shapesecurity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shapesecurity/shift-java","description":"Shift format ECMAScript 5 AST tooling","fork":false,"url":"https://api.github.com/repos/shapesecurity/shift-java","forks_url":"https://api.github.com/repos/shapesecurity/shift-java/forks","keys_url":"https://api.github.com/repos/shapesecurity/shift-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shapesecurity/shift-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shapesecurity/shift-java/teams","hooks_url":"https://api.github.com/repos/shapesecurity/shift-java/hooks","issue_events_url":"https://api.github.com/repos/shapesecurity/shift-java/issues/events{/number}","events_url":"https://api.github.com/repos/shapesecurity/shift-java/events","assignees_url":"https://api.github.com/repos/shapesecurity/shift-java/assignees{/user}","branches_url":"https://api.github.com/repos/shapesecurity/shift-java/branches{/branch}","tags_url":"https://api.github.com/repos/shapesecurity/shift-java/tags","blobs_url":"https://api.github.com/repos/shapesecurity/shift-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shapesecurity/shift-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shapesecurity/shift-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/shapesecurity/shift-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shapesecurity/shift-java/statuses/{sha}","languages_url":"https://api.github.com/repos/shapesecurity/shift-java/languages","stargazers_url":"https://api.github.com/repos/shapesecurity/shift-java/stargazers","contributors_url":"https://api.github.com/repos/shapesecurity/shift-java/contributors","subscribers_url":"https://api.github.com/repos/shapesecurity/shift-java/subscribers","subscription_url":"https://api.github.com/repos/shapesecurity/shift-java/subscription","commits_url":"https://api.github.com/repos/shapesecurity/shift-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/shapesecurity/shift-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/shapesecurity/shift-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/shapesecurity/shift-java/issues/comments/{number}","contents_url":"https://api.github.com/repos/shapesecurity/shift-java/contents/{+path}","compare_url":"https://api.github.com/repos/shapesecurity/shift-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shapesecurity/shift-java/merges","archive_url":"https://api.github.com/repos/shapesecurity/shift-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shapesecurity/shift-java/downloads","issues_url":"https://api.github.com/repos/shapesecurity/shift-java/issues{/number}","pulls_url":"https://api.github.com/repos/shapesecurity/shift-java/pulls{/number}","milestones_url":"https://api.github.com/repos/shapesecurity/shift-java/milestones{/number}","notifications_url":"https://api.github.com/repos/shapesecurity/shift-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shapesecurity/shift-java/labels{/name}","releases_url":"https://api.github.com/repos/shapesecurity/shift-java/releases{/id}","created_at":"2014-12-08T22:30:40Z","updated_at":"2014-12-31T09:52:56Z","pushed_at":"2014-12-31T10:03:26Z","git_url":"git://github.com/shapesecurity/shift-java.git","ssh_url":"git@github.com:shapesecurity/shift-java.git","clone_url":"https://github.com/shapesecurity/shift-java.git","svn_url":"https://github.com/shapesecurity/shift-java","homepage":"","size":30545,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"base":{"label":"shapesecurity:source-location","ref":"source-location","sha":"ea118109cc38b6ea130f7ca8a317ea1e7ed99a01","user":{"login":"shapesecurity","id":7728313,"avatar_url":"https://avatars.githubusercontent.com/u/7728313?v=3","gravatar_id":"","url":"https://api.github.com/users/shapesecurity","html_url":"https://github.com/shapesecurity","followers_url":"https://api.github.com/users/shapesecurity/followers","following_url":"https://api.github.com/users/shapesecurity/following{/other_user}","gists_url":"https://api.github.com/users/shapesecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/shapesecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shapesecurity/subscriptions","organizations_url":"https://api.github.com/users/shapesecurity/orgs","repos_url":"https://api.github.com/users/shapesecurity/repos","events_url":"https://api.github.com/users/shapesecurity/events{/privacy}","received_events_url":"https://api.github.com/users/shapesecurity/received_events","type":"Organization","site_admin":false},"repo":{"id":27738435,"name":"shift-java","full_name":"shapesecurity/shift-java","owner":{"login":"shapesecurity","id":7728313,"avatar_url":"https://avatars.githubusercontent.com/u/7728313?v=3","gravatar_id":"","url":"https://api.github.com/users/shapesecurity","html_url":"https://github.com/shapesecurity","followers_url":"https://api.github.com/users/shapesecurity/followers","following_url":"https://api.github.com/users/shapesecurity/following{/other_user}","gists_url":"https://api.github.com/users/shapesecurity/gists{/gist_id}","starred_url":"https://api.github.com/users/shapesecurity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shapesecurity/subscriptions","organizations_url":"https://api.github.com/users/shapesecurity/orgs","repos_url":"https://api.github.com/users/shapesecurity/repos","events_url":"https://api.github.com/users/shapesecurity/events{/privacy}","received_events_url":"https://api.github.com/users/shapesecurity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/shapesecurity/shift-java","description":"Shift format ECMAScript 5 AST tooling","fork":false,"url":"https://api.github.com/repos/shapesecurity/shift-java","forks_url":"https://api.github.com/repos/shapesecurity/shift-java/forks","keys_url":"https://api.github.com/repos/shapesecurity/shift-java/keys{/key_id}","collaborators_url":"https://api.github.com/repos/shapesecurity/shift-java/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/shapesecurity/shift-java/teams","hooks_url":"https://api.github.com/repos/shapesecurity/shift-java/hooks","issue_events_url":"https://api.github.com/repos/shapesecurity/shift-java/issues/events{/number}","events_url":"https://api.github.com/repos/shapesecurity/shift-java/events","assignees_url":"https://api.github.com/repos/shapesecurity/shift-java/assignees{/user}","branches_url":"https://api.github.com/repos/shapesecurity/shift-java/branches{/branch}","tags_url":"https://api.github.com/repos/shapesecurity/shift-java/tags","blobs_url":"https://api.github.com/repos/shapesecurity/shift-java/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/shapesecurity/shift-java/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/shapesecurity/shift-java/git/refs{/sha}","trees_url":"https://api.github.com/repos/shapesecurity/shift-java/git/trees{/sha}","statuses_url":"https://api.github.com/repos/shapesecurity/shift-java/statuses/{sha}","languages_url":"https://api.github.com/repos/shapesecurity/shift-java/languages","stargazers_url":"https://api.github.com/repos/shapesecurity/shift-java/stargazers","contributors_url":"https://api.github.com/repos/shapesecurity/shift-java/contributors","subscribers_url":"https://api.github.com/repos/shapesecurity/shift-java/subscribers","subscription_url":"https://api.github.com/repos/shapesecurity/shift-java/subscription","commits_url":"https://api.github.com/repos/shapesecurity/shift-java/commits{/sha}","git_commits_url":"https://api.github.com/repos/shapesecurity/shift-java/git/commits{/sha}","comments_url":"https://api.github.com/repos/shapesecurity/shift-java/comments{/number}","issue_comment_url":"https://api.github.com/repos/shapesecurity/shift-java/issues/comments/{number}","contents_url":"https://api.github.com/repos/shapesecurity/shift-java/contents/{+path}","compare_url":"https://api.github.com/repos/shapesecurity/shift-java/compare/{base}...{head}","merges_url":"https://api.github.com/repos/shapesecurity/shift-java/merges","archive_url":"https://api.github.com/repos/shapesecurity/shift-java/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/shapesecurity/shift-java/downloads","issues_url":"https://api.github.com/repos/shapesecurity/shift-java/issues{/number}","pulls_url":"https://api.github.com/repos/shapesecurity/shift-java/pulls{/number}","milestones_url":"https://api.github.com/repos/shapesecurity/shift-java/milestones{/number}","notifications_url":"https://api.github.com/repos/shapesecurity/shift-java/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/shapesecurity/shift-java/labels{/name}","releases_url":"https://api.github.com/repos/shapesecurity/shift-java/releases{/id}","created_at":"2014-12-08T22:30:40Z","updated_at":"2014-12-31T09:52:56Z","pushed_at":"2014-12-31T10:03:26Z","git_url":"git://github.com/shapesecurity/shift-java.git","ssh_url":"git@github.com:shapesecurity/shift-java.git","clone_url":"https://github.com/shapesecurity/shift-java.git","svn_url":"https://github.com/shapesecurity/shift-java","homepage":"","size":30545,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":4,"forks":1,"open_issues":4,"watchers":1,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21"},"html":{"href":"https://github.com/shapesecurity/shift-java/pull/21"},"issue":{"href":"https://api.github.com/repos/shapesecurity/shift-java/issues/21"},"comments":{"href":"https://api.github.com/repos/shapesecurity/shift-java/issues/21/comments"},"review_comments":{"href":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21/comments"},"review_comment":{"href":"https://api.github.com/repos/shapesecurity/shift-java/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/shapesecurity/shift-java/pulls/21/commits"},"statuses":{"href":"https://api.github.com/repos/shapesecurity/shift-java/statuses/5bedd81c5c93a4150d39848b28ecebd2a269b297"}}}}