{"action":"created","comment":{"url":"https://api.github.com/repos/projectfluent/fluent.js/pulls/comments/109123366","pull_request_review_id":30204242,"id":109123366,"diff_hunk":"@@ -227,11 +227,14 @@ export class Span extends Node {\n }\n \n export class Annotation extends Node {\n-  constructor(name, message, pos) {\n+  constructor(code, message) {\n     super();\n     this.type = 'Annotation';\n-    this.name = name;\n+    this.code = code;\n     this.message = message;\n-    this.pos = pos;\n+  }\n+\n+  addSpan(start, end) {\n+    this.span = new Span(start, end);","path":"fluent-syntax/src/ast.js","position":15,"original_position":15,"commit_id":"6fdda60e119c0419aa09e925428782d7b93f1a37","original_commit_id":"1ca87ba38db8da07ee08844efc8c70d9f6853302","user":{"login":"stasm","id":265818,"avatar_url":"https://avatars0.githubusercontent.com/u/265818?v=3","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"body":"I filed https://github.com/projectfluent/fluent/pull/40 for ASDL changes.","created_at":"2017-03-31T09:34:30Z","updated_at":"2017-03-31T09:47:22Z","html_url":"https://github.com/projectfluent/fluent.js/pull/22#discussion_r109123366","pull_request_url":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22","_links":{"self":{"href":"https://api.github.com/repos/projectfluent/fluent.js/pulls/comments/109123366"},"html":{"href":"https://github.com/projectfluent/fluent.js/pull/22#discussion_r109123366"},"pull_request":{"href":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22"}}},"pull_request":{"url":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22","id":113540414,"html_url":"https://github.com/projectfluent/fluent.js/pull/22","diff_url":"https://github.com/projectfluent/fluent.js/pull/22.diff","patch_url":"https://github.com/projectfluent/fluent.js/pull/22.patch","issue_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/22","number":22,"state":"open","locked":false,"title":"Introduce behavior and structure testing","user":{"login":"stasm","id":265818,"avatar_url":"https://avatars0.githubusercontent.com/u/265818?v=3","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"body":"#### Behavior Tests\r\n\r\nFTL files which may include special markup with the information about the expected error.  The test runner uses a preprocessor to parse and remove the error annotation from the file.  If there is no error annotation, the file is expected to parse without errors.\r\n\r\n#### Structure Tests\r\n\r\nFTL + JSON AST pairs.  JSON files are generated via `make fixtures` and reviewed by a human.  The test runner compares the output of the parser against the saved AST.","created_at":"2017-03-30T22:42:21Z","updated_at":"2017-03-31T09:47:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a1a02863c8132e812699e158ecaf7e978ee27865","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22/commits","review_comments_url":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22/comments","review_comment_url":"https://api.github.com/repos/projectfluent/fluent.js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/22/comments","statuses_url":"https://api.github.com/repos/projectfluent/fluent.js/statuses/6fdda60e119c0419aa09e925428782d7b93f1a37","head":{"label":"stasm:test-fixtures","ref":"test-fixtures","sha":"6fdda60e119c0419aa09e925428782d7b93f1a37","user":{"login":"stasm","id":265818,"avatar_url":"https://avatars0.githubusercontent.com/u/265818?v=3","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"repo":{"id":81662897,"name":"fluent.js","full_name":"stasm/fluent.js","owner":{"login":"stasm","id":265818,"avatar_url":"https://avatars0.githubusercontent.com/u/265818?v=3","gravatar_id":"","url":"https://api.github.com/users/stasm","html_url":"https://github.com/stasm","followers_url":"https://api.github.com/users/stasm/followers","following_url":"https://api.github.com/users/stasm/following{/other_user}","gists_url":"https://api.github.com/users/stasm/gists{/gist_id}","starred_url":"https://api.github.com/users/stasm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stasm/subscriptions","organizations_url":"https://api.github.com/users/stasm/orgs","repos_url":"https://api.github.com/users/stasm/repos","events_url":"https://api.github.com/users/stasm/events{/privacy}","received_events_url":"https://api.github.com/users/stasm/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/stasm/fluent.js","description":"JavaScript implementation of Project Fluent","fork":true,"url":"https://api.github.com/repos/stasm/fluent.js","forks_url":"https://api.github.com/repos/stasm/fluent.js/forks","keys_url":"https://api.github.com/repos/stasm/fluent.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/stasm/fluent.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/stasm/fluent.js/teams","hooks_url":"https://api.github.com/repos/stasm/fluent.js/hooks","issue_events_url":"https://api.github.com/repos/stasm/fluent.js/issues/events{/number}","events_url":"https://api.github.com/repos/stasm/fluent.js/events","assignees_url":"https://api.github.com/repos/stasm/fluent.js/assignees{/user}","branches_url":"https://api.github.com/repos/stasm/fluent.js/branches{/branch}","tags_url":"https://api.github.com/repos/stasm/fluent.js/tags","blobs_url":"https://api.github.com/repos/stasm/fluent.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/stasm/fluent.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/stasm/fluent.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/stasm/fluent.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/stasm/fluent.js/statuses/{sha}","languages_url":"https://api.github.com/repos/stasm/fluent.js/languages","stargazers_url":"https://api.github.com/repos/stasm/fluent.js/stargazers","contributors_url":"https://api.github.com/repos/stasm/fluent.js/contributors","subscribers_url":"https://api.github.com/repos/stasm/fluent.js/subscribers","subscription_url":"https://api.github.com/repos/stasm/fluent.js/subscription","commits_url":"https://api.github.com/repos/stasm/fluent.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/stasm/fluent.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/stasm/fluent.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/stasm/fluent.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/stasm/fluent.js/contents/{+path}","compare_url":"https://api.github.com/repos/stasm/fluent.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/stasm/fluent.js/merges","archive_url":"https://api.github.com/repos/stasm/fluent.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/stasm/fluent.js/downloads","issues_url":"https://api.github.com/repos/stasm/fluent.js/issues{/number}","pulls_url":"https://api.github.com/repos/stasm/fluent.js/pulls{/number}","milestones_url":"https://api.github.com/repos/stasm/fluent.js/milestones{/number}","notifications_url":"https://api.github.com/repos/stasm/fluent.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/stasm/fluent.js/labels{/name}","releases_url":"https://api.github.com/repos/stasm/fluent.js/releases{/id}","deployments_url":"https://api.github.com/repos/stasm/fluent.js/deployments","created_at":"2017-02-11T15:48:30Z","updated_at":"2017-03-29T11:10:55Z","pushed_at":"2017-03-31T09:46:48Z","git_url":"git://github.com/stasm/fluent.js.git","ssh_url":"git@github.com:stasm/fluent.js.git","clone_url":"https://github.com/stasm/fluent.js.git","svn_url":"https://github.com/stasm/fluent.js","homepage":null,"size":3579,"stargazers_count":1,"watchers_count":1,"language":"JavaScript","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":1,"default_branch":"master"}},"base":{"label":"projectfluent:master","ref":"master","sha":"68279861c7615cff051c9905b755892e76df3cf3","user":{"login":"projectfluent","id":24696436,"avatar_url":"https://avatars0.githubusercontent.com/u/24696436?v=3","gravatar_id":"","url":"https://api.github.com/users/projectfluent","html_url":"https://github.com/projectfluent","followers_url":"https://api.github.com/users/projectfluent/followers","following_url":"https://api.github.com/users/projectfluent/following{/other_user}","gists_url":"https://api.github.com/users/projectfluent/gists{/gist_id}","starred_url":"https://api.github.com/users/projectfluent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectfluent/subscriptions","organizations_url":"https://api.github.com/users/projectfluent/orgs","repos_url":"https://api.github.com/users/projectfluent/repos","events_url":"https://api.github.com/users/projectfluent/events{/privacy}","received_events_url":"https://api.github.com/users/projectfluent/received_events","type":"Organization","site_admin":false},"repo":{"id":80720339,"name":"fluent.js","full_name":"projectfluent/fluent.js","owner":{"login":"projectfluent","id":24696436,"avatar_url":"https://avatars0.githubusercontent.com/u/24696436?v=3","gravatar_id":"","url":"https://api.github.com/users/projectfluent","html_url":"https://github.com/projectfluent","followers_url":"https://api.github.com/users/projectfluent/followers","following_url":"https://api.github.com/users/projectfluent/following{/other_user}","gists_url":"https://api.github.com/users/projectfluent/gists{/gist_id}","starred_url":"https://api.github.com/users/projectfluent/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/projectfluent/subscriptions","organizations_url":"https://api.github.com/users/projectfluent/orgs","repos_url":"https://api.github.com/users/projectfluent/repos","events_url":"https://api.github.com/users/projectfluent/events{/privacy}","received_events_url":"https://api.github.com/users/projectfluent/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/projectfluent/fluent.js","description":"JavaScript implementation of Project Fluent","fork":false,"url":"https://api.github.com/repos/projectfluent/fluent.js","forks_url":"https://api.github.com/repos/projectfluent/fluent.js/forks","keys_url":"https://api.github.com/repos/projectfluent/fluent.js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/projectfluent/fluent.js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/projectfluent/fluent.js/teams","hooks_url":"https://api.github.com/repos/projectfluent/fluent.js/hooks","issue_events_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/events{/number}","events_url":"https://api.github.com/repos/projectfluent/fluent.js/events","assignees_url":"https://api.github.com/repos/projectfluent/fluent.js/assignees{/user}","branches_url":"https://api.github.com/repos/projectfluent/fluent.js/branches{/branch}","tags_url":"https://api.github.com/repos/projectfluent/fluent.js/tags","blobs_url":"https://api.github.com/repos/projectfluent/fluent.js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/projectfluent/fluent.js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/projectfluent/fluent.js/git/refs{/sha}","trees_url":"https://api.github.com/repos/projectfluent/fluent.js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/projectfluent/fluent.js/statuses/{sha}","languages_url":"https://api.github.com/repos/projectfluent/fluent.js/languages","stargazers_url":"https://api.github.com/repos/projectfluent/fluent.js/stargazers","contributors_url":"https://api.github.com/repos/projectfluent/fluent.js/contributors","subscribers_url":"https://api.github.com/repos/projectfluent/fluent.js/subscribers","subscription_url":"https://api.github.com/repos/projectfluent/fluent.js/subscription","commits_url":"https://api.github.com/repos/projectfluent/fluent.js/commits{/sha}","git_commits_url":"https://api.github.com/repos/projectfluent/fluent.js/git/commits{/sha}","comments_url":"https://api.github.com/repos/projectfluent/fluent.js/comments{/number}","issue_comment_url":"https://api.github.com/repos/projectfluent/fluent.js/issues/comments{/number}","contents_url":"https://api.github.com/repos/projectfluent/fluent.js/contents/{+path}","compare_url":"https://api.github.com/repos/projectfluent/fluent.js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/projectfluent/fluent.js/merges","archive_url":"https://api.github.com/repos/projectfluent/fluent.js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/projectfluent/fluent.js/downloads","issues_url":"https://api.github.com/repos/projectfluent/fluent.js/issues{/number}","pulls_url":"https://api.github.com/repos/projectfluent/fluent.js/pulls{/number}","milestones_url":"https://api.github.com/repos/projectfluent/fluent.js/milestones{/number}","notifications_url":"https://api.github.com/repos/projectfluent/fluent.js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/projectfluent/fluent.js/labels{/name}","releases_url":"https://api.github.com/repos/projectfluent/fluent.js/releases{/id}","deployments_url":"https://api.github.com/repos/projectfluent/fluent.js/deployments","created_at":"2017-02-02T11:52:16Z","updated_at":"2017-02-27T17:16:28Z","pushed_at":"2017-03-31T09:46:49Z","git_url":"git://github.com/projectfluent/fluent.js.git","ssh_url":"git@github.com:projectfluent/fluent.js.git","clone_url":"https://github.com/projectfluent/fluent.js.git","svn_url":"https://github.com/projectfluent/fluent.js","homepage":null,"size":3968,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":5,"mirror_url":null,"open_issues_count":6,"forks":5,"open_issues":6,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22"},"html":{"href":"https://github.com/projectfluent/fluent.js/pull/22"},"issue":{"href":"https://api.github.com/repos/projectfluent/fluent.js/issues/22"},"comments":{"href":"https://api.github.com/repos/projectfluent/fluent.js/issues/22/comments"},"review_comments":{"href":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22/comments"},"review_comment":{"href":"https://api.github.com/repos/projectfluent/fluent.js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/projectfluent/fluent.js/pulls/22/commits"},"statuses":{"href":"https://api.github.com/repos/projectfluent/fluent.js/statuses/6fdda60e119c0419aa09e925428782d7b93f1a37"}}}}
{"actor":{"display_login":"stasm"}}