Skip to content

Feat/完善命名域类型引用,新增单元测试#10

Open
ihonliu wants to merge 17 commits intoMarvelTiter:masterfrom
ihonliu:feat/CheckAsyncMethod
Open

Feat/完善命名域类型引用,新增单元测试#10
ihonliu wants to merge 17 commits intoMarvelTiter:masterfrom
ihonliu:feat/CheckAsyncMethod

Conversation

@ihonliu
Copy link
Contributor

@ihonliu ihonliu commented Dec 7, 2024

本PR包括了对 AutoWasmApi.Roslyn 项目的若干更新,主要集中在新增规则、重构诊断定义,以及引入新的扩展和助手方法。最重要的变化包括添加了新的分析器规则、重构了诊断定义,并引入了一个新的方法检查扩展。

新增分析器规则:

  • AnalyzerReleases.Unshipped.md 中为 AutoWasmApiGenerator 命名空间中的各种错误条件添加了新规则。

重构诊断定义:

  • 重构了 DiagnosticDefinitions.cs,为每个诊断使用了 DiagnosticDescriptor,并更新了相应的方法以使用这些描述符。

代码库简化:

  • 移除了 ControllerGenerator.cs 中不必要的调试代码。
  • 引入了 MethodCheckerExtensions.cs,新增了一个方法用于检查某个类型是否具有 TryParse 方法。
  • 为了保持一致性,修正了 GeneratorHelpers.cs 中的常量名称。

命名空间调整:

  • 调整了 HttpServiceInvokerGenerator.cs 中的命名空间和导入语句,以提高组织性和可读性。

增加单元测试

  • AutoWasmApiGenerator 生成器增加单元测试

@ihonliu ihonliu force-pushed the feat/CheckAsyncMethod branch from b4b593a to 7956858 Compare December 9, 2024 09:45
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