summaryrefslogtreecommitdiffstats
path: root/modules/mono/editor/Godot.NET.Sdk/Godot.SourceGenerators.Sample/MoreExportedFields.cs
blob: 64088215e98383380f59b60d1ed6f23d029d9c26 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
using System;
using System.Diagnostics.CodeAnalysis;

#pragma warning disable CS0169
#pragma warning disable CS0414

namespace Godot.SourceGenerators.Sample
{
    [SuppressMessage("ReSharper", "BuiltInTypeReferenceStyle")]
    [SuppressMessage("ReSharper", "RedundantNameQualifier")]
    [SuppressMessage("ReSharper", "ArrangeObjectCreationWhenTypeEvident")]
    [SuppressMessage("ReSharper", "InconsistentNaming")]
    // We split the definition of ExportedFields to verify properties work across multiple files.
    public partial class ExportedFields : GodotObject
    {
        // Note we use Array and not System.Array. This tests the generated namespace qualification.
        [Export] private Int64[] field_empty_Int64Array = Array.Empty<Int64>();
    }
}