{"action":"created","comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/32976764","id":32976764,"diff_hunk":"@@ -2907,11 +2916,11 @@ namespace ts {\n             else if (contextToken && contextToken.kind === SyntaxKind.DotToken && contextToken.parent.kind === SyntaxKind.QualifiedName) {\r\n                 node = (<QualifiedName>contextToken.parent).left;\r\n                 isRightOfDot = true;\r\n+            } else if (contextToken && contextToken.kind === SyntaxKind.LessThanToken && sourceFile.languageVariant === LanguageVariant.JSX) {\r","path":"src/services/services.ts","position":68,"original_position":68,"commit_id":"c9a925eb758ab023197c9e269e3d60fa1f808753","original_commit_id":"c9a925eb758ab023197c9e269e3d60fa1f808753","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","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":"`else` on next line.\r\n\r\nAlso consider\r\n\r\n```TypeScript\r\nif (contextToken) {\r\n    let { kind, parent } = contextToken;\r\n    if (kind === SyntaxKind.DotToken) {\r\n        if (parent.kind === PropertyAccessExpression || parent.kind === SyntaxKind.QualifiedName) {\r\n            node = (<QualifiedName>contextToken.parent).left;\r\n            isRightOfDot = true;\r\n        }\r\n    }\r\n    else if (kind === SyntaxKind.LessThanToken && sourceFile.languageVariant === LanguageVariant.JSX) {\r\n        isRightOfOpenTag = true;\r\n        location = contextToken\r\n    }\r\n}\r\n```","created_at":"2015-06-22T20:03:16Z","updated_at":"2015-06-22T20:03:16Z","html_url":"https://github.com/Microsoft/TypeScript/pull/3564#discussion_r32976764","pull_request_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564","_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments/32976764"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/3564#discussion_r32976764"},"pull_request":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564"}}},"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564","id":38053138,"html_url":"https://github.com/Microsoft/TypeScript/pull/3564","diff_url":"https://github.com/Microsoft/TypeScript/pull/3564.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/3564.patch","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3564","number":3564,"state":"open","locked":false,"title":"JSX and `as` operator","user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"body":"This implements JSX parsing, typechecking, JSX emit, and React emit as specified in #3203, as well as the `as` operator suggested in #296.\r\n\r\nEach commit between 556cb70 and a5c44a3 contains a disjoint set of files for easier browsing. Commits after the `Baseline-accept` commit will be touching arbitrary files.","created_at":"2015-06-18T21:07:07Z","updated_at":"2015-06-22T20:03:16Z","closed_at":null,"merged_at":null,"merge_commit_sha":"446017b51e077e32f36045491fd3059c90253ff2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564/commits","review_comments_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564/comments","review_comment_url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3564/comments","statuses_url":"https://api.github.com/repos/Microsoft/TypeScript/statuses/c9a925eb758ab023197c9e269e3d60fa1f808753","head":{"label":"RyanCavanaugh:jsxAndAs","ref":"jsxAndAs","sha":"c9a925eb758ab023197c9e269e3d60fa1f808753","user":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"repo":{"id":34357954,"name":"TypeScript","full_name":"RyanCavanaugh/TypeScript","owner":{"login":"RyanCavanaugh","id":6685088,"avatar_url":"https://avatars.githubusercontent.com/u/6685088?v=3","gravatar_id":"","url":"https://api.github.com/users/RyanCavanaugh","html_url":"https://github.com/RyanCavanaugh","followers_url":"https://api.github.com/users/RyanCavanaugh/followers","following_url":"https://api.github.com/users/RyanCavanaugh/following{/other_user}","gists_url":"https://api.github.com/users/RyanCavanaugh/gists{/gist_id}","starred_url":"https://api.github.com/users/RyanCavanaugh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/RyanCavanaugh/subscriptions","organizations_url":"https://api.github.com/users/RyanCavanaugh/orgs","repos_url":"https://api.github.com/users/RyanCavanaugh/repos","events_url":"https://api.github.com/users/RyanCavanaugh/events{/privacy}","received_events_url":"https://api.github.com/users/RyanCavanaugh/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/RyanCavanaugh/TypeScript","description":"TypeScript is a superset of JavaScript that compiles to clean JavaScript output.","fork":true,"url":"https://api.github.com/repos/RyanCavanaugh/TypeScript","forks_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/forks","keys_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/keys{/key_id}","collaborators_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/teams","hooks_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/hooks","issue_events_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/issues/events{/number}","events_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/events","assignees_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/assignees{/user}","branches_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/branches{/branch}","tags_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/tags","blobs_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/git/refs{/sha}","trees_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/git/trees{/sha}","statuses_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/statuses/{sha}","languages_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/languages","stargazers_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/stargazers","contributors_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/contributors","subscribers_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/subscribers","subscription_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/subscription","commits_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/commits{/sha}","git_commits_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/git/commits{/sha}","comments_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/comments{/number}","issue_comment_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/issues/comments{/number}","contents_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/contents/{+path}","compare_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/compare/{base}...{head}","merges_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/merges","archive_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/downloads","issues_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/issues{/number}","pulls_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/pulls{/number}","milestones_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/milestones{/number}","notifications_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/labels{/name}","releases_url":"https://api.github.com/repos/RyanCavanaugh/TypeScript/releases{/id}","created_at":"2015-04-21T23:41:09Z","updated_at":"2015-06-02T22:06:17Z","pushed_at":"2015-06-22T18:54:01Z","git_url":"git://github.com/RyanCavanaugh/TypeScript.git","ssh_url":"git@github.com:RyanCavanaugh/TypeScript.git","clone_url":"https://github.com/RyanCavanaugh/TypeScript.git","svn_url":"https://github.com/RyanCavanaugh/TypeScript","homepage":"http://www.typescriptlang.org","size":176670,"stargazers_count":0,"watchers_count":0,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"Microsoft:master","ref":"master","sha":"dd671ed431836f69a938e586442f387aa15a7a6a","user":{"login":"Microsoft","id":6154722,"avatar_url":"https://avatars.githubusercontent.com/u/6154722?v=3","gravatar_id":"","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=3","gravatar_id":"","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":"2015-06-22T19:40:55Z","pushed_at":"2015-06-22T19:06:10Z","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":880941,"stargazers_count":5648,"watchers_count":5648,"language":"TypeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":600,"mirror_url":null,"open_issues_count":665,"forks":600,"open_issues":665,"watchers":5648,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564"},"html":{"href":"https://github.com/Microsoft/TypeScript/pull/3564"},"issue":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/3564"},"comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/issues/3564/comments"},"review_comments":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564/comments"},"review_comment":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3564/commits"},"statuses":{"href":"https://api.github.com/repos/Microsoft/TypeScript/statuses/c9a925eb758ab023197c9e269e3d60fa1f808753"}}}}