Debian Codegraph @

modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/Methods.cs

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