MethodInfo.cs 721 B

123456789101112131415161718192021222324
  1. using System.Collections.Generic;
  2. namespace Godot.SourceGenerators
  3. {
  4. internal readonly struct MethodInfo
  5. {
  6. public MethodInfo(string name, PropertyInfo returnVal, MethodFlags flags,
  7. List<PropertyInfo>? arguments,
  8. List<string?>? defaultArguments)
  9. {
  10. Name = name;
  11. ReturnVal = returnVal;
  12. Flags = flags;
  13. Arguments = arguments;
  14. DefaultArguments = defaultArguments;
  15. }
  16. public string Name { get; }
  17. public PropertyInfo ReturnVal { get; }
  18. public MethodFlags Flags { get; }
  19. public List<PropertyInfo>? Arguments { get; }
  20. public List<string?>? DefaultArguments { get; }
  21. }
  22. }