{"action":"created","issue":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4114","repository_url":"https://api.github.com/repos/jashkenas/coffeescript","labels_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4114/labels{/name}","comments_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4114/comments","events_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4114/events","html_url":"https://github.com/jashkenas/coffeescript/issues/4114","id":108890547,"number":4114,"title":"Location data for `while` comprehension incorrect","user":{"login":"eventualbuddha","id":1938,"avatar_url":"https://avatars0.githubusercontent.com/u/1938?v=3","gravatar_id":"","url":"https://api.github.com/users/eventualbuddha","html_url":"https://github.com/eventualbuddha","followers_url":"https://api.github.com/users/eventualbuddha/followers","following_url":"https://api.github.com/users/eventualbuddha/following{/other_user}","gists_url":"https://api.github.com/users/eventualbuddha/gists{/gist_id}","starred_url":"https://api.github.com/users/eventualbuddha/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eventualbuddha/subscriptions","organizations_url":"https://api.github.com/users/eventualbuddha/orgs","repos_url":"https://api.github.com/users/eventualbuddha/repos","events_url":"https://api.github.com/users/eventualbuddha/events{/privacy}","received_events_url":"https://api.github.com/users/eventualbuddha/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-09-29T15:08:41Z","updated_at":"2017-04-23T22:44:53Z","closed_at":null,"body":"```\n> require('coffee-script').nodes('a while a').expressions[0]\nWhile {\n  condition: \n   Value {\n     base: Literal { value: 'a', locationData: [Object] },\n     properties: [],\n     locationData: { first_line: 0, first_column: 8, last_line: 0, last_column: 8 } },\n  guard: undefined,\n  locationData: { first_line: 0, first_column: 2, last_line: 0, last_column: 8 },\n  body: \n   Block {\n     expressions: [ [Object] ],\n     locationData: { first_line: 0, last_line: 0, first_column: 0, last_column: 0 } } }\n```\n\nIn the above example, the `locationData` property of the `While` node has `first_column: 2`, but the first column of the `body` child is `0`. I'm assuming that the location for any node should enclose all of the locations of its children, but this doesn't seem to happen here (and in a few other places).\n"},"comment":{"url":"https://api.github.com/repos/jashkenas/coffeescript/issues/comments/296494440","html_url":"https://github.com/jashkenas/coffeescript/issues/4114#issuecomment-296494440","issue_url":"https://api.github.com/repos/jashkenas/coffeescript/issues/4114","id":296494440,"user":{"login":"GeoffreyBooth","id":456802,"avatar_url":"https://avatars1.githubusercontent.com/u/456802?v=3","gravatar_id":"","url":"https://api.github.com/users/GeoffreyBooth","html_url":"https://github.com/GeoffreyBooth","followers_url":"https://api.github.com/users/GeoffreyBooth/followers","following_url":"https://api.github.com/users/GeoffreyBooth/following{/other_user}","gists_url":"https://api.github.com/users/GeoffreyBooth/gists{/gist_id}","starred_url":"https://api.github.com/users/GeoffreyBooth/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/GeoffreyBooth/subscriptions","organizations_url":"https://api.github.com/users/GeoffreyBooth/orgs","repos_url":"https://api.github.com/users/GeoffreyBooth/repos","events_url":"https://api.github.com/users/GeoffreyBooth/events{/privacy}","received_events_url":"https://api.github.com/users/GeoffreyBooth/received_events","type":"User","site_admin":false},"created_at":"2017-04-23T22:44:53Z","updated_at":"2017-04-23T22:44:53Z","body":"@eventualbuddha Do you want to submit this fix upstream?"}}
{"actor":{"display_login":"GeoffreyBooth"}}