File tree Expand file tree Collapse file tree 2 files changed +4
-7
lines changed
WebApiClientCore.Analyzers.SourceGenerator
WebApiClientCore.Extensions.SourceGenerator/Implementations Expand file tree Collapse file tree 2 files changed +4
-7
lines changed Original file line number Diff line number Diff line change @@ -58,12 +58,12 @@ public IEnumerable<string> Usings
58
58
/// <summary>
59
59
/// 类名
60
60
/// </summary>
61
- public string ClassName => "_" + this . httpApi . ToDisplayString ( SymbolDisplayFormat . MinimallyQualifiedFormat ) ;
61
+ public string ClassName => this . httpApi . ToDisplayString ( SymbolDisplayFormat . MinimallyQualifiedFormat ) ;
62
62
63
63
/// <summary>
64
64
/// 构造器名
65
65
/// </summary>
66
- public string CtorName => "_" + this . httpApi . Name ;
66
+ public string CtorName => this . httpApi . Name ;
67
67
68
68
/// <summary>
69
69
/// HttpApi代码构建器
@@ -98,13 +98,10 @@ public override string ToString()
98
98
builder . AppendLine ( $ "namespace { this . Namespace } ") ;
99
99
builder . AppendLine ( "{" ) ;
100
100
builder . AppendLine ( $ "\t [HttpApiProxyClass(typeof({ this . HttpApiTypeName } ))]") ;
101
- builder . AppendLine ( $ "\t class { this . ClassName } :{ this . BaseInterfaceName } ") ;
101
+ builder . AppendLine ( $ "\t public class { this . ClassName } :{ this . BaseInterfaceName } ") ;
102
102
builder . AppendLine ( "\t {" ) ;
103
103
104
- builder . AppendLine ( "\t \t [DebuggerBrowsable(DebuggerBrowsableState.Never)]" ) ;
105
104
builder . AppendLine ( $ "\t \t private readonly IHttpApiInterceptor { this . apiInterceptorFieldName } ;") ;
106
-
107
- builder . AppendLine ( "\t \t [DebuggerBrowsable(DebuggerBrowsableState.Never)]" ) ;
108
105
builder . AppendLine ( $ "\t \t private readonly ApiActionInvoker[] { this . actionInvokersFieldName } ;") ;
109
106
110
107
builder . AppendLine ( $ "\t \t public { this . CtorName } (IHttpApiInterceptor apiInterceptor,ApiActionInvoker[] actionInvokers)") ;
Original file line number Diff line number Diff line change @@ -85,7 +85,7 @@ orderby methodAttr.Index
85
85
86
86
foreach ( var proxyType in interfaceType . Assembly . GetTypes ( ) )
87
87
{
88
- if ( proxyType . IsVisible || proxyType . IsClass == false )
88
+ if ( proxyType . IsClass == false )
89
89
{
90
90
continue ;
91
91
}
You can’t perform that action at this time.
0 commit comments