Title: If the expression after the return statement is on a new line, the generated code is incorrect · Issue #2704 · microsoft/TypeScript · GitHub
Open Graph Title: If the expression after the return statement is on a new line, the generated code is incorrect · Issue #2704 · microsoft/TypeScript
X Title: If the expression after the return statement is on a new line, the generated code is incorrect · Issue #2704 · microsoft/TypeScript
Description: Typescript: private isIdentifierCharacter(char: string): boolean { var charCode = char.charCodeAt(0); return ((charCode >= 'a'.charCodeAt(0) && charCode <= 'z'.charCodeAt(0)) || charCode == '_'.charCodeAt(0)); } Generated js: FormulaScan...
Open Graph Description: Typescript: private isIdentifierCharacter(char: string): boolean { var charCode = char.charCodeAt(0); return ((charCode >= 'a'.charCodeAt(0) && charCode <= 'z'.charCodeAt(0)) || charCode == '_'.cha...
X Description: Typescript: private isIdentifierCharacter(char: string): boolean { var charCode = char.charCodeAt(0); return ((charCode >= 'a'.charCodeAt(0) && charCode <= 'z'.charCod...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2704
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"If the expression after the return statement is on a new line, the generated code is incorrect","articleBody":"Typescript:\n\n```\n private isIdentifierCharacter(char: string): boolean {\n var charCode = char.charCodeAt(0);\n return\n ((charCode >= 'a'.charCodeAt(0) && charCode \u003c= 'z'.charCodeAt(0)) ||\n charCode == '_'.charCodeAt(0));\n }\n```\n\nGenerated js:\n\n```\n FormulaScanner.prototype.isIdentifierCharacter = function (char) {\n var charCode = char.charCodeAt(0);\n return;\n ((charCode >= 'a'.charCodeAt(0) && charCode \u003c= 'z'.charCodeAt(0)) || charCode == '_'.charCodeAt(0));\n };\n```\n\nNotice the `;` after `return` in the generated code.\n","author":{"url":"https://github.com/victorhurdugaci","@type":"Person","name":"victorhurdugaci"},"datePublished":"2015-04-10T03:49:46Z","url":"https://github.com/microsoft/TypeScript/issues/2704"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| 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:9cd3ab85-e1ca-c619-be8c-d7c3b371a32c |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C90A:108997:471707:614E92:6B00708B |
| html-safe-nonce | d437170a3922823679f5e2fafbb51e36acb7301c94b847ab44c9cf015abc7409 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDOTBBOjEwODk5Nzo0NzE3MDc6NjE0RTkyOjZCMDA3MDhCIiwidmlzaXRvcl9pZCI6Ijc0MjEwMDI3MjgzNDQzODUxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 59dc0f232372e7c6a1dfeb97d0807db937ceca1291aa3a379df807d8d6591492 |
| hovercard-subject-tag | issue:67502324 |
| 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/2704/issue_layout |
| twitter:image | https://opengraph.githubassets.com/8293f20824ab4dc0fec0f45178e47deaa584c3cd8715ec5c00ac0d4dd7e996ae/microsoft/TypeScript/issues/2704 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/8293f20824ab4dc0fec0f45178e47deaa584c3cd8715ec5c00ac0d4dd7e996ae/microsoft/TypeScript/issues/2704 |
| og:image:alt | Typescript: private isIdentifierCharacter(char: string): boolean { var charCode = char.charCodeAt(0); return ((charCode >= 'a'.charCodeAt(0) && charCode <= 'z'.charCodeAt(0)) || charCode == '_'.cha... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | victorhurdugaci |
| hostname | github.com |
| expected-hostname | github.com |
| None | 6527e91c60c0b29d16606ff32ac5df8ecdc37a2a62205ea057a14d7762c870fa |
| 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 | 46f1cd2ae3cd8ae1a81019b5d619742e76f13bbd |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width