Methods.cs 668 B

12345678910111213141516171819202122232425262728293031
  1. using System.Diagnostics.CodeAnalysis;
  2. namespace Godot.SourceGenerators.Sample;
  3. [SuppressMessage("ReSharper", "RedundantNameQualifier")]
  4. public partial class Methods : GodotObject
  5. {
  6. private void MethodWithOverload()
  7. {
  8. }
  9. private void MethodWithOverload(int a)
  10. {
  11. }
  12. private void MethodWithOverload(int a, int b)
  13. {
  14. }
  15. // Should be ignored. The previous one is picked.
  16. // ReSharper disable once UnusedMember.Local
  17. private void MethodWithOverload(float a, float b)
  18. {
  19. }
  20. // Generic methods should be ignored.
  21. // ReSharper disable once UnusedMember.Local
  22. private void GenericMethod<T>(T t)
  23. {
  24. }
  25. }