Open traceyyoshima opened 1 year ago
Unassigning myself because I'm focused on other higher-priority work.
Closing this issue after Sam and Tyler reviewed it. We need to have a deeper design discussion around this topic.
This was already discussed, and we need the means to track the work to look into the uses of TypeTree (used a lot in ChangeType) and the effects on type attribution.
We've had a handful of issues reported related to incorrect results by recipes that were tracked down to type attribution and TypeTree.
The most common type attribution issue has been related to ChangeType and static imports. The issue is essential due to the effects on composite recipes, which make the type attribution challenging to track down.
Problem: Multiple issues have been reported related to unexpected changes caused by incorrect type attribution, which were isolated to TypeTree.build. The most notable recipes so far are
ChangeType
andAddImport
, which are used frequently in composite recipes.Based on previous discussions, we need to assess the effects of using TypeTree.build and replace the builder with an appropriate utility.