{"action":"created","comment":{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/comments/54321421","id":54321421,"diff_hunk":"@@ -1,14 +1,88 @@\n package org.rust.lang.core.psi\n \n+import com.intellij.openapi.util.TextRange\n+import com.intellij.psi.PsiElementVisitor\n import com.intellij.psi.impl.source.tree.LeafPsiElement\n import com.intellij.psi.tree.IElementType\n+import org.rust.lang.core.psi.visitors.RustVisitorEx\n \n sealed class RustLiteral(type: IElementType, text: CharSequence) : LeafPsiElement(type, text) {\n-    abstract class Number(type: IElementType, text: CharSequence) : RustLiteral(type, text)\n-    abstract class Text(type: IElementType, text: CharSequence) : RustLiteral(type, text)\n+    /**\n+     * Get literal value as a Java object.\n+     */\n+    abstract val value: Any?","path":"src/main/kotlin/org/rust/lang/core/psi/RustLiteral.kt","position":15,"original_position":15,"commit_id":"885242e7c97dad27ed684761bb582838f61760a0","original_commit_id":"885242e7c97dad27ed684761bb582838f61760a0","user":{"login":"matklad","id":1711539,"avatar_url":"https://avatars.githubusercontent.com/u/1711539?v=3","gravatar_id":"","url":"https://api.github.com/users/matklad","html_url":"https://github.com/matklad","followers_url":"https://api.github.com/users/matklad/followers","following_url":"https://api.github.com/users/matklad/following{/other_user}","gists_url":"https://api.github.com/users/matklad/gists{/gist_id}","starred_url":"https://api.github.com/users/matklad/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/matklad/subscriptions","organizations_url":"https://api.github.com/users/matklad/orgs","repos_url":"https://api.github.com/users/matklad/repos","events_url":"https://api.github.com/users/matklad/events{/privacy}","received_events_url":"https://api.github.com/users/matklad/received_events","type":"User","site_admin":false},"body":"can we make this generic instead of `Any?`","created_at":"2016-02-27T00:31:42Z","updated_at":"2016-02-27T00:31:42Z","html_url":"https://github.com/intellij-rust/intellij-rust/pull/263#discussion_r54321421","pull_request_url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263","_links":{"self":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/comments/54321421"},"html":{"href":"https://github.com/intellij-rust/intellij-rust/pull/263#discussion_r54321421"},"pull_request":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263"}}},"pull_request":{"url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263","id":60899042,"html_url":"https://github.com/intellij-rust/intellij-rust/pull/263","diff_url":"https://github.com/intellij-rust/intellij-rust/pull/263.diff","patch_url":"https://github.com/intellij-rust/intellij-rust/pull/263.patch","issue_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/263","number":263,"state":"open","locked":false,"title":"Literal annotator","user":{"login":"jajakobyly","id":3450050,"avatar_url":"https://avatars.githubusercontent.com/u/3450050?v=3","gravatar_id":"","url":"https://api.github.com/users/jajakobyly","html_url":"https://github.com/jajakobyly","followers_url":"https://api.github.com/users/jajakobyly/followers","following_url":"https://api.github.com/users/jajakobyly/following{/other_user}","gists_url":"https://api.github.com/users/jajakobyly/gists{/gist_id}","starred_url":"https://api.github.com/users/jajakobyly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jajakobyly/subscriptions","organizations_url":"https://api.github.com/users/jajakobyly/orgs","repos_url":"https://api.github.com/users/jajakobyly/repos","events_url":"https://api.github.com/users/jajakobyly/events{/privacy}","received_events_url":"https://api.github.com/users/jajakobyly/received_events","type":"User","site_admin":false},"body":"This PR implements some literal-related annotations. It finally catches up with #244 :smile: ","created_at":"2016-02-26T20:27:38Z","updated_at":"2016-02-27T00:31:42Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e7aa5c6c03377cf908c94adb775e6b266f68a52","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263/commits","review_comments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263/comments","review_comment_url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/comments{/number}","comments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/263/comments","statuses_url":"https://api.github.com/repos/intellij-rust/intellij-rust/statuses/885242e7c97dad27ed684761bb582838f61760a0","head":{"label":"jajakobyly:lit-annotator","ref":"lit-annotator","sha":"885242e7c97dad27ed684761bb582838f61760a0","user":{"login":"jajakobyly","id":3450050,"avatar_url":"https://avatars.githubusercontent.com/u/3450050?v=3","gravatar_id":"","url":"https://api.github.com/users/jajakobyly","html_url":"https://github.com/jajakobyly","followers_url":"https://api.github.com/users/jajakobyly/followers","following_url":"https://api.github.com/users/jajakobyly/following{/other_user}","gists_url":"https://api.github.com/users/jajakobyly/gists{/gist_id}","starred_url":"https://api.github.com/users/jajakobyly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jajakobyly/subscriptions","organizations_url":"https://api.github.com/users/jajakobyly/orgs","repos_url":"https://api.github.com/users/jajakobyly/repos","events_url":"https://api.github.com/users/jajakobyly/events{/privacy}","received_events_url":"https://api.github.com/users/jajakobyly/received_events","type":"User","site_admin":false},"repo":{"id":51250377,"name":"intellij-rust","full_name":"jajakobyly/intellij-rust","owner":{"login":"jajakobyly","id":3450050,"avatar_url":"https://avatars.githubusercontent.com/u/3450050?v=3","gravatar_id":"","url":"https://api.github.com/users/jajakobyly","html_url":"https://github.com/jajakobyly","followers_url":"https://api.github.com/users/jajakobyly/followers","following_url":"https://api.github.com/users/jajakobyly/following{/other_user}","gists_url":"https://api.github.com/users/jajakobyly/gists{/gist_id}","starred_url":"https://api.github.com/users/jajakobyly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jajakobyly/subscriptions","organizations_url":"https://api.github.com/users/jajakobyly/orgs","repos_url":"https://api.github.com/users/jajakobyly/repos","events_url":"https://api.github.com/users/jajakobyly/events{/privacy}","received_events_url":"https://api.github.com/users/jajakobyly/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jajakobyly/intellij-rust","description":"Rust IDE built using the IntelliJ Platform","fork":true,"url":"https://api.github.com/repos/jajakobyly/intellij-rust","forks_url":"https://api.github.com/repos/jajakobyly/intellij-rust/forks","keys_url":"https://api.github.com/repos/jajakobyly/intellij-rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jajakobyly/intellij-rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jajakobyly/intellij-rust/teams","hooks_url":"https://api.github.com/repos/jajakobyly/intellij-rust/hooks","issue_events_url":"https://api.github.com/repos/jajakobyly/intellij-rust/issues/events{/number}","events_url":"https://api.github.com/repos/jajakobyly/intellij-rust/events","assignees_url":"https://api.github.com/repos/jajakobyly/intellij-rust/assignees{/user}","branches_url":"https://api.github.com/repos/jajakobyly/intellij-rust/branches{/branch}","tags_url":"https://api.github.com/repos/jajakobyly/intellij-rust/tags","blobs_url":"https://api.github.com/repos/jajakobyly/intellij-rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jajakobyly/intellij-rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jajakobyly/intellij-rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/jajakobyly/intellij-rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jajakobyly/intellij-rust/statuses/{sha}","languages_url":"https://api.github.com/repos/jajakobyly/intellij-rust/languages","stargazers_url":"https://api.github.com/repos/jajakobyly/intellij-rust/stargazers","contributors_url":"https://api.github.com/repos/jajakobyly/intellij-rust/contributors","subscribers_url":"https://api.github.com/repos/jajakobyly/intellij-rust/subscribers","subscription_url":"https://api.github.com/repos/jajakobyly/intellij-rust/subscription","commits_url":"https://api.github.com/repos/jajakobyly/intellij-rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/jajakobyly/intellij-rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/jajakobyly/intellij-rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/jajakobyly/intellij-rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/jajakobyly/intellij-rust/contents/{+path}","compare_url":"https://api.github.com/repos/jajakobyly/intellij-rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jajakobyly/intellij-rust/merges","archive_url":"https://api.github.com/repos/jajakobyly/intellij-rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jajakobyly/intellij-rust/downloads","issues_url":"https://api.github.com/repos/jajakobyly/intellij-rust/issues{/number}","pulls_url":"https://api.github.com/repos/jajakobyly/intellij-rust/pulls{/number}","milestones_url":"https://api.github.com/repos/jajakobyly/intellij-rust/milestones{/number}","notifications_url":"https://api.github.com/repos/jajakobyly/intellij-rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jajakobyly/intellij-rust/labels{/name}","releases_url":"https://api.github.com/repos/jajakobyly/intellij-rust/releases{/id}","deployments_url":"https://api.github.com/repos/jajakobyly/intellij-rust/deployments","created_at":"2016-02-07T14:28:01Z","updated_at":"2016-02-07T14:28:02Z","pushed_at":"2016-02-26T20:14:56Z","git_url":"git://github.com/jajakobyly/intellij-rust.git","ssh_url":"git@github.com:jajakobyly/intellij-rust.git","clone_url":"https://github.com/jajakobyly/intellij-rust.git","svn_url":"https://github.com/jajakobyly/intellij-rust","homepage":null,"size":5792,"stargazers_count":0,"watchers_count":0,"language":"Kotlin","has_issues":false,"has_downloads":true,"has_wiki":false,"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":"intellij-rust:master","ref":"master","sha":"e85a84073bd25ed8700c7fbcb685d025d934cf5a","user":{"login":"intellij-rust","id":16057867,"avatar_url":"https://avatars.githubusercontent.com/u/16057867?v=3","gravatar_id":"","url":"https://api.github.com/users/intellij-rust","html_url":"https://github.com/intellij-rust","followers_url":"https://api.github.com/users/intellij-rust/followers","following_url":"https://api.github.com/users/intellij-rust/following{/other_user}","gists_url":"https://api.github.com/users/intellij-rust/gists{/gist_id}","starred_url":"https://api.github.com/users/intellij-rust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellij-rust/subscriptions","organizations_url":"https://api.github.com/users/intellij-rust/orgs","repos_url":"https://api.github.com/users/intellij-rust/repos","events_url":"https://api.github.com/users/intellij-rust/events{/privacy}","received_events_url":"https://api.github.com/users/intellij-rust/received_events","type":"Organization","site_admin":false},"repo":{"id":42619487,"name":"intellij-rust","full_name":"intellij-rust/intellij-rust","owner":{"login":"intellij-rust","id":16057867,"avatar_url":"https://avatars.githubusercontent.com/u/16057867?v=3","gravatar_id":"","url":"https://api.github.com/users/intellij-rust","html_url":"https://github.com/intellij-rust","followers_url":"https://api.github.com/users/intellij-rust/followers","following_url":"https://api.github.com/users/intellij-rust/following{/other_user}","gists_url":"https://api.github.com/users/intellij-rust/gists{/gist_id}","starred_url":"https://api.github.com/users/intellij-rust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/intellij-rust/subscriptions","organizations_url":"https://api.github.com/users/intellij-rust/orgs","repos_url":"https://api.github.com/users/intellij-rust/repos","events_url":"https://api.github.com/users/intellij-rust/events{/privacy}","received_events_url":"https://api.github.com/users/intellij-rust/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/intellij-rust/intellij-rust","description":"Rust IDE built using the IntelliJ Platform","fork":false,"url":"https://api.github.com/repos/intellij-rust/intellij-rust","forks_url":"https://api.github.com/repos/intellij-rust/intellij-rust/forks","keys_url":"https://api.github.com/repos/intellij-rust/intellij-rust/keys{/key_id}","collaborators_url":"https://api.github.com/repos/intellij-rust/intellij-rust/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/intellij-rust/intellij-rust/teams","hooks_url":"https://api.github.com/repos/intellij-rust/intellij-rust/hooks","issue_events_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/events{/number}","events_url":"https://api.github.com/repos/intellij-rust/intellij-rust/events","assignees_url":"https://api.github.com/repos/intellij-rust/intellij-rust/assignees{/user}","branches_url":"https://api.github.com/repos/intellij-rust/intellij-rust/branches{/branch}","tags_url":"https://api.github.com/repos/intellij-rust/intellij-rust/tags","blobs_url":"https://api.github.com/repos/intellij-rust/intellij-rust/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/intellij-rust/intellij-rust/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/intellij-rust/intellij-rust/git/refs{/sha}","trees_url":"https://api.github.com/repos/intellij-rust/intellij-rust/git/trees{/sha}","statuses_url":"https://api.github.com/repos/intellij-rust/intellij-rust/statuses/{sha}","languages_url":"https://api.github.com/repos/intellij-rust/intellij-rust/languages","stargazers_url":"https://api.github.com/repos/intellij-rust/intellij-rust/stargazers","contributors_url":"https://api.github.com/repos/intellij-rust/intellij-rust/contributors","subscribers_url":"https://api.github.com/repos/intellij-rust/intellij-rust/subscribers","subscription_url":"https://api.github.com/repos/intellij-rust/intellij-rust/subscription","commits_url":"https://api.github.com/repos/intellij-rust/intellij-rust/commits{/sha}","git_commits_url":"https://api.github.com/repos/intellij-rust/intellij-rust/git/commits{/sha}","comments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/comments{/number}","issue_comment_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/comments{/number}","contents_url":"https://api.github.com/repos/intellij-rust/intellij-rust/contents/{+path}","compare_url":"https://api.github.com/repos/intellij-rust/intellij-rust/compare/{base}...{head}","merges_url":"https://api.github.com/repos/intellij-rust/intellij-rust/merges","archive_url":"https://api.github.com/repos/intellij-rust/intellij-rust/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/intellij-rust/intellij-rust/downloads","issues_url":"https://api.github.com/repos/intellij-rust/intellij-rust/issues{/number}","pulls_url":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls{/number}","milestones_url":"https://api.github.com/repos/intellij-rust/intellij-rust/milestones{/number}","notifications_url":"https://api.github.com/repos/intellij-rust/intellij-rust/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/intellij-rust/intellij-rust/labels{/name}","releases_url":"https://api.github.com/repos/intellij-rust/intellij-rust/releases{/id}","deployments_url":"https://api.github.com/repos/intellij-rust/intellij-rust/deployments","created_at":"2015-09-16T23:44:57Z","updated_at":"2016-02-26T20:14:19Z","pushed_at":"2016-02-26T20:27:38Z","git_url":"git://github.com/intellij-rust/intellij-rust.git","ssh_url":"git@github.com:intellij-rust/intellij-rust.git","clone_url":"https://github.com/intellij-rust/intellij-rust.git","svn_url":"https://github.com/intellij-rust/intellij-rust","homepage":null,"size":6016,"stargazers_count":400,"watchers_count":400,"language":"Kotlin","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":27,"forks":26,"open_issues":27,"watchers":400,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263"},"html":{"href":"https://github.com/intellij-rust/intellij-rust/pull/263"},"issue":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/263"},"comments":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/issues/263/comments"},"review_comments":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263/comments"},"review_comment":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/pulls/263/commits"},"statuses":{"href":"https://api.github.com/repos/intellij-rust/intellij-rust/statuses/885242e7c97dad27ed684761bb582838f61760a0"}}}}