{"action":"opened","issue":{"url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/9353","repository_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang","labels_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/9353/labels{/name}","comments_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/9353/comments","events_url":"https://api.github.com/repos/ballerina-platform/ballerina-lang/issues/9353/events","html_url":"https://github.com/ballerina-platform/ballerina-lang/issues/9353","id":337767556,"node_id":"MDU6SXNzdWUzMzc3Njc1NTY=","number":9353,"title":"[Lambda Function] Move code segment of identifying closure args to Desugar phase","user":{"login":"mohanvive","id":7523274,"node_id":"MDQ6VXNlcjc1MjMyNzQ=","avatar_url":"https://avatars0.githubusercontent.com/u/7523274?v=4","gravatar_id":"","url":"https://api.github.com/users/mohanvive","html_url":"https://github.com/mohanvive","followers_url":"https://api.github.com/users/mohanvive/followers","following_url":"https://api.github.com/users/mohanvive/following{/other_user}","gists_url":"https://api.github.com/users/mohanvive/gists{/gist_id}","starred_url":"https://api.github.com/users/mohanvive/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mohanvive/subscriptions","organizations_url":"https://api.github.com/users/mohanvive/orgs","repos_url":"https://api.github.com/users/mohanvive/repos","events_url":"https://api.github.com/users/mohanvive/events{/privacy}","received_events_url":"https://api.github.com/users/mohanvive/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-07-03T06:55:47Z","updated_at":"2018-07-03T06:55:47Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"**Description:**\r\nAt the moment, closure args that required for a lambda function is identified before the desugar phase. Then if we are creating a new lambda function at Desugar then we have to manually create the closure args by looking at the lambda function body. This is not the best way to achieve the requirement. If we could move the logic of identifying the closure args of a lambda function to Desugar phase then it will make the developer life easy and no need to rewrite the same code. This will also reduce the error-prone code.\r\n\r\n**Affected Versions:**\r\n0.975.0\r\n\r\n**Suggested Assignees (optional):**\r\n@Kishanthan \r\n"}}
{"actor":{"display_login":"mohanvive"}}