-
Notifications
You must be signed in to change notification settings - Fork 11
Expansion context analyzer #685
Copy link
Copy link
Open
Labels
autopilot-candidateThe Copilot Agent should attempt this during a scheduled Autopilot runThe Copilot Agent should attempt this during a scheduled Autopilot runenhancementNew feature or requestNew feature or request
Metadata
Metadata
Labels
autopilot-candidateThe Copilot Agent should attempt this during a scheduled Autopilot runThe Copilot Agent should attempt this during a scheduled Autopilot runenhancementNew feature or requestNew feature or request
Whenever a form is being expanded, the result of
syntax-local-contexthas one of five values:'expression,'top-level,'module,'module-begin, or a value representing a specific definition context. This is useful information to know when inside refactoring rules, as it can affect what sort of transformations might be possible or reasonable. There should be a custom expansion analyzer that labels the expansion context of all forms in the fully expanded syntax. Here's some test cases: