{"action":"created","issue":{"url":"https://api.github.com/repos/scalameta/scalameta/issues/1384","repository_url":"https://api.github.com/repos/scalameta/scalameta","labels_url":"https://api.github.com/repos/scalameta/scalameta/issues/1384/labels{/name}","comments_url":"https://api.github.com/repos/scalameta/scalameta/issues/1384/comments","events_url":"https://api.github.com/repos/scalameta/scalameta/issues/1384/events","html_url":"https://github.com/scalameta/scalameta/issues/1384","id":301412068,"number":1384,"title":"Lit.String and Lit.Char format is not preserved","user":{"login":"MasseGuillaume","id":921490,"avatar_url":"https://avatars2.githubusercontent.com/u/921490?v=4","gravatar_id":"","url":"https://api.github.com/users/MasseGuillaume","html_url":"https://github.com/MasseGuillaume","followers_url":"https://api.github.com/users/MasseGuillaume/followers","following_url":"https://api.github.com/users/MasseGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/MasseGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/MasseGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasseGuillaume/subscriptions","organizations_url":"https://api.github.com/users/MasseGuillaume/orgs","repos_url":"https://api.github.com/users/MasseGuillaume/repos","events_url":"https://api.github.com/users/MasseGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/MasseGuillaume/received_events","type":"User","site_admin":false},"labels":[{"id":832644744,"url":"https://api.github.com/repos/scalameta/scalameta/labels/Spec","name":"Spec","color":"def418","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-01T13:53:49Z","updated_at":"2018-03-06T16:43:23Z","closed_at":null,"author_association":"COLLABORATOR","body":"Obtained:\r\n\r\n```scala\r\nimport scala.meta._\r\n\"\\\"\\\\n\\\"\".parse[Term].get.asInstanceOf[Lit.String].value\r\nres31: String =\r\n\"\r\n\"\r\n\"\\'\\\\n\\'\".parse[Term].get.asInstanceOf[Lit.Char].value\r\nres33: Char =\r\n\r\n\r\n```\r\n\r\nExpected:\r\n\r\n```scala\r\nimport scala.meta._\r\n\"\\\"\\\\n\\\"\".parse[Term].get.asInstanceOf[Lit.String].value == \"\\\\n\"\r\n\"\\'\\\\n\\'\".parse[Term].get.asInstanceOf[Lit.Char].value == \"\\\\n\"\r\n```\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/scalameta/scalameta/issues/comments/370845670","html_url":"https://github.com/scalameta/scalameta/issues/1384#issuecomment-370845670","issue_url":"https://api.github.com/repos/scalameta/scalameta/issues/1384","id":370845670,"user":{"login":"MasseGuillaume","id":921490,"avatar_url":"https://avatars2.githubusercontent.com/u/921490?v=4","gravatar_id":"","url":"https://api.github.com/users/MasseGuillaume","html_url":"https://github.com/MasseGuillaume","followers_url":"https://api.github.com/users/MasseGuillaume/followers","following_url":"https://api.github.com/users/MasseGuillaume/following{/other_user}","gists_url":"https://api.github.com/users/MasseGuillaume/gists{/gist_id}","starred_url":"https://api.github.com/users/MasseGuillaume/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MasseGuillaume/subscriptions","organizations_url":"https://api.github.com/users/MasseGuillaume/orgs","repos_url":"https://api.github.com/users/MasseGuillaume/repos","events_url":"https://api.github.com/users/MasseGuillaume/events{/privacy}","received_events_url":"https://api.github.com/users/MasseGuillaume/received_events","type":"User","site_admin":false},"created_at":"2018-03-06T16:43:23Z","updated_at":"2018-03-06T16:43:23Z","author_association":"COLLABORATOR","body":"@olafurpg you are right the information when you create the input. I think to avoid this, we should provide smarter constructors for Input.\r\n\r\nFor example, Input.String and Input.VirtualFile can be a macro and extract the string literal."}}
{"actor":{"display_login":"MasseGuillaume"}}