Title: this-function parameter can be renamed · Issue #9037 · microsoft/TypeScript · GitHub
Open Graph Title: this-function parameter can be renamed · Issue #9037 · microsoft/TypeScript
X Title: this-function parameter can be renamed · Issue #9037 · microsoft/TypeScript
Description: function(this/**/: string, x: number) { return this.length; } Now try to rename or find all references at /**/. Expected: Message "You cannot rename this element". Actual: Rename just the parameter, nothing in the body. Find all referenc...
Open Graph Description: function(this/**/: string, x: number) { return this.length; } Now try to rename or find all references at /**/. Expected: Message "You cannot rename this element". Actual: Rename just the parameter...
X Description: function(this/**/: string, x: number) { return this.length; } Now try to rename or find all references at /**/. Expected: Message "You cannot rename this element". Actual: Rename just the...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/9037
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"this-function parameter can be renamed","articleBody":"``` ts\nfunction(this/**/: string, x: number) {\n return this.length;\n}\n```\n\nNow try to rename or find all references at `/**/`.\n\nExpected: Message \"You cannot rename this element\".\n\nActual: Rename _just_ the parameter, nothing in the body. Find all references just finds one reference, the definition.\n\nProbably `this` needs to be classified as ThisKeyword by the parser as long as that doesn't break anything else.\n","author":{"url":"https://github.com/sandersn","@type":"Person","name":"sandersn"},"datePublished":"2016-06-08T23:24:04Z","url":"https://github.com/microsoft/TypeScript/issues/9037"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react-reconciler,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@d5750093facf |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:3f092c91-4c06-1773-8dfe-7252a3c2884d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B2B0:3C9BC9:42501F6:56F0EB0:6AFA4097 |
| html-safe-nonce | 9387dcd3b2373ca80b38581f539d39d84b34e163604be9ee0a6871913110b882 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCMkIwOjNDOUJDOTo0MjUwMUY2OjU2RjBFQjA6NkFGQTQwOTciLCJ2aXNpdG9yX2lkIjoiOTA0NTEzNzc5Nzg3ODAwNTkxMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e98257fab92142b9f046a664a3a5bf1b5d86b2d42a2c8cb96d04ce6b6cce799c |
| hovercard-subject-tag | issue:159298683 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/9037/issue_layout |
| twitter:image | https://opengraph.githubassets.com/08aae64fb8d006879cd5fe542c8db1b0a13898492b3d0e9f72728f56da4546f1/microsoft/TypeScript/issues/9037 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/08aae64fb8d006879cd5fe542c8db1b0a13898492b3d0e9f72728f56da4546f1/microsoft/TypeScript/issues/9037 |
| og:image:alt | function(this/**/: string, x: number) { return this.length; } Now try to rename or find all references at /**/. Expected: Message "You cannot rename this element". Actual: Rename just the parameter... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | sandersn |
| hostname | github.com |
| expected-hostname | github.com |
| None | 612d3e6ffd693e7ea8d9fcf452370995872baef31d825b1fedef704cd3d24ac7 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 072e34035c13c31543fba9f025cbbbda4210dae4 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width