summaryrefslogtreecommitdiff
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Methods.cs
blob: 618ba24abcc2ace3c06f81450dea2ccb0fba24cb (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
25
26
27
28
29
30
31
using System.Diagnostics.CodeAnalysis;

namespace Godot.SourceGenerators.Sample;

[SuppressMessage("ReSharper", "RedundantNameQualifier")]
public partial class Methods : Godot.Object
{
    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)
    {
    }
}