2022-07-28 17:41:47 +02:00
|
|
|
using System.Collections.Generic;
|
|
|
|
|
|
|
|
namespace Godot.SourceGenerators
|
|
|
|
{
|
2022-07-07 17:58:13 +02:00
|
|
|
internal readonly struct MethodInfo
|
2022-07-28 17:41:47 +02:00
|
|
|
{
|
|
|
|
public MethodInfo(string name, PropertyInfo returnVal, MethodFlags flags,
|
|
|
|
List<PropertyInfo>? arguments,
|
|
|
|
List<string?>? defaultArguments)
|
|
|
|
{
|
|
|
|
Name = name;
|
|
|
|
ReturnVal = returnVal;
|
|
|
|
Flags = flags;
|
|
|
|
Arguments = arguments;
|
|
|
|
DefaultArguments = defaultArguments;
|
|
|
|
}
|
|
|
|
|
|
|
|
public string Name { get; }
|
|
|
|
public PropertyInfo ReturnVal { get; }
|
|
|
|
public MethodFlags Flags { get; }
|
|
|
|
public List<PropertyInfo>? Arguments { get; }
|
|
|
|
public List<string?>? DefaultArguments { get; }
|
|
|
|
}
|
|
|
|
}
|