XFEExtension
【DLL】XFE各类拓展是一个C#的DLL库,旨在优化C#代码中常用语句的使用,并提供更简洁的访问方式,同时提供Xunit测试框架,快速搭建服务器/客户端,免费ChatGPTAPI接口,免费通讯服务器,XFE下载器,新增格式等
关注
0
Fork
0
Star
0
返回提交历史
Modified
XFE各类拓展.NetCore.Analyzer/ImplementAutoGenerator.cs
+0
-2
XFEstudio/XFEExtension
移除冗余代码
8b6ec5e
代码差异
1 个文件
+0
-2
@@ -26,7 +26,6 @@ namespace XFE各类拓展.NetCore.Analyzer
26
26
var className = classDeclaration.Identifier.ValueText;
27
27
var implementationSyntaxTree = GenerateImplementationSyntaxTree(classDeclaration, usingDirectives);
28
28
context.AddSource($"{className}Impl.g.cs", implementationSyntaxTree.ToString());
29
//添加一个
30
29
}
31
30
}
32
31
}
@@ -39,7 +38,6 @@ namespace XFE各类拓展.NetCore.Analyzer
39
38
ClassDeclarationSyntax implementationClass;
40
39
if (classDeclaration.ParameterList is null)
41
40
{
42
// 添加summary注释
43
41
implementationClass = SyntaxFactory.ClassDeclaration($"{className}Impl")
44
42
.AddModifiers(SyntaxFactory.Token(SyntaxKind.InternalKeyword))
45
43
.AddBaseListTypes(SyntaxFactory.SimpleBaseType(SyntaxFactory.ParseTypeName(className)))