René's URL Explorer Experiment


Title: Exclude outvariable assignments within the same CommandAst when inferring variables by MartinGC94 · Pull Request #25224 · PowerShell/PowerShell · GitHub

Open Graph Title: Exclude outvariable assignments within the same CommandAst when inferring variables by MartinGC94 · Pull Request #25224 · PowerShell/PowerShell

X Title: Exclude outvariable assignments within the same CommandAst when inferring variables by MartinGC94 · Pull Request #25224 · PowerShell/PowerShell

Description: PowerShell for every system! Contribute to PowerShell/PowerShell development by creating an account on GitHub.

Open Graph Description: PR Summary This PR updates the variable type inference to ignore the assignments made within the same CommandAst as the variable that is being inferred. This fixes scenarios like: gci 2>Variable...

X Description: PR Summary This PR updates the variable type inference to ignore the assignments made within the same CommandAst as the variable that is being inferred. This fixes scenarios like: gci 2>Vari...

Opengraph URL: https://github.com/PowerShell/PowerShell/pull/25224

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:fd819a19-4bdd-610b-686f-b3339c461524
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id98E8:A6E9E:56C3573:79036EC:6A5512AB
html-safe-nonce537bf80114f51a395d2d0bd7380b82450dc98c1381eb233830dcd0dc1215f95e
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OEU4OkE2RTlFOjU2QzM1NzM6NzkwMzZFQzo2QTU1MTJBQiIsInZpc2l0b3JfaWQiOiIyNjE5NTU1MTMxNzYzNzkwNTA3IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0=
visitor-hmacd97d4141f058040333fbea6de9b8f24ef402b81249b5ef68cb2728ecaed2559f
hovercard-subject-tagpull_request:2413353892
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/PowerShell/PowerShell/25224/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/c2f0a55fd34d705899a377689fbbf1e3c8846b99e4ed683d455e2419a51a897a/PowerShell/PowerShell/pull/25224
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/c2f0a55fd34d705899a377689fbbf1e3c8846b99e4ed683d455e2419a51a897a/PowerShell/PowerShell/pull/25224
og:image:altPR Summary This PR updates the variable type inference to ignore the assignments made within the same CommandAst as the variable that is being inferred. This fixes scenarios like: gci 2>Variable...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameMartinGC94
hostnamegithub.com
expected-hostnamegithub.com
None682d273eacb2ac51680c6eb9c0b270f029f7ce74c32090f319083c34497e28a5
turbo-cache-controlno-cache
go-importgithub.com/PowerShell/PowerShell git https://github.com/PowerShell/PowerShell.git
octolytics-dimension-user_id11524380
octolytics-dimension-user_loginPowerShell
octolytics-dimension-repository_id49609581
octolytics-dimension-repository_nwoPowerShell/PowerShell
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id49609581
octolytics-dimension-repository_network_root_nwoPowerShell/PowerShell
turbo-body-classeslogged-out env-production page-responsive
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release0f2adbaa4b43ea302b02981f637a782ae92ed6dc
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/PowerShell/PowerShell/pull/25224#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
Sign up https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=PowerShell%2FPowerShell
Reloadhttps://github.com/PowerShell/PowerShell/pull/25224
Reloadhttps://github.com/PowerShell/PowerShell/pull/25224
Reloadhttps://github.com/PowerShell/PowerShell/pull/25224
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
PowerShell https://github.com/PowerShell
PowerShellhttps://github.com/PowerShell/PowerShell
Notifications https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Fork 8.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Star 54.4k https://github.com/login?return_to=%2FPowerShell%2FPowerShell
Code https://github.com/PowerShell/PowerShell
Issues 1.2k https://github.com/PowerShell/PowerShell/issues
Pull requests 288 https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality 3 https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
Code https://github.com/PowerShell/PowerShell
Issues https://github.com/PowerShell/PowerShell/issues
Pull requests https://github.com/PowerShell/PowerShell/pulls
Discussions https://github.com/PowerShell/PowerShell/discussions
Actions https://github.com/PowerShell/PowerShell/actions
Projects https://github.com/PowerShell/PowerShell/projects
Security and quality https://github.com/PowerShell/PowerShell/security
Insights https://github.com/PowerShell/PowerShell/pulse
iSazonovhttps://github.com/iSazonov
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
MartinGC94:ImproveOutVarInferencehttps://github.com/MartinGC94/PowerShell/tree/ImproveOutVarInference
Conversationhttps://github.com/PowerShell/PowerShell/pull/25224
Commits3 (3)https://github.com/PowerShell/PowerShell/pull/25224/commits
Checkshttps://github.com/PowerShell/PowerShell/pull/25224/checks
Files changedhttps://github.com/PowerShell/PowerShell/pull/25224/files
Exclude outvariable assignments within the same CommandAst when inferring variableshttps://github.com/PowerShell/PowerShell/pull/25224#top
iSazonovhttps://github.com/iSazonov
PowerShell:masterhttps://github.com/PowerShell/PowerShell/tree/master
MartinGC94:ImproveOutVarInferencehttps://github.com/MartinGC94/PowerShell/tree/ImproveOutVarInference
https://github.com/MartinGC94
MartinGC94https://github.com/MartinGC94
Mar 24, 2025https://github.com/PowerShell/PowerShell/pull/25224#issue-2942816294
#25206 (comment)https://github.com/PowerShell/PowerShell/pull/25206#discussion_r2007405868
PR has a meaningful titlehttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Summarized changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure all .h, .cpp, .cs, .ps1 and .psm1 files have the correct copyright headerhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Work in Progresshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---work-in-progress
Breaking changeshttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#making-breaking-changes
Experimental feature(s) neededhttps://github.com/MicrosoftDocs/PowerShell-Docs/blob/main/reference/7.5/Microsoft.PowerShell.Core/About/about_Experimental_Features.md
Documentation neededhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#pull-request---submission
Make sure you've added a new test if existing tests do not effectively test the code changedhttps://github.com/PowerShell/PowerShell/blob/master/.github/CONTRIBUTING.md#before-submitting
PowerShell Editor Serviceshttps://github.com/PowerShell/PowerShellEditorServices
PowerShell extensionhttps://github.com/PowerShell/vscode-powershell
PSScriptAnalyzerhttps://github.com/PowerShell/PSScriptAnalyzer
EditorSyntaxhttps://github.com/PowerShell/EditorSyntax
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
https://github.com/MartinGC94
Exclude outvariable assignments within the same commandast when infer…https://github.com/PowerShell/PowerShell/pull/25224/commits/680b430285db1c25c3854d9dfcc6772edfd50cf9
680b430https://github.com/PowerShell/PowerShell/pull/25224/commits/680b430285db1c25c3854d9dfcc6772edfd50cf9
https://github.com/MartinGC94
MartinGC94https://github.com/MartinGC94
SeeminglySciencehttps://github.com/SeeminglyScience
daxian-dbwhttps://github.com/daxian-dbw
code ownershttps://github.com/PowerShell/PowerShell/blob/696fa7634b0bf3587d2bd1f1f5a2b7d8b09497f0/.github/CODEOWNERS#L46
March 24, 2025 10:44https://github.com/PowerShell/PowerShell/pull/25224#event-16953211843
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Mar 24, 2025https://github.com/PowerShell/PowerShell/pull/25224#event-16953922034
https://github.com/iSazonov
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/apps/azure-pipelines
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Mar 24, 2025https://github.com/PowerShell/PowerShell/pull/25224#event-16954036642
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Mar 25, 2025 https://github.com/PowerShell/PowerShell/pull/25224#pullrequestreview-2712297397
View reviewed changes https://github.com/PowerShell/PowerShell/pull/25224/files/680b430285db1c25c3854d9dfcc6772edfd50cf9
src/System.Management.Automation/engine/parser/TypeInferenceVisitor.cshttps://github.com/PowerShell/PowerShell/pull/25224/files/680b430285db1c25c3854d9dfcc6772edfd50cf9#diff-30feea0794a0191c121a83e2fa60dbacf701dd9c5be6c4d57b1865cdee745d6b
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
https://github.com/MartinGC94
Add commenthttps://github.com/PowerShell/PowerShell/pull/25224/commits/796d58c0bbbfb5f21aed33520a82b85949899168
796d58chttps://github.com/PowerShell/PowerShell/pull/25224/commits/796d58c0bbbfb5f21aed33520a82b85949899168
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Mar 25, 2025https://github.com/PowerShell/PowerShell/pull/25224#issuecomment-2751825721
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Mar 25, 2025 https://github.com/PowerShell/PowerShell/pull/25224#pullrequestreview-2714411192
View reviewed changes https://github.com/PowerShell/PowerShell/pull/25224/files/796d58c0bbbfb5f21aed33520a82b85949899168
https://github.com/iSazonov
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/apps/azure-pipelines
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
Mar 26, 2025https://github.com/PowerShell/PowerShell/pull/25224#issuecomment-2754199672
@MartinGC94https://github.com/MartinGC94
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
https://github.com/MartinGC94
Merge branch 'master' into ImproveOutVarInferencehttps://github.com/PowerShell/PowerShell/pull/25224/commits/43d249a1e1243f2d4b833a1b74adb71f9b7c0d0f
43d249ahttps://github.com/PowerShell/PowerShell/pull/25224/commits/43d249a1e1243f2d4b833a1b74adb71f9b7c0d0f
https://github.com/iSazonov
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/apps/azure-pipelines
Sign in to viewhttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
March 26, 2025 17:15https://github.com/PowerShell/PowerShell/pull/25224#event-16997091964
https://github.com/iSazonov
iSazonovhttps://github.com/iSazonov
0c96975https://github.com/PowerShell/PowerShell/commit/0c96975d1ef3d27fa1e64b8c4b4676be7e5614fb
Mar 26, 2025https://github.com/PowerShell/PowerShell/pull/25224#event-16997793121
https://github.com/apps/microsoft-github-policy-service
microsoft-github-policy-servicehttps://github.com/apps/microsoft-github-policy-service
Mar 26, 2025https://github.com/PowerShell/PowerShell/pull/25224#issuecomment-2755338991
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
@MartinGC94https://github.com/MartinGC94
https://aka.ms/PSRepoFeedbackhttps://aka.ms/PSRepoFeedback
Microsoft Formshttps://aka.ms/PSRepoFeedback
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
Sysoiev-Yuriihttps://github.com/Sysoiev-Yurii
May 12, 2025 https://github.com/PowerShell/PowerShell/pull/25224#ref-commit-2c48c6d
https://github.com/MartinGC94
https://github.com/Sysoiev-Yurii
Exclude outvariable assignments within the same CommandAst when infer…https://github.com/Sysoiev-Yurii/PowerShell/commit/2c48c6d7f8cd14ee9b4a794654ee7b315c575226
2c48c6dhttps://github.com/Sysoiev-Yurii/PowerShell/commit/2c48c6d7f8cd14ee9b4a794654ee7b315c575226
PowerShell#25224https://github.com/PowerShell/PowerShell/pull/25224
SIRMARGINhttps://github.com/SIRMARGIN
Dec 12, 2025 https://github.com/PowerShell/PowerShell/pull/25224#ref-commit-236626c
https://github.com/MartinGC94
https://github.com/SIRMARGIN
Exclude outvariable assignments within the same CommandAst when infer…https://github.com/SIRMARGIN/PowerShell/commit/236626c6ce4b92a018ec373834cf8785023457d4
236626chttps://github.com/SIRMARGIN/PowerShell/commit/236626c6ce4b92a018ec373834cf8785023457d4
PowerShell#25224https://github.com/PowerShell/PowerShell/pull/25224
https://github.co/hiddenchars
https://github.com/PowerShell/PowerShell/pull/{{ revealButtonHref }}
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2FPowerShell%2FPowerShell%2Fpull%2F25224
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
https://github.com/PowerShell/PowerShell/pull/25224/files/796d58c0bbbfb5f21aed33520a82b85949899168
https://github.com/daxian-dbw
daxian-dbw https://github.com/daxian-dbw
https://github.com/SeeminglyScience
SeeminglyScience https://github.com/SeeminglyScience
https://github.com/iSazonov
iSazonov https://github.com/iSazonov
CL-General https://github.com/PowerShell/PowerShell/issues?q=state%3Aopen%20label%3ACL-General
Please reload this pagehttps://github.com/PowerShell/PowerShell/pull/25224
https://github.com/MartinGC94
https://github.com/iSazonov
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.