2022-07-28 17:41:48 +02:00
|
|
|
using System.Diagnostics.CodeAnalysis;
|
|
|
|
|
|
|
|
namespace Godot.SourceGenerators.Sample;
|
|
|
|
|
|
|
|
[SuppressMessage("ReSharper", "RedundantNameQualifier")]
|
2022-12-07 16:16:51 +01:00
|
|
|
public partial class Methods : GodotObject
|
2022-07-28 17:41:48 +02:00
|
|
|
{
|
|
|
|
private void MethodWithOverload()
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
private void MethodWithOverload(int a)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
private void MethodWithOverload(int a, int b)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// Should be ignored. The previous one is picked.
|
|
|
|
// ReSharper disable once UnusedMember.Local
|
|
|
|
private void MethodWithOverload(float a, float b)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
|
|
|
|
// Generic methods should be ignored.
|
|
|
|
// ReSharper disable once UnusedMember.Local
|
|
|
|
private void GenericMethod<T>(T t)
|
|
|
|
{
|
|
|
|
}
|
|
|
|
}
|