Title: Are all TokenKind.Generic tokens actually StringToken? · Issue #10581 · PowerShell/PowerShell · GitHub
Open Graph Title: Are all TokenKind.Generic tokens actually StringToken? · Issue #10581 · PowerShell/PowerShell
X Title: Are all TokenKind.Generic tokens actually StringToken? · Issue #10581 · PowerShell/PowerShell
Description: The following definition of TokenKind.Generic would indicate that all tokens of TokenKind.Generic should be a StringToken. (or specifically either StringLiteral or StringExpandable) PowerShell/src/System.Management.Automation/engine/pars...
Open Graph Description: The following definition of TokenKind.Generic would indicate that all tokens of TokenKind.Generic should be a StringToken. (or specifically either StringLiteral or StringExpandable) PowerShell/src/...
X Description: The following definition of TokenKind.Generic would indicate that all tokens of TokenKind.Generic should be a StringToken. (or specifically either StringLiteral or StringExpandable) PowerShell/src/...
Opengraph URL: https://github.com/PowerShell/PowerShell/issues/10581
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Are all TokenKind.Generic tokens actually StringToken?","articleBody":"The following definition of `TokenKind.Generic` would indicate that all tokens of `TokenKind.Generic` should be a `StringToken`. (or specifically either StringLiteral or StringExpandable)\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/22c6fb4a8753ec2d78b2fb1720e73366805c5e6f/src/System.Management.Automation/engine/parser/token.cs#L65-L72\r\n\r\nHowever, the method `Token.SetIsCommandArgument` does not guarantee that. This method is used to revert the `TokenKind` of special tokens when they appear as command names or arguments. Most all the special tokens that receive this treatment are not `StringToken`s.\r\n\r\nhttps://github.com/PowerShell/PowerShell/blob/22c6fb4a8753ec2d78b2fb1720e73366805c5e6f/src/System.Management.Automation/engine/parser/token.cs#L1200-L1208\r\n\r\nShould the documentation above `TokenKind.Generic` be reworded?\r\n\r\nReference PR #10295.","author":{"url":"https://github.com/msftrncs","@type":"Person","name":"msftrncs"},"datePublished":"2019-09-20T04:43:49Z","url":"https://github.com/PowerShell/PowerShell/issues/10581"}
| 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:23d9a5e0-4fa1-0b1d-4dd5-f79d31ff1beb |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BCAE:250F1:1E4619:28E5CB:6AFE17EA |
| html-safe-nonce | f18f67b03bfe200388ca6377c4d7f2f720f55f084e949513b770c66802ae2f88 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCQ0FFOjI1MEYxOjFFNDYxOToyOEU1Q0I6NkFGRTE3RUEiLCJ2aXNpdG9yX2lkIjoiMzE2ODQ2OTg3MDgwNzIyNjM0NiIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | dc1a507c78b03868d43abec4b97c7e47b53c252c70042dcf30f8feba03273607 |
| hovercard-subject-tag | issue:496142047 |
| 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/PowerShell/PowerShell/10581/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f755a409af03f15ad71ccf41ebebd6ee2ee762f98ead1fc1b85e18919f2b6891/PowerShell/PowerShell/issues/10581 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f755a409af03f15ad71ccf41ebebd6ee2ee762f98ead1fc1b85e18919f2b6891/PowerShell/PowerShell/issues/10581 |
| og:image:alt | The following definition of TokenKind.Generic would indicate that all tokens of TokenKind.Generic should be a StringToken. (or specifically either StringLiteral or StringExpandable) PowerShell/src/... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | msftrncs |
| hostname | github.com |
| expected-hostname | github.com |
| None | 3cd8a1d79ccbf9aecac62781f79072482a49047fb982b8c9e2ad4aca8bf6a9af |
| turbo-cache-control | no-preview |
| go-import | github.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git |
| octolytics-dimension-user_id | 11524380 |
| octolytics-dimension-user_login | PowerShell |
| octolytics-dimension-repository_id | 49609581 |
| octolytics-dimension-repository_nwo | PowerShell/PowerShell |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 49609581 |
| octolytics-dimension-repository_network_root_nwo | PowerShell/PowerShell |
| 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 | 05539640a34afe6142a519483d78ddd766a1304a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width