Skip to content

CFG: Handle parameter cfg explicitly. - #22807

Draft
aschackmull wants to merge 1 commit into
github:mainfrom
aschackmull:cfg/parameter
Draft

aschackmull wants to merge 1 commit into
github:mainfrom
aschackmull:cfg/parameter

Conversation

@aschackmull

Copy link
Copy Markdown
Contributor

Followup for #22791.

Parameter patterns are in many cases represented by the parameter itself. In these cases the CFG should be just a single node or before+after nodes when there's a match condition preceding a default value. Previously, we relied on the default CFG for this, but this only works when the parameter doesn't have any AST children (as specified by the getChild predicate in the CFG input). In order to fix this, it's better to simply specify the CFG explicitly.

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant