{"action":"created","comment":{"url":"https://api.github.com/repos/angular/angular/pulls/comments/30021616","id":30021616,"diff_hunk":"@@ -40,6 +40,11 @@ if (assertionsEnabled_) {\n }\n export {int};\n \n+// This function is needed only to properly support Dart's const expressions\n+// see https://github.com/angular/ts2dart/pull/151 for more info\n+export function CONST_EXPR(expr) {","path":"modules/angular2/src/facade/lang.ts","position":6,"original_position":6,"commit_id":"3a3c66151a49a2a1481130d18926049f0d00639d","original_commit_id":"3a3c66151a49a2a1481130d18926049f0d00639d","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"body":"Oh, right - still getting used to the fact that TypeScript is so powerful and supports [generics](http://www.typescriptlang.org/Handbook#generics)","created_at":"2015-05-11T08:48:38Z","updated_at":"2015-05-11T08:48:38Z","html_url":"https://github.com/angular/angular/pull/1796#discussion_r30021616","pull_request_url":"https://api.github.com/repos/angular/angular/pulls/1796","_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/comments/30021616"},"html":{"href":"https://github.com/angular/angular/pull/1796#discussion_r30021616"},"pull_request":{"href":"https://api.github.com/repos/angular/angular/pulls/1796"}}},"pull_request":{"url":"https://api.github.com/repos/angular/angular/pulls/1796","id":35081385,"html_url":"https://github.com/angular/angular/pull/1796","diff_url":"https://github.com/angular/angular/pull/1796.diff","patch_url":"https://github.com/angular/angular/pull/1796.patch","issue_url":"https://api.github.com/repos/angular/angular/issues/1796","number":1796,"state":"open","locked":false,"title":"feat(lang): support const expressions in TS/JS and Dart","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"body":"@tbosch @mprobst is this what you had in mind for `const` support?","created_at":"2015-05-10T11:39:15Z","updated_at":"2015-05-11T08:48:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2aefacc11cf001797632e0ac65e0ee14e6caa522","assignee":null,"milestone":{"url":"https://api.github.com/repos/angular/angular/milestones/23","html_url":"https://github.com/angular/angular/milestones/M8:%20GT%20Customer%20(non-blocking)","labels_url":"https://api.github.com/repos/angular/angular/milestones/23/labels","id":1054731,"number":23,"title":"M8: GT Customer (non-blocking)","description":"","creator":{"login":"mhevery","id":111951,"avatar_url":"https://avatars.githubusercontent.com/u/111951?v=3","gravatar_id":"","url":"https://api.github.com/users/mhevery","html_url":"https://github.com/mhevery","followers_url":"https://api.github.com/users/mhevery/followers","following_url":"https://api.github.com/users/mhevery/following{/other_user}","gists_url":"https://api.github.com/users/mhevery/gists{/gist_id}","starred_url":"https://api.github.com/users/mhevery/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mhevery/subscriptions","organizations_url":"https://api.github.com/users/mhevery/orgs","repos_url":"https://api.github.com/users/mhevery/repos","events_url":"https://api.github.com/users/mhevery/events{/privacy}","received_events_url":"https://api.github.com/users/mhevery/received_events","type":"User","site_admin":false},"open_issues":13,"closed_issues":50,"state":"open","created_at":"2015-04-06T16:59:20Z","updated_at":"2015-05-10T17:19:28Z","due_on":"2015-05-05T07:00:00Z","closed_at":null},"commits_url":"https://api.github.com/repos/angular/angular/pulls/1796/commits","review_comments_url":"https://api.github.com/repos/angular/angular/pulls/1796/comments","review_comment_url":"https://api.github.com/repos/angular/angular/pulls/comments{/number}","comments_url":"https://api.github.com/repos/angular/angular/issues/1796/comments","statuses_url":"https://api.github.com/repos/angular/angular/statuses/3a3c66151a49a2a1481130d18926049f0d00639d","head":{"label":"pkozlowski-opensource:dart_const","ref":"dart_const","sha":"3a3c66151a49a2a1481130d18926049f0d00639d","user":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"repo":{"id":28565710,"name":"angular","full_name":"pkozlowski-opensource/angular","owner":{"login":"pkozlowski-opensource","id":973550,"avatar_url":"https://avatars.githubusercontent.com/u/973550?v=3","gravatar_id":"","url":"https://api.github.com/users/pkozlowski-opensource","html_url":"https://github.com/pkozlowski-opensource","followers_url":"https://api.github.com/users/pkozlowski-opensource/followers","following_url":"https://api.github.com/users/pkozlowski-opensource/following{/other_user}","gists_url":"https://api.github.com/users/pkozlowski-opensource/gists{/gist_id}","starred_url":"https://api.github.com/users/pkozlowski-opensource/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pkozlowski-opensource/subscriptions","organizations_url":"https://api.github.com/users/pkozlowski-opensource/orgs","repos_url":"https://api.github.com/users/pkozlowski-opensource/repos","events_url":"https://api.github.com/users/pkozlowski-opensource/events{/privacy}","received_events_url":"https://api.github.com/users/pkozlowski-opensource/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pkozlowski-opensource/angular","description":"","fork":true,"url":"https://api.github.com/repos/pkozlowski-opensource/angular","forks_url":"https://api.github.com/repos/pkozlowski-opensource/angular/forks","keys_url":"https://api.github.com/repos/pkozlowski-opensource/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pkozlowski-opensource/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pkozlowski-opensource/angular/teams","hooks_url":"https://api.github.com/repos/pkozlowski-opensource/angular/hooks","issue_events_url":"https://api.github.com/repos/pkozlowski-opensource/angular/issues/events{/number}","events_url":"https://api.github.com/repos/pkozlowski-opensource/angular/events","assignees_url":"https://api.github.com/repos/pkozlowski-opensource/angular/assignees{/user}","branches_url":"https://api.github.com/repos/pkozlowski-opensource/angular/branches{/branch}","tags_url":"https://api.github.com/repos/pkozlowski-opensource/angular/tags","blobs_url":"https://api.github.com/repos/pkozlowski-opensource/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pkozlowski-opensource/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pkozlowski-opensource/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/pkozlowski-opensource/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pkozlowski-opensource/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/pkozlowski-opensource/angular/languages","stargazers_url":"https://api.github.com/repos/pkozlowski-opensource/angular/stargazers","contributors_url":"https://api.github.com/repos/pkozlowski-opensource/angular/contributors","subscribers_url":"https://api.github.com/repos/pkozlowski-opensource/angular/subscribers","subscription_url":"https://api.github.com/repos/pkozlowski-opensource/angular/subscription","commits_url":"https://api.github.com/repos/pkozlowski-opensource/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/pkozlowski-opensource/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/pkozlowski-opensource/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/pkozlowski-opensource/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/pkozlowski-opensource/angular/contents/{+path}","compare_url":"https://api.github.com/repos/pkozlowski-opensource/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pkozlowski-opensource/angular/merges","archive_url":"https://api.github.com/repos/pkozlowski-opensource/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pkozlowski-opensource/angular/downloads","issues_url":"https://api.github.com/repos/pkozlowski-opensource/angular/issues{/number}","pulls_url":"https://api.github.com/repos/pkozlowski-opensource/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/pkozlowski-opensource/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/pkozlowski-opensource/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pkozlowski-opensource/angular/labels{/name}","releases_url":"https://api.github.com/repos/pkozlowski-opensource/angular/releases{/id}","created_at":"2014-12-28T16:05:25Z","updated_at":"2015-03-31T19:55:36Z","pushed_at":"2015-05-10T16:50:46Z","git_url":"git://github.com/pkozlowski-opensource/angular.git","ssh_url":"git@github.com:pkozlowski-opensource/angular.git","clone_url":"https://github.com/pkozlowski-opensource/angular.git","svn_url":"https://github.com/pkozlowski-opensource/angular","homepage":null,"size":6438,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"28022f472d5dbc231bb5c60da696744da40cf322","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":24195339,"name":"angular","full_name":"angular/angular","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/angular","description":"","fork":false,"url":"https://api.github.com/repos/angular/angular","forks_url":"https://api.github.com/repos/angular/angular/forks","keys_url":"https://api.github.com/repos/angular/angular/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angular/angular/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angular/angular/teams","hooks_url":"https://api.github.com/repos/angular/angular/hooks","issue_events_url":"https://api.github.com/repos/angular/angular/issues/events{/number}","events_url":"https://api.github.com/repos/angular/angular/events","assignees_url":"https://api.github.com/repos/angular/angular/assignees{/user}","branches_url":"https://api.github.com/repos/angular/angular/branches{/branch}","tags_url":"https://api.github.com/repos/angular/angular/tags","blobs_url":"https://api.github.com/repos/angular/angular/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angular/angular/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angular/angular/git/refs{/sha}","trees_url":"https://api.github.com/repos/angular/angular/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angular/angular/statuses/{sha}","languages_url":"https://api.github.com/repos/angular/angular/languages","stargazers_url":"https://api.github.com/repos/angular/angular/stargazers","contributors_url":"https://api.github.com/repos/angular/angular/contributors","subscribers_url":"https://api.github.com/repos/angular/angular/subscribers","subscription_url":"https://api.github.com/repos/angular/angular/subscription","commits_url":"https://api.github.com/repos/angular/angular/commits{/sha}","git_commits_url":"https://api.github.com/repos/angular/angular/git/commits{/sha}","comments_url":"https://api.github.com/repos/angular/angular/comments{/number}","issue_comment_url":"https://api.github.com/repos/angular/angular/issues/comments{/number}","contents_url":"https://api.github.com/repos/angular/angular/contents/{+path}","compare_url":"https://api.github.com/repos/angular/angular/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angular/angular/merges","archive_url":"https://api.github.com/repos/angular/angular/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angular/angular/downloads","issues_url":"https://api.github.com/repos/angular/angular/issues{/number}","pulls_url":"https://api.github.com/repos/angular/angular/pulls{/number}","milestones_url":"https://api.github.com/repos/angular/angular/milestones{/number}","notifications_url":"https://api.github.com/repos/angular/angular/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angular/angular/labels{/name}","releases_url":"https://api.github.com/repos/angular/angular/releases{/id}","created_at":"2014-09-18T16:12:01Z","updated_at":"2015-05-11T07:30:18Z","pushed_at":"2015-05-10T18:30:25Z","git_url":"git://github.com/angular/angular.git","ssh_url":"git@github.com:angular/angular.git","clone_url":"https://github.com/angular/angular.git","svn_url":"https://github.com/angular/angular","homepage":null,"size":24828,"stargazers_count":2947,"watchers_count":2947,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":758,"mirror_url":null,"open_issues_count":288,"forks":758,"open_issues":288,"watchers":2947,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angular/angular/pulls/1796"},"html":{"href":"https://github.com/angular/angular/pull/1796"},"issue":{"href":"https://api.github.com/repos/angular/angular/issues/1796"},"comments":{"href":"https://api.github.com/repos/angular/angular/issues/1796/comments"},"review_comments":{"href":"https://api.github.com/repos/angular/angular/pulls/1796/comments"},"review_comment":{"href":"https://api.github.com/repos/angular/angular/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/angular/angular/pulls/1796/commits"},"statuses":{"href":"https://api.github.com/repos/angular/angular/statuses/3a3c66151a49a2a1481130d18926049f0d00639d"}}}}