{"action":"created","issue":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4758","labels_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4758/labels{/name}","comments_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4758/comments","events_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4758/events","html_url":"https://github.com/HaxeFoundation/haxe/pull/4758","id":124542790,"number":4758,"title":"add a new display mode to get argument index and function signature","user":{"login":"pleclech","id":1296429,"avatar_url":"https://avatars.githubusercontent.com/u/1296429?v=3","gravatar_id":"","url":"https://api.github.com/users/pleclech","html_url":"https://github.com/pleclech","followers_url":"https://api.github.com/users/pleclech/followers","following_url":"https://api.github.com/users/pleclech/following{/other_user}","gists_url":"https://api.github.com/users/pleclech/gists{/gist_id}","starred_url":"https://api.github.com/users/pleclech/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pleclech/subscriptions","organizations_url":"https://api.github.com/users/pleclech/orgs","repos_url":"https://api.github.com/users/pleclech/repos","events_url":"https://api.github.com/users/pleclech/events{/privacy}","received_events_url":"https://api.github.com/users/pleclech/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-01-01T12:10:52Z","updated_at":"2016-01-01T12:34:21Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/pulls/4758","html_url":"https://github.com/HaxeFoundation/haxe/pull/4758","diff_url":"https://github.com/HaxeFoundation/haxe/pull/4758.diff","patch_url":"https://github.com/HaxeFoundation/haxe/pull/4758.patch"},"body":"Hello,\r\n\r\nCan we have in the compiler a new display mode (or enhanced an old one) that will get the argument index of a function along with it's signature so an IDE can use it.\r\n\r\nAs a result for example:\r\nhttps://twitter.com/pleclech/status/682300151738675200\r\nhttps://pbs.twimg.com/tweet_video/CXgECJ9WkAInx8p.mp4\r\n\r\nI don't know if it s the right way to do it, but there is an implementation with a new display mode...\r\n\r\n-----\r\n\r\n- add a new displaymode @funargs to get in return the index of the\r\nargument at ',' position along with the function signature.\r\n\r\nThe format returned is <type>int_index@function_signature</type>\r\n\r\nEx.:\r\nclass Main { static function main() { var a = \"\"; a.substr(0, 1); } }\r\n\r\ncalling with --display Main.hx@61@funargs will return 1@pos : Int ->\r\n?len : Null<Int> -> String"},"comment":{"url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/comments/168304277","html_url":"https://github.com/HaxeFoundation/haxe/pull/4758#issuecomment-168304277","issue_url":"https://api.github.com/repos/HaxeFoundation/haxe/issues/4758","id":168304277,"user":{"login":"Gama11","id":2620907,"avatar_url":"https://avatars.githubusercontent.com/u/2620907?v=3","gravatar_id":"","url":"https://api.github.com/users/Gama11","html_url":"https://github.com/Gama11","followers_url":"https://api.github.com/users/Gama11/followers","following_url":"https://api.github.com/users/Gama11/following{/other_user}","gists_url":"https://api.github.com/users/Gama11/gists{/gist_id}","starred_url":"https://api.github.com/users/Gama11/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Gama11/subscriptions","organizations_url":"https://api.github.com/users/Gama11/orgs","repos_url":"https://api.github.com/users/Gama11/repos","events_url":"https://api.github.com/users/Gama11/events{/privacy}","received_events_url":"https://api.github.com/users/Gama11/received_events","type":"User","site_admin":false},"created_at":"2016-01-01T12:34:21Z","updated_at":"2016-01-01T12:34:21Z","body":"Even FlashDevelop gets this wrong in some complex cases, for example it doesn't parse array comprehension as function arguments correctly (fdorg/flashdevelop#764)."}}