feat/go-struct-inventory
main
函数清单(PR #4)之外,struct 是迁移计量的另一半:类型数量决定数据结构层的移植面。
新增 scripts/go-struct-inventory.rs:扫描 Go 顶层 struct 声明, 输出 CSV(name/module/path),按模块与名称排序,与 func 清单 同构。带六态词法状态机(代码/行注释/块注释/解释字符串/原始 字符串/rune 字面量),正确处理 type ( 分组声明、嵌套泛型参数 与 struct 别名(type X = struct{...});输出默认落 csv-records/。
No dependencies set.
The note is not visible to the blocked user.
背景
函数清单(PR #4)之外,struct 是迁移计量的另一半:类型数量决定数据结构层的移植面。
变更内容
自测结果
新增 scripts/go-struct-inventory.rs:扫描 Go 顶层 struct 声明, 输出 CSV(name/module/path),按模块与名称排序,与 func 清单 同构。带六态词法状态机(代码/行注释/块注释/解释字符串/原始 字符串/rune 字面量),正确处理 type ( 分组声明、嵌套泛型参数 与 struct 别名(type X = struct{...});输出默认落 csv-records/。