已关闭
Split `Program`s by `ModuleKind` #8938
dkofanov创建于  2025年12月25日关闭于  1月31日
dkofanov
dkofanov
2025年12月25日 创建

感谢提出新需求。

新需求提供了什么功能?

parser::Programs creation and initialization, including

  1. source-resolving;
  2. caches-lookup;
  3. file reading;
    is spread across different es2panda's parts (ETSParser, ImportPathManager, etc.).

Because of that it's hard to judge

  • by which path a module will be resolved (source or source-declaration or both of them) and
  • in which form a module will show up to es2panda (source or etscache).

The solution is to gather all the initialization of Program in the single place (ImportPathManager).

该需求带来的价值、应用场景?

More deterministic creation of Programs.

likedislike
dkofanovdkofanov
2025年12月25日 添加了label:enhancement
dkofanovdkofanov
2025年12月25日 修改了issue 的描述
openharmony_ci
openharmony_ci成员
2025年12月25日 评论:

感谢提交Issue!关于Issue的交互操作,请访问OpenHarmony社区支持命令清单。如果有问题,请联系 [@weng-changcheng](https://gitcode.com/weng-changcheng) [@godmiaozi](https://gitcode.com/godmiaozi) [@liyiming13](https://gitcode.com/liyiming13) [@lijin1039](https://gitcode.com/lijin1039) [@Prof](https://gitcode.com/Prof) [@dingding5](https://gitcode.com/dingding5) [@v-cherkashin](https://gitcode.com/v-cherkashin) 。如果需要调整订阅PR、Issue的变更状态,请访问链接


Thanks for submitting the issue. For more commands, please visit OpenHarmony Command List. If you have any questions, please refer to committer gitcode for help. If you need to change the subscription of a Pull Request or Issue, please visit the link.

likedislike
openharmony_ciopenharmony_ci成员
2025年12月25日 添加了label:waiting_for_assign
dkofanovdkofanov
1月14日 关联了pull request:Fix invalid imports
dkofanovdkofanov
1月19日 关联了pull request:Fix namespace export
dkofanovdkofanov
1月19日 关联了pull request:Fix namespace export
dkofanovdkofanov
1月19日 关联了pull request:Fix incorrect smartcast
dkofanovdkofanov
1月26日 关联了pull request:Remove invalid import
ohci1ohci1成员
1月31日 关闭了 issue