{"action":"created","comment":{"url":"https://api.github.com/repos/javaparser/javaparser/pulls/comments/88803399","pull_request_review_id":9366153,"id":88803399,"diff_hunk":"@@ -1302,14 +1302,13 @@ CompilationUnit CompilationUnit():\n \tImportDeclaration in = null;\n \tNodeList<TypeDeclaration<?>> types = emptyList();\n \tTypeDeclaration tn = null;\n-\tPosition begin = INVALID;\n }\n {\n-  [ LOOKAHEAD(PackageDeclaration()) pakage = PackageDeclaration() {begin = begin.orIfInvalid(pakage.getBegin());} ]\n-  ( in = ImportDeclaration()      { begin = begin.orIfInvalid(in.getBegin()); imports = add(imports, in); } )*\n-  ( tn = TypeDeclaration() { begin = begin.orIfInvalid(tn.getBegin()); types = add(types, tn); } )*\n+  [ LOOKAHEAD(PackageDeclaration()) pakage = PackageDeclaration() ]\n+  ( in = ImportDeclaration() { imports = add(imports, in); } )*\n+  ( tn = TypeDeclaration() { types = add(types, tn); } )*\n   (<EOF> | \"\\u001A\" /** ctrl+z char **/)\n-  { return new CompilationUnit(begin.invalid() ? Range.UNKNOWN : range(begin, tokenEnd()), pakage, imports, types); }\n+  { return new CompilationUnit(range(pos(1, 1), tokenEnd()), pakage, imports, types); }","path":"javaparser-core/src/main/javacc/java_1_8.jj","position":15,"original_position":15,"commit_id":"251a50530c05521c6ad8f7dc68be19c2c278b6aa","original_commit_id":"251a50530c05521c6ad8f7dc68be19c2c278b6aa","user":{"login":"ftomassetti","id":439078,"avatar_url":"https://avatars.githubusercontent.com/u/439078?v=3","gravatar_id":"","url":"https://api.github.com/users/ftomassetti","html_url":"https://github.com/ftomassetti","followers_url":"https://api.github.com/users/ftomassetti/followers","following_url":"https://api.github.com/users/ftomassetti/following{/other_user}","gists_url":"https://api.github.com/users/ftomassetti/gists{/gist_id}","starred_url":"https://api.github.com/users/ftomassetti/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ftomassetti/subscriptions","organizations_url":"https://api.github.com/users/ftomassetti/orgs","repos_url":"https://api.github.com/users/ftomassetti/repos","events_url":"https://api.github.com/users/ftomassetti/events{/privacy}","received_events_url":"https://api.github.com/users/ftomassetti/received_events","type":"User","site_admin":false},"body":"Maybe you can use Postion.HOME here","created_at":"2016-11-20T15:03:40Z","updated_at":"2016-11-20T15:03:40Z","html_url":"https://github.com/javaparser/javaparser/pull/579#discussion_r88803399","pull_request_url":"https://api.github.com/repos/javaparser/javaparser/pulls/579","_links":{"self":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/comments/88803399"},"html":{"href":"https://github.com/javaparser/javaparser/pull/579#discussion_r88803399"},"pull_request":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/579"}}},"pull_request":{"url":"https://api.github.com/repos/javaparser/javaparser/pulls/579","id":94519288,"html_url":"https://github.com/javaparser/javaparser/pull/579","diff_url":"https://github.com/javaparser/javaparser/pull/579.diff","patch_url":"https://github.com/javaparser/javaparser/pull/579.patch","issue_url":"https://api.github.com/repos/javaparser/javaparser/issues/579","number":579,"state":"open","locked":false,"title":"Issue 578: set range of compilationunit to cover the whole file","user":{"login":"matozoid","id":55701,"avatar_url":"https://avatars.githubusercontent.com/u/55701?v=3","gravatar_id":"","url":"https://api.github.com/users/matozoid","html_url":"https://github.com/matozoid","followers_url":"https://api.github.com/users/matozoid/followers","following_url":"https://api.github.com/users/matozoid/following{/other_user}","gists_url":"https://api.github.com/users/matozoid/gists{/gist_id}","starred_url":"https://api.github.com/users/matozoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matozoid/subscriptions","organizations_url":"https://api.github.com/users/matozoid/orgs","repos_url":"https://api.github.com/users/matozoid/repos","events_url":"https://api.github.com/users/matozoid/events{/privacy}","received_events_url":"https://api.github.com/users/matozoid/received_events","type":"User","site_admin":false},"body":"Fixes #578","created_at":"2016-11-20T14:16:45Z","updated_at":"2016-11-20T15:03:40Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3ecc072bf2561c89fa091216b4a040bc99730e45","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/javaparser/javaparser/pulls/579/commits","review_comments_url":"https://api.github.com/repos/javaparser/javaparser/pulls/579/comments","review_comment_url":"https://api.github.com/repos/javaparser/javaparser/pulls/comments{/number}","comments_url":"https://api.github.com/repos/javaparser/javaparser/issues/579/comments","statuses_url":"https://api.github.com/repos/javaparser/javaparser/statuses/251a50530c05521c6ad8f7dc68be19c2c278b6aa","head":{"label":"matozoid:issue_578_compilationunit_range","ref":"issue_578_compilationunit_range","sha":"251a50530c05521c6ad8f7dc68be19c2c278b6aa","user":{"login":"matozoid","id":55701,"avatar_url":"https://avatars.githubusercontent.com/u/55701?v=3","gravatar_id":"","url":"https://api.github.com/users/matozoid","html_url":"https://github.com/matozoid","followers_url":"https://api.github.com/users/matozoid/followers","following_url":"https://api.github.com/users/matozoid/following{/other_user}","gists_url":"https://api.github.com/users/matozoid/gists{/gist_id}","starred_url":"https://api.github.com/users/matozoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matozoid/subscriptions","organizations_url":"https://api.github.com/users/matozoid/orgs","repos_url":"https://api.github.com/users/matozoid/repos","events_url":"https://api.github.com/users/matozoid/events{/privacy}","received_events_url":"https://api.github.com/users/matozoid/received_events","type":"User","site_admin":false},"repo":{"id":62242732,"name":"javaparser","full_name":"matozoid/javaparser","owner":{"login":"matozoid","id":55701,"avatar_url":"https://avatars.githubusercontent.com/u/55701?v=3","gravatar_id":"","url":"https://api.github.com/users/matozoid","html_url":"https://github.com/matozoid","followers_url":"https://api.github.com/users/matozoid/followers","following_url":"https://api.github.com/users/matozoid/following{/other_user}","gists_url":"https://api.github.com/users/matozoid/gists{/gist_id}","starred_url":"https://api.github.com/users/matozoid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matozoid/subscriptions","organizations_url":"https://api.github.com/users/matozoid/orgs","repos_url":"https://api.github.com/users/matozoid/repos","events_url":"https://api.github.com/users/matozoid/events{/privacy}","received_events_url":"https://api.github.com/users/matozoid/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matozoid/javaparser","description":" Java 1.8 Parser and Abstract Syntax Tree for Java –","fork":true,"url":"https://api.github.com/repos/matozoid/javaparser","forks_url":"https://api.github.com/repos/matozoid/javaparser/forks","keys_url":"https://api.github.com/repos/matozoid/javaparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matozoid/javaparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matozoid/javaparser/teams","hooks_url":"https://api.github.com/repos/matozoid/javaparser/hooks","issue_events_url":"https://api.github.com/repos/matozoid/javaparser/issues/events{/number}","events_url":"https://api.github.com/repos/matozoid/javaparser/events","assignees_url":"https://api.github.com/repos/matozoid/javaparser/assignees{/user}","branches_url":"https://api.github.com/repos/matozoid/javaparser/branches{/branch}","tags_url":"https://api.github.com/repos/matozoid/javaparser/tags","blobs_url":"https://api.github.com/repos/matozoid/javaparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matozoid/javaparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matozoid/javaparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/matozoid/javaparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matozoid/javaparser/statuses/{sha}","languages_url":"https://api.github.com/repos/matozoid/javaparser/languages","stargazers_url":"https://api.github.com/repos/matozoid/javaparser/stargazers","contributors_url":"https://api.github.com/repos/matozoid/javaparser/contributors","subscribers_url":"https://api.github.com/repos/matozoid/javaparser/subscribers","subscription_url":"https://api.github.com/repos/matozoid/javaparser/subscription","commits_url":"https://api.github.com/repos/matozoid/javaparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/matozoid/javaparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/matozoid/javaparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/matozoid/javaparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/matozoid/javaparser/contents/{+path}","compare_url":"https://api.github.com/repos/matozoid/javaparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matozoid/javaparser/merges","archive_url":"https://api.github.com/repos/matozoid/javaparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matozoid/javaparser/downloads","issues_url":"https://api.github.com/repos/matozoid/javaparser/issues{/number}","pulls_url":"https://api.github.com/repos/matozoid/javaparser/pulls{/number}","milestones_url":"https://api.github.com/repos/matozoid/javaparser/milestones{/number}","notifications_url":"https://api.github.com/repos/matozoid/javaparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matozoid/javaparser/labels{/name}","releases_url":"https://api.github.com/repos/matozoid/javaparser/releases{/id}","deployments_url":"https://api.github.com/repos/matozoid/javaparser/deployments","created_at":"2016-06-29T16:54:59Z","updated_at":"2016-10-26T17:01:37Z","pushed_at":"2016-11-20T14:16:16Z","git_url":"git://github.com/matozoid/javaparser.git","ssh_url":"git@github.com:matozoid/javaparser.git","clone_url":"https://github.com/matozoid/javaparser.git","svn_url":"https://github.com/matozoid/javaparser","homepage":"http://javaparser.github.io/javaparser/","size":3105,"stargazers_count":1,"watchers_count":1,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":0,"forks":1,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"javaparser:master","ref":"master","sha":"538b62d680b01330e671579f94a936df92c0dc45","user":{"login":"javaparser","id":9988471,"avatar_url":"https://avatars.githubusercontent.com/u/9988471?v=3","gravatar_id":"","url":"https://api.github.com/users/javaparser","html_url":"https://github.com/javaparser","followers_url":"https://api.github.com/users/javaparser/followers","following_url":"https://api.github.com/users/javaparser/following{/other_user}","gists_url":"https://api.github.com/users/javaparser/gists{/gist_id}","starred_url":"https://api.github.com/users/javaparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaparser/subscriptions","organizations_url":"https://api.github.com/users/javaparser/orgs","repos_url":"https://api.github.com/users/javaparser/repos","events_url":"https://api.github.com/users/javaparser/events{/privacy}","received_events_url":"https://api.github.com/users/javaparser/received_events","type":"Organization","site_admin":false},"repo":{"id":2675355,"name":"javaparser","full_name":"javaparser/javaparser","owner":{"login":"javaparser","id":9988471,"avatar_url":"https://avatars.githubusercontent.com/u/9988471?v=3","gravatar_id":"","url":"https://api.github.com/users/javaparser","html_url":"https://github.com/javaparser","followers_url":"https://api.github.com/users/javaparser/followers","following_url":"https://api.github.com/users/javaparser/following{/other_user}","gists_url":"https://api.github.com/users/javaparser/gists{/gist_id}","starred_url":"https://api.github.com/users/javaparser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/javaparser/subscriptions","organizations_url":"https://api.github.com/users/javaparser/orgs","repos_url":"https://api.github.com/users/javaparser/repos","events_url":"https://api.github.com/users/javaparser/events{/privacy}","received_events_url":"https://api.github.com/users/javaparser/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/javaparser/javaparser","description":" Java 1.8 Parser and Abstract Syntax Tree for Java –","fork":false,"url":"https://api.github.com/repos/javaparser/javaparser","forks_url":"https://api.github.com/repos/javaparser/javaparser/forks","keys_url":"https://api.github.com/repos/javaparser/javaparser/keys{/key_id}","collaborators_url":"https://api.github.com/repos/javaparser/javaparser/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/javaparser/javaparser/teams","hooks_url":"https://api.github.com/repos/javaparser/javaparser/hooks","issue_events_url":"https://api.github.com/repos/javaparser/javaparser/issues/events{/number}","events_url":"https://api.github.com/repos/javaparser/javaparser/events","assignees_url":"https://api.github.com/repos/javaparser/javaparser/assignees{/user}","branches_url":"https://api.github.com/repos/javaparser/javaparser/branches{/branch}","tags_url":"https://api.github.com/repos/javaparser/javaparser/tags","blobs_url":"https://api.github.com/repos/javaparser/javaparser/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/javaparser/javaparser/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/javaparser/javaparser/git/refs{/sha}","trees_url":"https://api.github.com/repos/javaparser/javaparser/git/trees{/sha}","statuses_url":"https://api.github.com/repos/javaparser/javaparser/statuses/{sha}","languages_url":"https://api.github.com/repos/javaparser/javaparser/languages","stargazers_url":"https://api.github.com/repos/javaparser/javaparser/stargazers","contributors_url":"https://api.github.com/repos/javaparser/javaparser/contributors","subscribers_url":"https://api.github.com/repos/javaparser/javaparser/subscribers","subscription_url":"https://api.github.com/repos/javaparser/javaparser/subscription","commits_url":"https://api.github.com/repos/javaparser/javaparser/commits{/sha}","git_commits_url":"https://api.github.com/repos/javaparser/javaparser/git/commits{/sha}","comments_url":"https://api.github.com/repos/javaparser/javaparser/comments{/number}","issue_comment_url":"https://api.github.com/repos/javaparser/javaparser/issues/comments{/number}","contents_url":"https://api.github.com/repos/javaparser/javaparser/contents/{+path}","compare_url":"https://api.github.com/repos/javaparser/javaparser/compare/{base}...{head}","merges_url":"https://api.github.com/repos/javaparser/javaparser/merges","archive_url":"https://api.github.com/repos/javaparser/javaparser/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/javaparser/javaparser/downloads","issues_url":"https://api.github.com/repos/javaparser/javaparser/issues{/number}","pulls_url":"https://api.github.com/repos/javaparser/javaparser/pulls{/number}","milestones_url":"https://api.github.com/repos/javaparser/javaparser/milestones{/number}","notifications_url":"https://api.github.com/repos/javaparser/javaparser/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/javaparser/javaparser/labels{/name}","releases_url":"https://api.github.com/repos/javaparser/javaparser/releases{/id}","deployments_url":"https://api.github.com/repos/javaparser/javaparser/deployments","created_at":"2011-10-30T14:03:44Z","updated_at":"2016-11-20T09:39:08Z","pushed_at":"2016-11-20T14:16:45Z","git_url":"git://github.com/javaparser/javaparser.git","ssh_url":"git@github.com:javaparser/javaparser.git","clone_url":"https://github.com/javaparser/javaparser.git","svn_url":"https://github.com/javaparser/javaparser","homepage":"http://javaparser.org","size":4259,"stargazers_count":785,"watchers_count":785,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":224,"mirror_url":null,"open_issues_count":72,"forks":224,"open_issues":72,"watchers":785,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/579"},"html":{"href":"https://github.com/javaparser/javaparser/pull/579"},"issue":{"href":"https://api.github.com/repos/javaparser/javaparser/issues/579"},"comments":{"href":"https://api.github.com/repos/javaparser/javaparser/issues/579/comments"},"review_comments":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/579/comments"},"review_comment":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/javaparser/javaparser/pulls/579/commits"},"statuses":{"href":"https://api.github.com/repos/javaparser/javaparser/statuses/251a50530c05521c6ad8f7dc68be19c2c278b6aa"}}}}
{"actor":{"display_login":"ftomassetti"}}