GitHub PullRequestReviewCommentEvent at 2014-09-09 23:42:25
Repository: TypeScript
Actor: JsonFreeman
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/17335498","id":17335498,"diff_hunk":"@@ -2281,73 +2311,162 @@ module ts {\n                 return map(keywords, getReferenceEntryFromNode);\r\n             }\r\n \r\n+            function getLoopBreakContinueOccurrences(loopNode: IterationStatement): ReferenceEntry[] {\r\n+                var keywords: Node[] = [];\r\n+\r\n+                if (pushKeywordIf(keywords, loopNode.getFirstToken(), SyntaxKind.ForKeyword, SyntaxKind.WhileKeyword, SyntaxKind.DoKeyword)) {\r\n+                    // If we succeeded and got a do-while loop, then start looking for a 'while' keyword.\r\n+                    if (loopNode.kind === SyntaxKind.DoStatement) {\r\n+                        var loopTokens = loopNode.getChildren();\r\n+\r\n+                        for (var i = loopTokens.length - 1; i >= 0; i--) {\r\n+                            if (pushKeywordIf(keywords, loopTokens[i], SyntaxKind.WhileKeyword)) {\r\n+                                break;\r\n+                            }\r\n+                        }\r\n+                    }\r\n+                }\r\n+                \r\n+                // These track whether we can own unlabeled break/continues.\r\n+                var breakSearchType = BreakContinueSearchType.All;\r\n+                var continueSearchType = BreakContinueSearchType.All;\r\n+\r\n+                (function aggregateBreakContinues(node: Node) {\r\n+                    // Remember the statuses of the flags before diving into the next node.\r\n+                    var prevBreakSearchType = breakSearchType;\r\n+                    var prevContinueSearchType = continueSearchType;\r\n+\r\n+                    switch (node.kind) {\r\n+                        case SyntaxKind.BreakStatement:\r\n+                        case SyntaxKind.ContinueStatement:\r\n+                            if (ownsBreakOrContinue(loopNode, <BreakOrContinueStatement>node, breakSearchType, continueSearchType)) {\r\n+                                pushKeywordIf(keywords, node.getFirstToken(), SyntaxKind.BreakKeyword, SyntaxKind.ContinueKeyword);\r\n+                            }\r\n+                            break;\r\n+                        \r\n+                        case SyntaxKind.ForStatement:\r\n+                        case SyntaxKind.ForInStatement:\r\n+                        case SyntaxKind.DoStatement:\r\n+                        case SyntaxKind.WhileStatement:\r\n+                            continueSearchType = BreakContinueSearchType.Labeled;\r\n+                        // Fall through\r\n+                        case SyntaxKind.SwitchStatement:\r\n+                            breakSearchType = BreakContinueSearchType.Labeled;\r\n+                    }\r\n+\r\n+                    // Do not cross function boundaries.\r\n+                    if (!isAnyFunction(node)) {\r\n+                        forEachChild(node, aggregateBreakContinues);\r\n+                    }\r\n+\r\n+                    // Restore the last state.\r\n+                    breakSearchType = prevBreakSearchType;\r\n+                    continueSearchType = prevContinueSearchType;\r\n+                })(loopNode.statement);\r\n+\r\n+                return map(keywords, getReferenceEntryFromNode);\r\n+            }\r\n+\r\n             function getSwitchCaseDefaultOccurrences(switchStatement: SwitchStatement) {\r\n                 var keywords: Node[] = [];\r\n \r\n                 pushKeywordIf(keywords, switchStatement.getFirstToken(), SyntaxKind.SwitchKeyword);\r\n \r\n-                // Go through each clause in the switch statement, collecting the clause keywords.\r\n+                // Types of break statements we can grab on to.\r\n+                var breakSearchType = BreakContinueSearchType.All;\r\n+\r\n+                // Go through each clause in the switch statement, collecting the case/default keywords.\r\n                 forEach(switchStatement.clauses, clause => {\r\n                     pushKeywordIf(keywords, clause.getFirstToken(), SyntaxKind.CaseKeyword, SyntaxKind.DefaultKeyword);\r\n \r\n                     // For each clause, also recursively traverse the statements where we can find analogous breaks.\r\n                     forEachChild(clause, function aggregateBreakKeywords(node: Node): void {\r\n+                        // Back the old search value up.\r\n+                        var oldBreakSearchType = breakSearchType;\r\n+\r\n                         switch (node.kind) {\r\n                             case SyntaxKind.BreakStatement:\r\n                                 // If the break statement has a label, it cannot be part of a switch block.\r\n-                                if (!(<BreakOrContinueStatement>node).label) {\r\n+                                if (ownsBreakOrContinue(switchStatement,\r\n+                                                        <BreakOrContinueStatement>node,\r\n+                                                        breakSearchType,\r\n+                                                        /*continuesSearchType*/ BreakContinueSearchType.None)) {\r\n                                     pushKeywordIf(keywords, node.getFirstToken(), SyntaxKind.BreakKeyword);\r\n                                 }\r\n-                            // Fall through\r\n+                                break;\r\n                             case SyntaxKind.ForStatement:\r\n                             case SyntaxKind.ForInStatement:\r\n                             case SyntaxKind.DoStatement:\r\n                             case SyntaxKind.WhileStatement:\r\n                             case SyntaxKind.SwitchStatement:\r\n-                                return;\r\n+                                breakSearchType = BreakContinueSearchType.Labeled;\r\n                         }\r\n \r\n                         // Do not cross function boundaries.\r\n                         if (!isAnyFunction(node)) {\r\n                             forEachChild(node, aggregateBreakKeywords);\r\n                         }\r\n+\r\n+                        // Restore the last state.\r\n+                        breakSearchType = oldBreakSearchType;\r\n                     });\r\n                 });\r\n \r\n                 return map(keywords, getReferenceEntryFromNode);\r\n             }\r\n \r\n-            function getBreakStatementOccurences(breakStatement: BreakOrContinueStatement): ReferenceEntry[]{\r\n-                // TODO (drosen): Deal with labeled statements.\r\n-                if (breakStatement.label) {\r\n-                    return undefined;\r\n-                }\r\n-                \r\n+            function getBreakOrContinueStatementOccurences(breakOrContinueStatement: BreakOrContinueStatement): ReferenceEntry[] {\r\n                 for (var owner = node.parent; owner; owner = owner.parent) {\r\n                     switch (owner.kind) {\r\n                         case SyntaxKind.ForStatement:\r\n                         case SyntaxKind.ForInStatement:\r\n                         case SyntaxKind.DoStatement:\r\n                         case SyntaxKind.WhileStatement:\r\n-                            // TODO (drosen): Handle loops!\r\n-                            return undefined;\r\n-\r\n+                            // The iteration statement is the owner if the break/continue statement is either unlabeled,\r\n+                            // or if the break/continue statement's label corresponds to one of the loop's labels.\r\n+                            if (!breakOrContinueStatement.label || isLabelledBy(owner, breakOrContinueStatement.label.text)) {\r\n+                                return getLoopBreakContinueOccurrences(<IterationStatement>owner)\r\n+                            }\r\n+                            break;\r\n                         case SyntaxKind.SwitchStatement:\r\n-                            return getSwitchCaseDefaultOccurrences(<SwitchStatement>owner);\r\n-\r\n+                            // A switch statement can only be the owner of an break statement.\r\n+                            if (breakOrContinueStatement.kind === SyntaxKind.BreakStatement && (!breakOrContinueStatement.label || isLabelledBy(owner, breakOrContinueStatement.label.text))) {\r\n+                                return getSwitchCaseDefaultOccurrences(<SwitchStatement>owner);\r\n+                            }\r\n+                            break;\r\n                         default:\r\n                             if (isAnyFunction(owner)) {\r\n                                 return undefined;\r\n                             }\r\n+                            break;\r\n                     }\r\n                 }\r\n \r\n                 return undefined;\r\n             }\r\n \r\n+            // Note: 'statement' must be a descendant of 'root'.\r\n+            //       Reasonable logic for restricting traversal prior to arriving at the\r\n+            //       'statement' node is beyond the scope of this function.\r\n+            function ownsBreakOrContinue(root: Node,\r\n+                                         statement: BreakOrContinueStatement,\r\n+                                         breakSearchType: BreakContinueSearchType,\r\n+                                         continueSearchType: BreakContinueSearchType): boolean {\r","path":"src/services/services.ts","position":219,"original_position":219,"commit_id":"90dd3276359eb8cd747a1978f02cf4599a2e3ed3","original_commit_id":"90dd3276359eb8cd747a1978f02cf4599a2e3ed3","user":{"login":"JsonFreeman","id":8052525,"avatar_url":"https://avatars.githubusercontent.com/u/8052525?v=2","gravatar_id":"861d215ba1bf64bf4d78bd15dd9dfd30","url":"https://api.github.com/users/JsonFreeman","html_url":"https://github.com/JsonFreeman","followers_url":"https://api.github.com/users/JsonFreeman/followers","following_url":"https://api.github.com/users/JsonFreeman/following{/other_user}","gists_url":"https://api.github.com/users/JsonFreeman/gists{/gist_id}","starred_url":"https://api.github.com/users/JsonFreeman/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/JsonFreeman/subscriptions","organizations_url":"https://api.github.com/users/JsonFreeman/orgs","repos_url":"https://api.github.com/users/JsonFreeman/repos","events_url":"https://api.github.com/users/JsonFreeman/events{/privacy}","received_events_url":"https://api.github.com/users/JsonFreeman/received_events","type":"User","site_admin":false},"body":"Is it better to take 2 parameters and then decide which one to use inside the function? Or is it better to make the caller choose and only pass one argument?","created_at":"2014-09-09T23:42:25Z","updated_at":"2014-09-09T23:42:25Z","html_url":"https://github.com/Microsoft/TypeScript/pull/637#discussion_r17335498","pull_request_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/17335498"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/637#discussion_r17335498"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637","id":20985096,"html_url":"https://github.com/Microsoft/TypeScript/pull/637","diff_url":"https://github.com/Microsoft/TypeScript/pull/637.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/637.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/637","number":637,"state":"open","locked":false,"title":"Get occurrences for loops with 'break'/'continue' statements","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=2","gravatar_id":"a0600a1c0b04a206e787fb5a29038d3a","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-09-09T21:31:24Z","updated_at":"2014-09-09T23:42:25Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2108c35f8d93f882cb3ef17ffb49db70d6ec62b4","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/637/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/90dd3276359eb8cd747a1978f02cf4599a2e3ed3","head":{"label":"Microsoft:getOccurrencesLoopBreakContinue","ref":"getOccurrencesLoopBreakContinue","sha":"90dd3276359eb8cd747a1978f02cf4599a2e3ed3","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=2","gravatar_id":"7d3b0469b6f73dd41ed7de7931e44510","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":20929025,"name":"TypeScript","full_name":"Microsoft/TypeScript","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=2","gravatar_id":"7d3b0469b6f73dd41ed7de7931e44510","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript","forks_url":"https://api.github.com/repos/Microsoft/TypeScript/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/{number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript/releases{/id}","created_at":"2014-06-17T15:28:39Z","updated_at":"2014-09-09T15:35:47Z","pushed_at":"2014-09-09T23:21:44Z","git_url":"git://github.com/Microsoft/TypeScript.git","ssh_url":"git@github.com:Microsoft/TypeScript.git","clone_url":"https://github.com/Microsoft/TypeScript.git","svn_url":"https://github.com/Microsoft/TypeScript","homepage":"http://www.typescriptlang.org","size":88160,"stargazers_count":2081,"watchers_count":2081,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":150,"mirror_url":null,"open_issues_count":188,"forks":150,"open_issues":188,"watchers":2081,"default_branch":"master"}},"base":{"label":"Microsoft:getOccurrences","ref":"getOccurrences","sha":"e1f8aa7b8f140c280b7770628e69fef94dd9fa29","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=2","gravatar_id":"7d3b0469b6f73dd41ed7de7931e44510","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"repo":{"id":20929025,"name":"TypeScript","full_name":"Microsoft/TypeScript","owner":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=2","gravatar_id":"7d3b0469b6f73dd41ed7de7931e44510","url":"https://api.github.com/users/Microsoft","html_url":"https://github.com/Microsoft","followers_url":"https://api.github.com/users/Microsoft/followers","following_url":"https://api.github.com/users/Microsoft/following{/other_user}","gists_url":"https://api.github.com/users/Microsoft/gists{/gist_id}","starred_url":"https://api.github.com/users/Microsoft/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Microsoft/subscriptions","organizations_url":"https://api.github.com/users/Microsoft/orgs","repos_url":"https://api.github.com/users/Microsoft/repos","events_url":"https://api.github.com/users/Microsoft/events{/privacy}","received_events_url":"https://api.github.com/users/Microsoft/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Microsoft/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":false,"url":"https://api.github.com/repos/Microsoft/TypeScript","forks_url":"https://api.github.com/repos/Microsoft/TypeScript/forks","keys_url":"https://api.github.com/repos/Microsoft/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Microsoft/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Microsoft/TypeScript/teams","hooks_url":"https://api.github.com/repos/Microsoft/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/Microsoft/TypeScript/events","assignees_url":"https://api.github.com/repos/Microsoft/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/Microsoft/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/Microsoft/TypeScript/tags","blobs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Microsoft/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Microsoft/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/Microsoft/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/Microsoft/TypeScript/languages","stargazers_url":"https://api.github.com/repos/Microsoft/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/Microsoft/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/Microsoft/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/Microsoft/TypeScript/subscription","commits_url":"https://api.github.com/repos/Microsoft/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/Microsoft/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/{number}","contents_url":"https://api.github.com/repos/Microsoft/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/Microsoft/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Microsoft/TypeScript/merges","archive_url":"https://api.github.com/repos/Microsoft/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Microsoft/TypeScript/downloads","issues_url":"https://api.github.com/repos/Microsoft/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/Microsoft/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/Microsoft/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/Microsoft/TypeScript/releases{/id}","created_at":"2014-06-17T15:28:39Z","updated_at":"2014-09-09T15:35:47Z","pushed_at":"2014-09-09T23:21:44Z","git_url":"git://github.com/Microsoft/TypeScript.git","ssh_url":"git@github.com:Microsoft/TypeScript.git","clone_url":"https://github.com/Microsoft/TypeScript.git","svn_url":"https://github.com/Microsoft/TypeScript","homepage":"http://www.typescriptlang.org","size":88160,"stargazers_count":2081,"watchers_count":2081,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"forks_count":150,"mirror_url":null,"open_issues_count":188,"forks":150,"open_issues":188,"watchers":2081,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/637"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/637"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/637/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/637/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript/statuses/90dd3276359eb8cd747a1978f02cf4599a2e3ed3"}}}}