namespace XFEExtension.NetCore.ServerInteractive.SourceGenerator.Models; /// /// 方法候选信息,包含验证所需的所有数据 /// public class MethodCandidate(string namespaceName, string className, string methodName, string path, bool isAsync, bool noLog, bool isContainingTypePartial, int parameterCount, bool hasValidReturnType, string returnTypeName, LocationInfo methodLocation, LocationInfo classLocation, string typeParameters, string typeConstraints, string metadataName, string currentDeclaration, string outerOpenings, string outerClosings) { public string Namespace { get; } = namespaceName; public string ClassName { get; } = className; public string MethodName { get; } = methodName; public string Path { get; } = path; public bool IsAsync { get; } = isAsync; public bool NoLog { get; } = noLog; public bool IsContainingTypePartial { get; } = isContainingTypePartial; public int ParameterCount { get; } = parameterCount; public bool HasValidReturnType { get; } = hasValidReturnType; public string ReturnTypeName { get; } = returnTypeName; public LocationInfo MethodLocation { get; } = methodLocation; public LocationInfo ClassLocation { get; } = classLocation; public string TypeParameters { get; } = typeParameters; public string TypeConstraints { get; } = typeConstraints; public string MetadataName { get; } = metadataName; public string CurrentDeclaration { get; } = currentDeclaration; public string OuterOpenings { get; } = outerOpenings; public string OuterClosings { get; } = outerClosings; }