{"action":"created","comment":{"url":"https://api.github.com/repos/angular/ts2dart/pulls/comments/32925239","id":32925239,"diff_hunk":"@@ -244,6 +244,16 @@ export class FacadeConverter extends base.TranspilerBase {\n         this.emitCall('remove', c.arguments);\n         this.emit('!= null || true ) )');\n       },\n+      'Map.forEach': (c: ts.CallExpression, context: ts.Expression) => {\n+        const callback = <ts.FunctionExpression>c.arguments[0];\n+        let params = callback.parameters;\n+        if (params.length !== 2) {\n+          this.reportError(c, 'Map.forEach callback supports two arguments only');\n+        }\n+        [params[0], params[1]] = [params[1], params[0]];","path":"lib/facade_converter.ts","position":10,"original_position":10,"commit_id":"b52e19c32e16570f0712eb765fcb94bc609f08c7","original_commit_id":"b52e19c32e16570f0712eb765fcb94bc609f08c7","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"body":"@mprobst I would prefer creating a new Node instead of mutating an existing one. What do you think ?","created_at":"2015-06-22T11:36:03Z","updated_at":"2015-06-22T11:36:03Z","html_url":"https://github.com/angular/ts2dart/pull/215#discussion_r32925239","pull_request_url":"https://api.github.com/repos/angular/ts2dart/pulls/215","_links":{"self":{"href":"https://api.github.com/repos/angular/ts2dart/pulls/comments/32925239"},"html":{"href":"https://github.com/angular/ts2dart/pull/215#discussion_r32925239"},"pull_request":{"href":"https://api.github.com/repos/angular/ts2dart/pulls/215"}}},"pull_request":{"url":"https://api.github.com/repos/angular/ts2dart/pulls/215","id":38222460,"html_url":"https://github.com/angular/ts2dart/pull/215","diff_url":"https://github.com/angular/ts2dart/pull/215.diff","patch_url":"https://github.com/angular/ts2dart/pull/215.patch","issue_url":"https://api.github.com/repos/angular/ts2dart/issues/215","number":215,"state":"open","locked":false,"title":"feat(Facade): add support for Map.forEach","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-06-22T11:32:14Z","updated_at":"2015-06-22T11:36:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"94e018dc29441514e8c6ba41c5b1294ec99ff3b5","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angular/ts2dart/pulls/215/commits","review_comments_url":"https://api.github.com/repos/angular/ts2dart/pulls/215/comments","review_comment_url":"https://api.github.com/repos/angular/ts2dart/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/ts2dart/issues/215/comments","statuses_url":"https://api.github.com/repos/angular/ts2dart/statuses/b52e19c32e16570f0712eb765fcb94bc609f08c7","head":{"label":"vicb:0622-mfe","ref":"0622-mfe","sha":"b52e19c32e16570f0712eb765fcb94bc609f08c7","user":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"repo":{"id":37546409,"name":"ts2dart","full_name":"vicb/ts2dart","owner":{"login":"vicb","id":248818,"avatar_url":"https://avatars.githubusercontent.com/u/248818?v=3","gravatar_id":"","url":"https://api.github.com/users/vicb","html_url":"https://github.com/vicb","followers_url":"https://api.github.com/users/vicb/followers","following_url":"https://api.github.com/users/vicb/following{/other_user}","gists_url":"https://api.github.com/users/vicb/gists{/gist_id}","starred_url":"https://api.github.com/users/vicb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vicb/subscriptions","organizations_url":"https://api.github.com/users/vicb/orgs","repos_url":"https://api.github.com/users/vicb/repos","events_url":"https://api.github.com/users/vicb/events{/privacy}","received_events_url":"https://api.github.com/users/vicb/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vicb/ts2dart","description":"ts2dart TypeScript to Dart transpiler","fork":true,"url":"https://api.github.com/repos/vicb/ts2dart","forks_url":"https://api.github.com/repos/vicb/ts2dart/forks","keys_url":"https://api.github.com/repos/vicb/ts2dart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vicb/ts2dart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vicb/ts2dart/teams","hooks_url":"https://api.github.com/repos/vicb/ts2dart/hooks","issue_events_url":"https://api.github.com/repos/vicb/ts2dart/issues/events{/number}","events_url":"https://api.github.com/repos/vicb/ts2dart/events","assignees_url":"https://api.github.com/repos/vicb/ts2dart/assignees{/user}","branches_url":"https://api.github.com/repos/vicb/ts2dart/branches{/branch}","tags_url":"https://api.github.com/repos/vicb/ts2dart/tags","blobs_url":"https://api.github.com/repos/vicb/ts2dart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vicb/ts2dart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vicb/ts2dart/git/refs{/sha}","trees_url":"https://api.github.com/repos/vicb/ts2dart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vicb/ts2dart/statuses/{sha}","languages_url":"https://api.github.com/repos/vicb/ts2dart/languages","stargazers_url":"https://api.github.com/repos/vicb/ts2dart/stargazers","contributors_url":"https://api.github.com/repos/vicb/ts2dart/contributors","subscribers_url":"https://api.github.com/repos/vicb/ts2dart/subscribers","subscription_url":"https://api.github.com/repos/vicb/ts2dart/subscription","commits_url":"https://api.github.com/repos/vicb/ts2dart/commits{/sha}","git_commits_url":"https://api.github.com/repos/vicb/ts2dart/git/commits{/sha}","comments_url":"https://api.github.com/repos/vicb/ts2dart/comments{/number}","issue_comment_url":"https://api.github.com/repos/vicb/ts2dart/issues/comments{/number}","contents_url":"https://api.github.com/repos/vicb/ts2dart/contents/{+path}","compare_url":"https://api.github.com/repos/vicb/ts2dart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vicb/ts2dart/merges","archive_url":"https://api.github.com/repos/vicb/ts2dart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vicb/ts2dart/downloads","issues_url":"https://api.github.com/repos/vicb/ts2dart/issues{/number}","pulls_url":"https://api.github.com/repos/vicb/ts2dart/pulls{/number}","milestones_url":"https://api.github.com/repos/vicb/ts2dart/milestones{/number}","notifications_url":"https://api.github.com/repos/vicb/ts2dart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vicb/ts2dart/labels{/name}","releases_url":"https://api.github.com/repos/vicb/ts2dart/releases{/id}","created_at":"2015-06-16T17:49:47Z","updated_at":"2015-06-16T17:49:47Z","pushed_at":"2015-06-22T11:34:18Z","git_url":"git://github.com/vicb/ts2dart.git","ssh_url":"git@github.com:vicb/ts2dart.git","clone_url":"https://github.com/vicb/ts2dart.git","svn_url":"https://github.com/vicb/ts2dart","homepage":"","size":430,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":false,"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":0,"default_branch":"master"}},"base":{"label":"angular:master","ref":"master","sha":"017024a21935c7d435aeedc9ef776b65821f59c7","user":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"repo":{"id":32405591,"name":"ts2dart","full_name":"angular/ts2dart","owner":{"login":"angular","id":139426,"avatar_url":"https://avatars.githubusercontent.com/u/139426?v=3","gravatar_id":"","url":"https://api.github.com/users/angular","html_url":"https://github.com/angular","followers_url":"https://api.github.com/users/angular/followers","following_url":"https://api.github.com/users/angular/following{/other_user}","gists_url":"https://api.github.com/users/angular/gists{/gist_id}","starred_url":"https://api.github.com/users/angular/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angular/subscriptions","organizations_url":"https://api.github.com/users/angular/orgs","repos_url":"https://api.github.com/users/angular/repos","events_url":"https://api.github.com/users/angular/events{/privacy}","received_events_url":"https://api.github.com/users/angular/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angular/ts2dart","description":"ts2dart TypeScript to Dart transpiler","fork":false,"url":"https://api.github.com/repos/angular/ts2dart","forks_url":"https://api.github.com/repos/angular/ts2dart/forks","keys_url":"https://api.github.com/repos/angular/ts2dart/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/ts2dart/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/ts2dart/teams","hooks_url":"https://api.github.com/repos/angular/ts2dart/hooks","issue_events_url":"https://api.github.com/repos/angular/ts2dart/issues/events{/number}","events_url":"https://api.github.com/repos/angular/ts2dart/events","assignees_url":"https://api.github.com/repos/angular/ts2dart/assignees{/user}","branches_url":"https://api.github.com/repos/angular/ts2dart/branches{/branch}","tags_url":"https://api.github.com/repos/angular/ts2dart/tags","blobs_url":"https://api.github.com/repos/angular/ts2dart/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/ts2dart/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/ts2dart/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/ts2dart/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/ts2dart/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/ts2dart/languages","stargazers_url":"https://api.github.com/repos/angular/ts2dart/stargazers","contributors_url":"https://api.github.com/repos/angular/ts2dart/contributors","subscribers_url":"https://api.github.com/repos/angular/ts2dart/subscribers","subscription_url":"https://api.github.com/repos/angular/ts2dart/subscription","commits_url":"https://api.github.com/repos/angular/ts2dart/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/ts2dart/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/ts2dart/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/ts2dart/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/ts2dart/contents/{+path}","compare_url":"https://api.github.com/repos/angular/ts2dart/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/ts2dart/merges","archive_url":"https://api.github.com/repos/angular/ts2dart/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/ts2dart/downloads","issues_url":"https://api.github.com/repos/angular/ts2dart/issues{/number}","pulls_url":"https://api.github.com/repos/angular/ts2dart/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/ts2dart/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/ts2dart/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/ts2dart/labels{/name}","releases_url":"https://api.github.com/repos/angular/ts2dart/releases{/id}","created_at":"2015-03-17T16:28:22Z","updated_at":"2015-05-20T21:50:36Z","pushed_at":"2015-06-22T11:34:18Z","git_url":"git://github.com/angular/ts2dart.git","ssh_url":"git@github.com:angular/ts2dart.git","clone_url":"https://github.com/angular/ts2dart.git","svn_url":"https://github.com/angular/ts2dart","homepage":"","size":2058,"stargazers_count":22,"watchers_count":22,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":20,"forks":11,"open_issues":20,"watchers":22,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/ts2dart/pulls/215"},"html":{"href":"https://github.com/angular/ts2dart/pull/215"},"issue":{"href":"https://api.github.com/repos/angular/ts2dart/issues/215"},"comments":{"href":"https://api.github.com/repos/angular/ts2dart/issues/215/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/ts2dart/pulls/215/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/ts2dart/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/ts2dart/pulls/215/commits"},"statuses":{"href":"https://api.github.com/repos/angular/ts2dart/statuses/b52e19c32e16570f0712eb765fcb94bc609f08c7"}}}}