{"action":"created","comment":{"url":"https://api.github.com/repos/cherow/cherow/pulls/comments/200807523","pull_request_review_id":135199166,"id":200807523,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIwMDgwNzUyMw==","diff_hunk":"@@ -1 +1,59 @@\n-export function parseStatementList(): any {}\n+import * as ESTree from '../estree';\n+import { Context, finishNode, getLocation } from '../common';\n+import { ParserState } from '../types';\n+import { parseExpression } from './expressions';\n+import { Token } from '../token';\n+import { nextToken } from '../lexer/scan';\n+/**\n+ * Parse statement list\n+ *\n+ * @see [Link](https://tc39.github.io/ecma262/#prod-StatementList)\n+ *\n+ * @param Parser instance\n+ * @param Context masks\n+ */\n+\n+export function parseStatementList(state: ParserState, context: Context): ESTree.Statement[] {\n+  nextToken(state, context);\n+  const statements: ESTree.Statement[] = [];\n+  while (state.token !== Token.EndOfSource) {\n+          statements.push(parseStatementListItem(state, context));\n+  }\n+\n+  return statements;\n+}\n+\n+/**\n+ * Parses statement list items\n+ *\n+ * @see [Link](https://tc39.github.io/ecma262/#prod-StatementListItem)\n+ *\n+ * @param parser  Parser object\n+ * @param context Context masks\n+ */\n+export function parseStatementListItem(state: ParserState, context: Context): ESTree.Statement {\n+\n+   return parseStatement(state, context);\n+}\n+\n+/**\n+ * Parses statements\n+ *\n+ * @see [Link](https://tc39.github.io/ecma262/#prod-Statement)\n+ *\n+ * @param parser  Parser object\n+ * @param context Context masks\n+ */\n+export function parseStatement(state: ParserState, context: Context): ESTree.Statement {\n+      return parseExpressionOrLabelledStatement(state, context);\n+}\n+\n+export function parseExpressionOrLabelledStatement(state: ParserState, context: Context): ESTree.Statement {","path":"packages/cherow/src/parser/statements.ts","position":52,"original_position":52,"commit_id":"a316c68d955ef31e75a0f8e9b794dbdbfe2e2913","original_commit_id":"a316c68d955ef31e75a0f8e9b794dbdbfe2e2913","user":{"login":"KFlash","id":31855118,"node_id":"MDQ6VXNlcjMxODU1MTE4","avatar_url":"https://avatars3.githubusercontent.com/u/31855118?v=4","gravatar_id":"","url":"https://api.github.com/users/KFlash","html_url":"https://github.com/KFlash","followers_url":"https://api.github.com/users/KFlash/followers","following_url":"https://api.github.com/users/KFlash/following{/other_user}","gists_url":"https://api.github.com/users/KFlash/gists{/gist_id}","starred_url":"https://api.github.com/users/KFlash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KFlash/subscriptions","organizations_url":"https://api.github.com/users/KFlash/orgs","repos_url":"https://api.github.com/users/KFlash/repos","events_url":"https://api.github.com/users/KFlash/events{/privacy}","received_events_url":"https://api.github.com/users/KFlash/received_events","type":"User","site_admin":false},"body":"I know. And there is an issue ticket in ESprima repo too. Issue is the ESTree specs. So will probably create backward compability issues or corss-parser issues.","created_at":"2018-07-07T09:28:30Z","updated_at":"2018-07-07T09:28:30Z","html_url":"https://github.com/cherow/cherow/pull/196#discussion_r200807523","pull_request_url":"https://api.github.com/repos/cherow/cherow/pulls/196","author_association":"MEMBER","_links":{"self":{"href":"https://api.github.com/repos/cherow/cherow/pulls/comments/200807523"},"html":{"href":"https://github.com/cherow/cherow/pull/196#discussion_r200807523"},"pull_request":{"href":"https://api.github.com/repos/cherow/cherow/pulls/196"}},"in_reply_to_id":200806955},"pull_request":{"url":"https://api.github.com/repos/cherow/cherow/pulls/196","id":199864369,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk5ODY0MzY5","html_url":"https://github.com/cherow/cherow/pull/196","diff_url":"https://github.com/cherow/cherow/pull/196.diff","patch_url":"https://github.com/cherow/cherow/pull/196.patch","issue_url":"https://api.github.com/repos/cherow/cherow/issues/196","number":196,"state":"open","locked":false,"title":"parser implementation","user":{"login":"KFlash","id":31855118,"node_id":"MDQ6VXNlcjMxODU1MTE4","avatar_url":"https://avatars3.githubusercontent.com/u/31855118?v=4","gravatar_id":"","url":"https://api.github.com/users/KFlash","html_url":"https://github.com/KFlash","followers_url":"https://api.github.com/users/KFlash/followers","following_url":"https://api.github.com/users/KFlash/following{/other_user}","gists_url":"https://api.github.com/users/KFlash/gists{/gist_id}","starred_url":"https://api.github.com/users/KFlash/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/KFlash/subscriptions","organizations_url":"https://api.github.com/users/KFlash/orgs","repos_url":"https://api.github.com/users/KFlash/repos","events_url":"https://api.github.com/users/KFlash/events{/privacy}","received_events_url":"https://api.github.com/users/KFlash/received_events","type":"User","site_admin":false},"body":"This PR exist so we can discuss on how to proceed from here.\r\n\r\ncc/ @fkleuver  @Aladdin-ADD ","created_at":"2018-07-06T23:07:37Z","updated_at":"2018-07-07T09:28:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"aa80da1e0050d3a407d96b7f9e5bdbc3d7054532","assignee":null,"assignees":[],"requested_reviewers":[{"login":"fkleuver","id":9655331,"node_id":"MDQ6VXNlcjk2NTUzMzE=","avatar_url":"https://avatars1.githubusercontent.com/u/9655331?v=4","gravatar_id":"","url":"https://api.github.com/users/fkleuver","html_url":"https://github.com/fkleuver","followers_url":"https://api.github.com/users/fkleuver/followers","following_url":"https://api.github.com/users/fkleuver/following{/other_user}","gists_url":"https://api.github.com/users/fkleuver/gists{/gist_id}","starred_url":"https://api.github.com/users/fkleuver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fkleuver/subscriptions","organizations_url":"https://api.github.com/users/fkleuver/orgs","repos_url":"https://api.github.com/users/fkleuver/repos","events_url":"https://api.github.com/users/fkleuver/events{/privacy}","received_events_url":"https://api.github.com/users/fkleuver/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[{"id":972321953,"node_id":"MDU6TGFiZWw5NzIzMjE5NTM=","url":"https://api.github.com/repos/cherow/cherow/labels/refactor","name":"refactor","color":"c5def5","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/cherow/cherow/pulls/196/commits","review_comments_url":"https://api.github.com/repos/cherow/cherow/pulls/196/comments","review_comment_url":"https://api.github.com/repos/cherow/cherow/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cherow/cherow/issues/196/comments","statuses_url":"https://api.github.com/repos/cherow/cherow/statuses/a316c68d955ef31e75a0f8e9b794dbdbfe2e2913","head":{"label":"cherow:parsing","ref":"parsing","sha":"a316c68d955ef31e75a0f8e9b794dbdbfe2e2913","user":{"login":"cherow","id":31855416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxODU1NDE2","avatar_url":"https://avatars1.githubusercontent.com/u/31855416?v=4","gravatar_id":"","url":"https://api.github.com/users/cherow","html_url":"https://github.com/cherow","followers_url":"https://api.github.com/users/cherow/followers","following_url":"https://api.github.com/users/cherow/following{/other_user}","gists_url":"https://api.github.com/users/cherow/gists{/gist_id}","starred_url":"https://api.github.com/users/cherow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherow/subscriptions","organizations_url":"https://api.github.com/users/cherow/orgs","repos_url":"https://api.github.com/users/cherow/repos","events_url":"https://api.github.com/users/cherow/events{/privacy}","received_events_url":"https://api.github.com/users/cherow/received_events","type":"Organization","site_admin":false},"repo":{"id":103145619,"node_id":"MDEwOlJlcG9zaXRvcnkxMDMxNDU2MTk=","name":"cherow","full_name":"cherow/cherow","owner":{"login":"cherow","id":31855416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxODU1NDE2","avatar_url":"https://avatars1.githubusercontent.com/u/31855416?v=4","gravatar_id":"","url":"https://api.github.com/users/cherow","html_url":"https://github.com/cherow","followers_url":"https://api.github.com/users/cherow/followers","following_url":"https://api.github.com/users/cherow/following{/other_user}","gists_url":"https://api.github.com/users/cherow/gists{/gist_id}","starred_url":"https://api.github.com/users/cherow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherow/subscriptions","organizations_url":"https://api.github.com/users/cherow/orgs","repos_url":"https://api.github.com/users/cherow/repos","events_url":"https://api.github.com/users/cherow/events{/privacy}","received_events_url":"https://api.github.com/users/cherow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cherow/cherow","description":"Very fast and lightweight, standards-compliant, self-hosted javascript parser with high focus on both performance and stability","fork":false,"url":"https://api.github.com/repos/cherow/cherow","forks_url":"https://api.github.com/repos/cherow/cherow/forks","keys_url":"https://api.github.com/repos/cherow/cherow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cherow/cherow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cherow/cherow/teams","hooks_url":"https://api.github.com/repos/cherow/cherow/hooks","issue_events_url":"https://api.github.com/repos/cherow/cherow/issues/events{/number}","events_url":"https://api.github.com/repos/cherow/cherow/events","assignees_url":"https://api.github.com/repos/cherow/cherow/assignees{/user}","branches_url":"https://api.github.com/repos/cherow/cherow/branches{/branch}","tags_url":"https://api.github.com/repos/cherow/cherow/tags","blobs_url":"https://api.github.com/repos/cherow/cherow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cherow/cherow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cherow/cherow/git/refs{/sha}","trees_url":"https://api.github.com/repos/cherow/cherow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cherow/cherow/statuses/{sha}","languages_url":"https://api.github.com/repos/cherow/cherow/languages","stargazers_url":"https://api.github.com/repos/cherow/cherow/stargazers","contributors_url":"https://api.github.com/repos/cherow/cherow/contributors","subscribers_url":"https://api.github.com/repos/cherow/cherow/subscribers","subscription_url":"https://api.github.com/repos/cherow/cherow/subscription","commits_url":"https://api.github.com/repos/cherow/cherow/commits{/sha}","git_commits_url":"https://api.github.com/repos/cherow/cherow/git/commits{/sha}","comments_url":"https://api.github.com/repos/cherow/cherow/comments{/number}","issue_comment_url":"https://api.github.com/repos/cherow/cherow/issues/comments{/number}","contents_url":"https://api.github.com/repos/cherow/cherow/contents/{+path}","compare_url":"https://api.github.com/repos/cherow/cherow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cherow/cherow/merges","archive_url":"https://api.github.com/repos/cherow/cherow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cherow/cherow/downloads","issues_url":"https://api.github.com/repos/cherow/cherow/issues{/number}","pulls_url":"https://api.github.com/repos/cherow/cherow/pulls{/number}","milestones_url":"https://api.github.com/repos/cherow/cherow/milestones{/number}","notifications_url":"https://api.github.com/repos/cherow/cherow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cherow/cherow/labels{/name}","releases_url":"https://api.github.com/repos/cherow/cherow/releases{/id}","deployments_url":"https://api.github.com/repos/cherow/cherow/deployments","created_at":"2017-09-11T14:23:17Z","updated_at":"2018-07-07T08:44:29Z","pushed_at":"2018-07-07T09:17:17Z","git_url":"git://github.com/cherow/cherow.git","ssh_url":"git@github.com:cherow/cherow.git","clone_url":"https://github.com/cherow/cherow.git","svn_url":"https://github.com/cherow/cherow","homepage":"","size":19276,"stargazers_count":1131,"watchers_count":1131,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":34,"open_issues":11,"watchers":1131,"default_branch":"master"}},"base":{"label":"cherow:master","ref":"master","sha":"1e0ea41e8a4baa1fb5bdc4ea89c757c779727d0c","user":{"login":"cherow","id":31855416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxODU1NDE2","avatar_url":"https://avatars1.githubusercontent.com/u/31855416?v=4","gravatar_id":"","url":"https://api.github.com/users/cherow","html_url":"https://github.com/cherow","followers_url":"https://api.github.com/users/cherow/followers","following_url":"https://api.github.com/users/cherow/following{/other_user}","gists_url":"https://api.github.com/users/cherow/gists{/gist_id}","starred_url":"https://api.github.com/users/cherow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherow/subscriptions","organizations_url":"https://api.github.com/users/cherow/orgs","repos_url":"https://api.github.com/users/cherow/repos","events_url":"https://api.github.com/users/cherow/events{/privacy}","received_events_url":"https://api.github.com/users/cherow/received_events","type":"Organization","site_admin":false},"repo":{"id":103145619,"node_id":"MDEwOlJlcG9zaXRvcnkxMDMxNDU2MTk=","name":"cherow","full_name":"cherow/cherow","owner":{"login":"cherow","id":31855416,"node_id":"MDEyOk9yZ2FuaXphdGlvbjMxODU1NDE2","avatar_url":"https://avatars1.githubusercontent.com/u/31855416?v=4","gravatar_id":"","url":"https://api.github.com/users/cherow","html_url":"https://github.com/cherow","followers_url":"https://api.github.com/users/cherow/followers","following_url":"https://api.github.com/users/cherow/following{/other_user}","gists_url":"https://api.github.com/users/cherow/gists{/gist_id}","starred_url":"https://api.github.com/users/cherow/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cherow/subscriptions","organizations_url":"https://api.github.com/users/cherow/orgs","repos_url":"https://api.github.com/users/cherow/repos","events_url":"https://api.github.com/users/cherow/events{/privacy}","received_events_url":"https://api.github.com/users/cherow/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cherow/cherow","description":"Very fast and lightweight, standards-compliant, self-hosted javascript parser with high focus on both performance and stability","fork":false,"url":"https://api.github.com/repos/cherow/cherow","forks_url":"https://api.github.com/repos/cherow/cherow/forks","keys_url":"https://api.github.com/repos/cherow/cherow/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cherow/cherow/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cherow/cherow/teams","hooks_url":"https://api.github.com/repos/cherow/cherow/hooks","issue_events_url":"https://api.github.com/repos/cherow/cherow/issues/events{/number}","events_url":"https://api.github.com/repos/cherow/cherow/events","assignees_url":"https://api.github.com/repos/cherow/cherow/assignees{/user}","branches_url":"https://api.github.com/repos/cherow/cherow/branches{/branch}","tags_url":"https://api.github.com/repos/cherow/cherow/tags","blobs_url":"https://api.github.com/repos/cherow/cherow/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cherow/cherow/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cherow/cherow/git/refs{/sha}","trees_url":"https://api.github.com/repos/cherow/cherow/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cherow/cherow/statuses/{sha}","languages_url":"https://api.github.com/repos/cherow/cherow/languages","stargazers_url":"https://api.github.com/repos/cherow/cherow/stargazers","contributors_url":"https://api.github.com/repos/cherow/cherow/contributors","subscribers_url":"https://api.github.com/repos/cherow/cherow/subscribers","subscription_url":"https://api.github.com/repos/cherow/cherow/subscription","commits_url":"https://api.github.com/repos/cherow/cherow/commits{/sha}","git_commits_url":"https://api.github.com/repos/cherow/cherow/git/commits{/sha}","comments_url":"https://api.github.com/repos/cherow/cherow/comments{/number}","issue_comment_url":"https://api.github.com/repos/cherow/cherow/issues/comments{/number}","contents_url":"https://api.github.com/repos/cherow/cherow/contents/{+path}","compare_url":"https://api.github.com/repos/cherow/cherow/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cherow/cherow/merges","archive_url":"https://api.github.com/repos/cherow/cherow/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cherow/cherow/downloads","issues_url":"https://api.github.com/repos/cherow/cherow/issues{/number}","pulls_url":"https://api.github.com/repos/cherow/cherow/pulls{/number}","milestones_url":"https://api.github.com/repos/cherow/cherow/milestones{/number}","notifications_url":"https://api.github.com/repos/cherow/cherow/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cherow/cherow/labels{/name}","releases_url":"https://api.github.com/repos/cherow/cherow/releases{/id}","deployments_url":"https://api.github.com/repos/cherow/cherow/deployments","created_at":"2017-09-11T14:23:17Z","updated_at":"2018-07-07T08:44:29Z","pushed_at":"2018-07-07T09:17:17Z","git_url":"git://github.com/cherow/cherow.git","ssh_url":"git@github.com:cherow/cherow.git","clone_url":"https://github.com/cherow/cherow.git","svn_url":"https://github.com/cherow/cherow","homepage":"","size":19276,"stargazers_count":1131,"watchers_count":1131,"language":"TypeScript","has_issues":true,"has_projects":false,"has_downloads":true,"has_wiki":false,"has_pages":true,"forks_count":34,"mirror_url":null,"archived":false,"open_issues_count":11,"license":{"key":"isc","name":"ISC License","spdx_id":"ISC","url":"https://api.github.com/licenses/isc","node_id":"MDc6TGljZW5zZTEw"},"forks":34,"open_issues":11,"watchers":1131,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cherow/cherow/pulls/196"},"html":{"href":"https://github.com/cherow/cherow/pull/196"},"issue":{"href":"https://api.github.com/repos/cherow/cherow/issues/196"},"comments":{"href":"https://api.github.com/repos/cherow/cherow/issues/196/comments"},"review_comments":{"href":"https://api.github.com/repos/cherow/cherow/pulls/196/comments"},"review_comment":{"href":"https://api.github.com/repos/cherow/cherow/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cherow/cherow/pulls/196/commits"},"statuses":{"href":"https://api.github.com/repos/cherow/cherow/statuses/a316c68d955ef31e75a0f8e9b794dbdbfe2e2913"}},"author_association":"MEMBER"}}
{"actor":{"display_login":"KFlash"}}