{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3367","labels_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3367/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3367/comments","events_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3367/events","html_url":"https://github.com/Microsoft/TypeScript/pull/3367","id":84744896,"number":3367,"title":"Fix findAllRefs, getHighlightSpans, renameLocs, renameInfo for default exports and functions expressions","user":{"login":"DanielRosenwasser","id":972891,"avatar_url":"https://avatars.githubusercontent.com/u/972891?v=3","gravatar_id":"","url":"https://api.github.com/users/DanielRosenwasser","html_url":"https://github.com/DanielRosenwasser","followers_url":"https://api.github.com/users/DanielRosenwasser/followers","following_url":"https://api.github.com/users/DanielRosenwasser/following{/other_user}","gists_url":"https://api.github.com/users/DanielRosenwasser/gists{/gist_id}","starred_url":"https://api.github.com/users/DanielRosenwasser/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DanielRosenwasser/subscriptions","organizations_url":"https://api.github.com/users/DanielRosenwasser/orgs","repos_url":"https://api.github.com/users/DanielRosenwasser/repos","events_url":"https://api.github.com/users/DanielRosenwasser/events{/privacy}","received_events_url":"https://api.github.com/users/DanielRosenwasser/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/TypeScript/labels/cla-not-required","name":"cla-not-required","color":"009800"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-06-03T19:55:15Z","updated_at":"2015-06-26T23:19:17Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/Microsoft/TypeScript/pulls/3367","html_url":"https://github.com/Microsoft/TypeScript/pull/3367","diff_url":"https://github.com/Microsoft/TypeScript/pull/3367.diff","patch_url":"https://github.com/Microsoft/TypeScript/pull/3367.patch"},"body":"A follow up from #3247, but merges into the `master` branch.\r\n\r\n* Fixes #3065\r\n* Fixes #3230"},"comment":{"url":"https://api.github.com/repos/Microsoft/TypeScript/issues/comments/115915516","html_url":"https://github.com/Microsoft/TypeScript/pull/3367#issuecomment-115915516","issue_url":"https://api.github.com/repos/Microsoft/TypeScript/issues/3367","id":115915516,"user":{"login":"yuit","id":489742,"avatar_url":"https://avatars.githubusercontent.com/u/489742?v=3","gravatar_id":"","url":"https://api.github.com/users/yuit","html_url":"https://github.com/yuit","followers_url":"https://api.github.com/users/yuit/followers","following_url":"https://api.github.com/users/yuit/following{/other_user}","gists_url":"https://api.github.com/users/yuit/gists{/gist_id}","starred_url":"https://api.github.com/users/yuit/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yuit/subscriptions","organizations_url":"https://api.github.com/users/yuit/orgs","repos_url":"https://api.github.com/users/yuit/repos","events_url":"https://api.github.com/users/yuit/events{/privacy}","received_events_url":"https://api.github.com/users/yuit/received_events","type":"User","site_admin":false},"created_at":"2015-06-26T23:19:17Z","updated_at":"2015-06-26T23:19:17Z","body":"Can you added rename cases for function expression and class expression?\r\n```typescript\r\n// [|foo|] -> this should not get updated\r\nfunction foo () {}\r\n\r\n// [|foo|]  -> this should get updated.  this is a kind of a grey area of what we should do\r\nvar x = function [|foo|] () {}  // rename foo here should not affect foo outside\r\n\r\nvar y = function () {\r\n   [|foo|](); // Rename foo here \r\n}\r\n```\r\n\r\n```typescript\r\n// [|foo|] -> this should not get updated\r\nclass Foo () {}\r\n\r\n// [|foo|]  -> this should get updated.  this is a kind of a grey area of what we should do\r\nvar x = class [|Foo|] () { \\\\ Rename Foo here\r\n    getClassName() {\r\n        [|Foo|] -> rename Foo here\r\n    }\r\n} \r\n\r\nvar y = class {\r\n   getSomeName() {\r\n      [|Foo|].  -> rename Foo here\r\n   }\r\n}\r\n```\r\nSimilar for findAllRefs "}}