summaryrefslogtreecommitdiff
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators/MethodInfo.cs
blob: 81c6f2b7d54e530379a7f68778f0485418969610 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using System.Collections.Generic;

namespace Godot.SourceGenerators
{
    internal struct MethodInfo
    {
        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; }
    }
}