{"action":"created","comment":{"url":"https://api.github.com/repos/dart-lang/code_builder/pulls/comments/78682385","id":78682385,"diff_hunk":"@@ -59,18 +85,74 @@ abstract class ExpressionBuilder implements CodeBuilder<Expression> {\n \n   const ExpressionBuilder._();\n \n+  /// Return a new [ExpressionBuilder] invoking the result of this expression.\n+  ExpressionBuilder invokeSelf(\n+    String name, {\n+    Iterable<CodeBuilder<Expression>> positional: const [],\n+    Map<String, CodeBuilder<Expression>> named: const {},\n+  }); // TODO(matanl): Rename to invoke when factory is removed.\n+\n   /// Returns wrapped as a [ExpressionFunctionBody] AST.\n   ExpressionFunctionBody toFunctionBody() => _asFunctionBody(this);\n \n   /// Returns wrapped as a [FunctionExpression] AST.\n   FunctionExpression toFunctionExpression() => _asFunctionExpression(this);\n+\n+  /// Returns as a [StatementBuilder].","path":"lib/src/expression_builder.dart","position":72,"original_position":72,"commit_id":"6a00851b6de9231b319c0559c58d7aa046eb74f4","original_commit_id":"6a00851b6de9231b319c0559c58d7aa046eb74f4","user":{"login":"yjbanov","id":211513,"avatar_url":"https://avatars.githubusercontent.com/u/211513?v=3","gravatar_id":"","url":"https://api.github.com/users/yjbanov","html_url":"https://github.com/yjbanov","followers_url":"https://api.github.com/users/yjbanov/followers","following_url":"https://api.github.com/users/yjbanov/following{/other_user}","gists_url":"https://api.github.com/users/yjbanov/gists{/gist_id}","starred_url":"https://api.github.com/users/yjbanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjbanov/subscriptions","organizations_url":"https://api.github.com/users/yjbanov/orgs","repos_url":"https://api.github.com/users/yjbanov/repos","events_url":"https://api.github.com/users/yjbanov/events{/privacy}","received_events_url":"https://api.github.com/users/yjbanov/received_events","type":"User","site_admin":false},"body":"nit: for doc comment, how about \"Converts to\" rather that \"Returns as\" to underscore that it's not a simple cast but a conversion.","created_at":"2016-09-14T03:44:57Z","updated_at":"2016-09-14T03:44:57Z","html_url":"https://github.com/dart-lang/code_builder/pull/4#discussion_r78682385","pull_request_url":"https://api.github.com/repos/dart-lang/code_builder/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/dart-lang/code_builder/pulls/comments/78682385"},"html":{"href":"https://github.com/dart-lang/code_builder/pull/4#discussion_r78682385"},"pull_request":{"href":"https://api.github.com/repos/dart-lang/code_builder/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/dart-lang/code_builder/pulls/4","id":85156348,"html_url":"https://github.com/dart-lang/code_builder/pull/4","diff_url":"https://github.com/dart-lang/code_builder/pull/4.diff","patch_url":"https://github.com/dart-lang/code_builder/pull/4.patch","issue_url":"https://api.github.com/repos/dart-lang/code_builder/issues/4","number":4,"state":"open","locked":false,"title":"Add Expression#toStatement, and tests.","user":{"login":"matanlurey","id":168174,"avatar_url":"https://avatars.githubusercontent.com/u/168174?v=3","gravatar_id":"","url":"https://api.github.com/users/matanlurey","html_url":"https://github.com/matanlurey","followers_url":"https://api.github.com/users/matanlurey/followers","following_url":"https://api.github.com/users/matanlurey/following{/other_user}","gists_url":"https://api.github.com/users/matanlurey/gists{/gist_id}","starred_url":"https://api.github.com/users/matanlurey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matanlurey/subscriptions","organizations_url":"https://api.github.com/users/matanlurey/orgs","repos_url":"https://api.github.com/users/matanlurey/repos","events_url":"https://api.github.com/users/matanlurey/events{/privacy}","received_events_url":"https://api.github.com/users/matanlurey/received_events","type":"User","site_admin":false},"body":"Closes https://github.com/dart-lang/code_builder/issues/2.","created_at":"2016-09-14T02:13:42Z","updated_at":"2016-09-14T03:44:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"bb7bb022528ef1a5c7803facaffda3d709171ea2","assignee":{"login":"yjbanov","id":211513,"avatar_url":"https://avatars.githubusercontent.com/u/211513?v=3","gravatar_id":"","url":"https://api.github.com/users/yjbanov","html_url":"https://github.com/yjbanov","followers_url":"https://api.github.com/users/yjbanov/followers","following_url":"https://api.github.com/users/yjbanov/following{/other_user}","gists_url":"https://api.github.com/users/yjbanov/gists{/gist_id}","starred_url":"https://api.github.com/users/yjbanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjbanov/subscriptions","organizations_url":"https://api.github.com/users/yjbanov/orgs","repos_url":"https://api.github.com/users/yjbanov/repos","events_url":"https://api.github.com/users/yjbanov/events{/privacy}","received_events_url":"https://api.github.com/users/yjbanov/received_events","type":"User","site_admin":false},"assignees":[{"login":"yjbanov","id":211513,"avatar_url":"https://avatars.githubusercontent.com/u/211513?v=3","gravatar_id":"","url":"https://api.github.com/users/yjbanov","html_url":"https://github.com/yjbanov","followers_url":"https://api.github.com/users/yjbanov/followers","following_url":"https://api.github.com/users/yjbanov/following{/other_user}","gists_url":"https://api.github.com/users/yjbanov/gists{/gist_id}","starred_url":"https://api.github.com/users/yjbanov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yjbanov/subscriptions","organizations_url":"https://api.github.com/users/yjbanov/orgs","repos_url":"https://api.github.com/users/yjbanov/repos","events_url":"https://api.github.com/users/yjbanov/events{/privacy}","received_events_url":"https://api.github.com/users/yjbanov/received_events","type":"User","site_admin":false}],"milestone":null,"commits_url":"https://api.github.com/repos/dart-lang/code_builder/pulls/4/commits","review_comments_url":"https://api.github.com/repos/dart-lang/code_builder/pulls/4/comments","review_comment_url":"https://api.github.com/repos/dart-lang/code_builder/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dart-lang/code_builder/issues/4/comments","statuses_url":"https://api.github.com/repos/dart-lang/code_builder/statuses/6a00851b6de9231b319c0559c58d7aa046eb74f4","head":{"label":"matanlurey:expression_to_statement","ref":"expression_to_statement","sha":"6a00851b6de9231b319c0559c58d7aa046eb74f4","user":{"login":"matanlurey","id":168174,"avatar_url":"https://avatars.githubusercontent.com/u/168174?v=3","gravatar_id":"","url":"https://api.github.com/users/matanlurey","html_url":"https://github.com/matanlurey","followers_url":"https://api.github.com/users/matanlurey/followers","following_url":"https://api.github.com/users/matanlurey/following{/other_user}","gists_url":"https://api.github.com/users/matanlurey/gists{/gist_id}","starred_url":"https://api.github.com/users/matanlurey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matanlurey/subscriptions","organizations_url":"https://api.github.com/users/matanlurey/orgs","repos_url":"https://api.github.com/users/matanlurey/repos","events_url":"https://api.github.com/users/matanlurey/events{/privacy}","received_events_url":"https://api.github.com/users/matanlurey/received_events","type":"User","site_admin":false},"repo":{"id":68159053,"name":"code_builder","full_name":"matanlurey/code_builder","owner":{"login":"matanlurey","id":168174,"avatar_url":"https://avatars.githubusercontent.com/u/168174?v=3","gravatar_id":"","url":"https://api.github.com/users/matanlurey","html_url":"https://github.com/matanlurey","followers_url":"https://api.github.com/users/matanlurey/followers","following_url":"https://api.github.com/users/matanlurey/following{/other_user}","gists_url":"https://api.github.com/users/matanlurey/gists{/gist_id}","starred_url":"https://api.github.com/users/matanlurey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matanlurey/subscriptions","organizations_url":"https://api.github.com/users/matanlurey/orgs","repos_url":"https://api.github.com/users/matanlurey/repos","events_url":"https://api.github.com/users/matanlurey/events{/privacy}","received_events_url":"https://api.github.com/users/matanlurey/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/matanlurey/code_builder","description":"A fluent API for generating valid Dart source code","fork":true,"url":"https://api.github.com/repos/matanlurey/code_builder","forks_url":"https://api.github.com/repos/matanlurey/code_builder/forks","keys_url":"https://api.github.com/repos/matanlurey/code_builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/matanlurey/code_builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/matanlurey/code_builder/teams","hooks_url":"https://api.github.com/repos/matanlurey/code_builder/hooks","issue_events_url":"https://api.github.com/repos/matanlurey/code_builder/issues/events{/number}","events_url":"https://api.github.com/repos/matanlurey/code_builder/events","assignees_url":"https://api.github.com/repos/matanlurey/code_builder/assignees{/user}","branches_url":"https://api.github.com/repos/matanlurey/code_builder/branches{/branch}","tags_url":"https://api.github.com/repos/matanlurey/code_builder/tags","blobs_url":"https://api.github.com/repos/matanlurey/code_builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/matanlurey/code_builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/matanlurey/code_builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/matanlurey/code_builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/matanlurey/code_builder/statuses/{sha}","languages_url":"https://api.github.com/repos/matanlurey/code_builder/languages","stargazers_url":"https://api.github.com/repos/matanlurey/code_builder/stargazers","contributors_url":"https://api.github.com/repos/matanlurey/code_builder/contributors","subscribers_url":"https://api.github.com/repos/matanlurey/code_builder/subscribers","subscription_url":"https://api.github.com/repos/matanlurey/code_builder/subscription","commits_url":"https://api.github.com/repos/matanlurey/code_builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/matanlurey/code_builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/matanlurey/code_builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/matanlurey/code_builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/matanlurey/code_builder/contents/{+path}","compare_url":"https://api.github.com/repos/matanlurey/code_builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/matanlurey/code_builder/merges","archive_url":"https://api.github.com/repos/matanlurey/code_builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/matanlurey/code_builder/downloads","issues_url":"https://api.github.com/repos/matanlurey/code_builder/issues{/number}","pulls_url":"https://api.github.com/repos/matanlurey/code_builder/pulls{/number}","milestones_url":"https://api.github.com/repos/matanlurey/code_builder/milestones{/number}","notifications_url":"https://api.github.com/repos/matanlurey/code_builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/matanlurey/code_builder/labels{/name}","releases_url":"https://api.github.com/repos/matanlurey/code_builder/releases{/id}","deployments_url":"https://api.github.com/repos/matanlurey/code_builder/deployments","created_at":"2016-09-14T00:33:38Z","updated_at":"2016-09-14T00:33:40Z","pushed_at":"2016-09-14T02:13:13Z","git_url":"git://github.com/matanlurey/code_builder.git","ssh_url":"git@github.com:matanlurey/code_builder.git","clone_url":"https://github.com/matanlurey/code_builder.git","svn_url":"https://github.com/matanlurey/code_builder","homepage":"","size":28,"stargazers_count":0,"watchers_count":0,"language":"Dart","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":"dart-lang:master","ref":"master","sha":"7383054f19d516ddff2d94a0baabb9ab05ec8b5e","user":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars.githubusercontent.com/u/1609975?v=3","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"repo":{"id":66028865,"name":"code_builder","full_name":"dart-lang/code_builder","owner":{"login":"dart-lang","id":1609975,"avatar_url":"https://avatars.githubusercontent.com/u/1609975?v=3","gravatar_id":"","url":"https://api.github.com/users/dart-lang","html_url":"https://github.com/dart-lang","followers_url":"https://api.github.com/users/dart-lang/followers","following_url":"https://api.github.com/users/dart-lang/following{/other_user}","gists_url":"https://api.github.com/users/dart-lang/gists{/gist_id}","starred_url":"https://api.github.com/users/dart-lang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dart-lang/subscriptions","organizations_url":"https://api.github.com/users/dart-lang/orgs","repos_url":"https://api.github.com/users/dart-lang/repos","events_url":"https://api.github.com/users/dart-lang/events{/privacy}","received_events_url":"https://api.github.com/users/dart-lang/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dart-lang/code_builder","description":"A fluent API for generating valid Dart source code","fork":false,"url":"https://api.github.com/repos/dart-lang/code_builder","forks_url":"https://api.github.com/repos/dart-lang/code_builder/forks","keys_url":"https://api.github.com/repos/dart-lang/code_builder/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dart-lang/code_builder/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dart-lang/code_builder/teams","hooks_url":"https://api.github.com/repos/dart-lang/code_builder/hooks","issue_events_url":"https://api.github.com/repos/dart-lang/code_builder/issues/events{/number}","events_url":"https://api.github.com/repos/dart-lang/code_builder/events","assignees_url":"https://api.github.com/repos/dart-lang/code_builder/assignees{/user}","branches_url":"https://api.github.com/repos/dart-lang/code_builder/branches{/branch}","tags_url":"https://api.github.com/repos/dart-lang/code_builder/tags","blobs_url":"https://api.github.com/repos/dart-lang/code_builder/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dart-lang/code_builder/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dart-lang/code_builder/git/refs{/sha}","trees_url":"https://api.github.com/repos/dart-lang/code_builder/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dart-lang/code_builder/statuses/{sha}","languages_url":"https://api.github.com/repos/dart-lang/code_builder/languages","stargazers_url":"https://api.github.com/repos/dart-lang/code_builder/stargazers","contributors_url":"https://api.github.com/repos/dart-lang/code_builder/contributors","subscribers_url":"https://api.github.com/repos/dart-lang/code_builder/subscribers","subscription_url":"https://api.github.com/repos/dart-lang/code_builder/subscription","commits_url":"https://api.github.com/repos/dart-lang/code_builder/commits{/sha}","git_commits_url":"https://api.github.com/repos/dart-lang/code_builder/git/commits{/sha}","comments_url":"https://api.github.com/repos/dart-lang/code_builder/comments{/number}","issue_comment_url":"https://api.github.com/repos/dart-lang/code_builder/issues/comments{/number}","contents_url":"https://api.github.com/repos/dart-lang/code_builder/contents/{+path}","compare_url":"https://api.github.com/repos/dart-lang/code_builder/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dart-lang/code_builder/merges","archive_url":"https://api.github.com/repos/dart-lang/code_builder/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dart-lang/code_builder/downloads","issues_url":"https://api.github.com/repos/dart-lang/code_builder/issues{/number}","pulls_url":"https://api.github.com/repos/dart-lang/code_builder/pulls{/number}","milestones_url":"https://api.github.com/repos/dart-lang/code_builder/milestones{/number}","notifications_url":"https://api.github.com/repos/dart-lang/code_builder/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dart-lang/code_builder/labels{/name}","releases_url":"https://api.github.com/repos/dart-lang/code_builder/releases{/id}","deployments_url":"https://api.github.com/repos/dart-lang/code_builder/deployments","created_at":"2016-08-18T20:34:56Z","updated_at":"2016-09-13T19:55:01Z","pushed_at":"2016-09-14T02:13:42Z","git_url":"git://github.com/dart-lang/code_builder.git","ssh_url":"git@github.com:dart-lang/code_builder.git","clone_url":"https://github.com/dart-lang/code_builder.git","svn_url":"https://github.com/dart-lang/code_builder","homepage":"","size":24,"stargazers_count":2,"watchers_count":2,"language":"Dart","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":5,"forks":1,"open_issues":5,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dart-lang/code_builder/pulls/4"},"html":{"href":"https://github.com/dart-lang/code_builder/pull/4"},"issue":{"href":"https://api.github.com/repos/dart-lang/code_builder/issues/4"},"comments":{"href":"https://api.github.com/repos/dart-lang/code_builder/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/dart-lang/code_builder/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/dart-lang/code_builder/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dart-lang/code_builder/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/dart-lang/code_builder/statuses/6a00851b6de9231b319c0559c58d7aa046eb74f4"}}}}
{"actor":{"display_login":"yjbanov"}}