{"action":"created","issue":{"url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/114","repository_url":"https://api.github.com/repos/ceylon/ceylon.ast","labels_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/114/labels{/name}","comments_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/114/comments","events_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/114/events","html_url":"https://github.com/ceylon/ceylon.ast/issues/114","id":146973785,"number":114,"title":"support typechecker desugaring in conversion from Redhat AST","user":{"login":"jvasileff","id":236050,"avatar_url":"https://avatars.githubusercontent.com/u/236050?v=3","gravatar_id":"","url":"https://api.github.com/users/jvasileff","html_url":"https://github.com/jvasileff","followers_url":"https://api.github.com/users/jvasileff/followers","following_url":"https://api.github.com/users/jvasileff/following{/other_user}","gists_url":"https://api.github.com/users/jvasileff/gists{/gist_id}","starred_url":"https://api.github.com/users/jvasileff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jvasileff/subscriptions","organizations_url":"https://api.github.com/users/jvasileff/orgs","repos_url":"https://api.github.com/users/jvasileff/repos","events_url":"https://api.github.com/users/jvasileff/events{/privacy}","received_events_url":"https://api.github.com/users/jvasileff/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ceylon/ceylon.ast/labels/API%20design","name":"API design","color":"207de5"},{"url":"https://api.github.com/repos/ceylon/ceylon.ast/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/ceylon/ceylon.ast/labels/discussion","name":"discussion","color":"0052cc"},{"url":"https://api.github.com/repos/ceylon/ceylon.ast/labels/typechecked%20RedHat%20AST","name":"typechecked RedHat AST","color":"eb6420"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-04-08T16:21:32Z","updated_at":"2016-04-08T23:06:09Z","closed_at":null,"body":"Desugaring performed by the typechecker results in AST that `ceylon.ast.redhat` can't handle (https://github.com/ceylon/ceylon/issues/4406#issuecomment-202126439):\r\n\r\n```ceylon\r\nException in thread \"main\" ceylon.language.AssertionError \"Assertion failed: Need CommonToken to get length of token (!= text’s length for \\iCONSTANT)\r\n    violated is CommonToken token = identifier.mainToken\"\r\n    at ceylon.ast.redhat.lIdentifierToCeylon_.lIdentifierToCeylon(Identifier.ceylon:51)\r\n    at ceylon.ast.redhat.parameterReferenceToCeylon_.parameterReferenceToCeylon(ParameterReference.ceylon:16)\r\n    at ceylon.ast.redhat.parameterToCeylon_.parameterToCeylon(Parameter.ceylon:52)\r\n    at ceylon.ast.redhat.parametersToCeylon_$2.$call$(Parameters.ceylon)\r\n    at ceylon.ast.redhat.parametersToCeylon_$2.$call$(Parameters.ceylon)\r\n    at ceylon.ast.redhat.propagateUpdate_$1.$call$(propagateUpdate.ceylon:16)\r\n    at ceylon.ast.redhat.propagateUpdate_$1.$call$(propagateUpdate.ceylon:16)\r\n```"},"comment":{"url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/comments/207642060","html_url":"https://github.com/ceylon/ceylon.ast/issues/114#issuecomment-207642060","issue_url":"https://api.github.com/repos/ceylon/ceylon.ast/issues/114","id":207642060,"user":{"login":"lucaswerkmeister","id":2346599,"avatar_url":"https://avatars.githubusercontent.com/u/2346599?v=3","gravatar_id":"","url":"https://api.github.com/users/lucaswerkmeister","html_url":"https://github.com/lucaswerkmeister","followers_url":"https://api.github.com/users/lucaswerkmeister/followers","following_url":"https://api.github.com/users/lucaswerkmeister/following{/other_user}","gists_url":"https://api.github.com/users/lucaswerkmeister/gists{/gist_id}","starred_url":"https://api.github.com/users/lucaswerkmeister/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lucaswerkmeister/subscriptions","organizations_url":"https://api.github.com/users/lucaswerkmeister/orgs","repos_url":"https://api.github.com/users/lucaswerkmeister/repos","events_url":"https://api.github.com/users/lucaswerkmeister/events{/privacy}","received_events_url":"https://api.github.com/users/lucaswerkmeister/received_events","type":"User","site_admin":false},"created_at":"2016-04-08T23:06:09Z","updated_at":"2016-04-08T23:06:09Z","body":"I think I’d prefer to resugar this as well. Or would the desugared version be significantly easier to implement for you?"}}