using Microsoft.CodeAnalysis;
namespace Dpz.Core.SourceGenerator.Models;
/// <summary>
/// 缓存键生成和装饰器方法签名共用的参数描述。
/// </summary>
internal readonly struct CachedParameter(
string name,
string typeName,
RefKind refKind,
bool hasExplicitDefaultValue,
string defaultValueLiteral,
bool isParams
)
{
public string Name { get; } = name;
public string TypeName { get; } = typeName;
public RefKind RefKind { get; } = refKind;
public bool HasExplicitDefaultValue { get; } = hasExplicitDefaultValue;
public string DefaultValueLiteral { get; } = defaultValueLiteral;
public bool IsParams { get; } = isParams;
}
评论加载中...