{"action":"created","issue":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/27747","repository_url":"https://api.github.com/repos/dart-lang/sdk","labels_url":"https://api.github.com/repos/dart-lang/sdk/issues/27747/labels{/name}","comments_url":"https://api.github.com/repos/dart-lang/sdk/issues/27747/comments","events_url":"https://api.github.com/repos/dart-lang/sdk/issues/27747/events","html_url":"https://github.com/dart-lang/sdk/issues/27747","id":187082527,"number":27747,"title":"Inconsistent presence of \"parameters\" property for SETTERs in analysis server completion results","user":{"login":"DanTup","id":1078012,"avatar_url":"https://avatars.githubusercontent.com/u/1078012?v=3","gravatar_id":"","url":"https://api.github.com/users/DanTup","html_url":"https://github.com/DanTup","followers_url":"https://api.github.com/users/DanTup/followers","following_url":"https://api.github.com/users/DanTup/following{/other_user}","gists_url":"https://api.github.com/users/DanTup/gists{/gist_id}","starred_url":"https://api.github.com/users/DanTup/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanTup/subscriptions","organizations_url":"https://api.github.com/users/DanTup/orgs","repos_url":"https://api.github.com/users/DanTup/repos","events_url":"https://api.github.com/users/DanTup/events{/privacy}","received_events_url":"https://api.github.com/users/DanTup/received_events","type":"User","site_admin":false},"labels":[{"id":219928274,"url":"https://api.github.com/repos/dart-lang/sdk/labels/analyzer-server","name":"analyzer-server","color":"d4c5f9","default":false},{"id":219928186,"url":"https://api.github.com/repos/dart-lang/sdk/labels/area-analyzer","name":"area-analyzer","color":"c7def8","default":false},{"id":334171875,"url":"https://api.github.com/repos/dart-lang/sdk/labels/P2%20medium","name":"P2 medium","color":"fbca04","default":false},{"id":334529063,"url":"https://api.github.com/repos/dart-lang/sdk/labels/Type:%20bug","name":"Type: bug","color":"ededed","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-11-03T14:54:15Z","updated_at":"2016-11-03T17:02:22Z","closed_at":null,"body":"I had [a bug raised](https://github.com/Dart-Code/Dart-Code/issues/202) with completion not working correctly in Dart Code. I tracked it back to an assumption that a `SETTER` in completion results would always contain a `parameters` property. While trying to trim down the repro, I pasted the offending function into a clean file and invoked completion and the `parameters` property was there, yet in the repro I was given, the property was not:\r\n\r\n![Diff](https://cloud.githubusercontent.com/assets/1078012/19970626/7bbc231e-a1d4-11e6-9c20-665e3aa2c542.png)\r\n\r\nI've attached two dart files, I'm invoking completion on the line `path.offset = path.length.toDouble();`. One includes parameters, one does not. Note: I edited the no-repro file to make it valid on its own, but it happened even with the original function (which had errors, since it access things I didn't bring with it).\r\n\r\nFor now, I'm going to tweak Dart Code not to assume parameters are always there, though I'm curious to know whether the assumption was valid and this is just a bug or whether it was invalid anyway (I never came across this in testing).\r\n\r\n[repro.dart.txt](https://github.com/dart-lang/sdk/files/569292/repro.dart.txt)\r\n[no_repro.dart.txt](https://github.com/dart-lang/sdk/files/569294/no_repro.dart.txt)"},"comment":{"url":"https://api.github.com/repos/dart-lang/sdk/issues/comments/258206302","html_url":"https://github.com/dart-lang/sdk/issues/27747#issuecomment-258206302","issue_url":"https://api.github.com/repos/dart-lang/sdk/issues/27747","id":258206302,"user":{"login":"bwilkerson","id":5840555,"avatar_url":"https://avatars.githubusercontent.com/u/5840555?v=3","gravatar_id":"","url":"https://api.github.com/users/bwilkerson","html_url":"https://github.com/bwilkerson","followers_url":"https://api.github.com/users/bwilkerson/followers","following_url":"https://api.github.com/users/bwilkerson/following{/other_user}","gists_url":"https://api.github.com/users/bwilkerson/gists{/gist_id}","starred_url":"https://api.github.com/users/bwilkerson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bwilkerson/subscriptions","organizations_url":"https://api.github.com/users/bwilkerson/orgs","repos_url":"https://api.github.com/users/bwilkerson/repos","events_url":"https://api.github.com/users/bwilkerson/events{/privacy}","received_events_url":"https://api.github.com/users/bwilkerson/received_events","type":"User","site_admin":false},"created_at":"2016-11-03T17:02:22Z","updated_at":"2016-11-03T17:02:22Z","body":"That sounds like a bug to me."}}
{"actor":{"display_login":"bwilkerson"}}