From e2af1102eb0dce715114acf7c7f69cca9cb44a83 Mon Sep 17 00:00:00 2001 From: GGG Date: Mon, 22 Jan 2024 04:46:05 -0300 Subject: [PATCH] Remove nullable attribute as it generates warnings. --- .../Tsu.TreeSourceGen.Generator/TreeNodeAttribute.g.cs | 2 +- Tsu.TreeSourceGen/src/CodeConstants.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Tsu.TreeSourceGen/sample/Generated/Tsu.TreeSourceGen/Tsu.TreeSourceGen.Generator/TreeNodeAttribute.g.cs b/Tsu.TreeSourceGen/sample/Generated/Tsu.TreeSourceGen/Tsu.TreeSourceGen.Generator/TreeNodeAttribute.g.cs index 6cd1013..e2efc7e 100644 --- a/Tsu.TreeSourceGen/sample/Generated/Tsu.TreeSourceGen/Tsu.TreeSourceGen.Generator/TreeNodeAttribute.g.cs +++ b/Tsu.TreeSourceGen/sample/Generated/Tsu.TreeSourceGen/Tsu.TreeSourceGen.Generator/TreeNodeAttribute.g.cs @@ -7,5 +7,5 @@ public sealed class TreeNodeAttribute(Type treeRoot) : Attribute { public Type TreeRoot { get; } = treeRoot; - public string? Name { get; set; } + public string Name { get; set; } } \ No newline at end of file diff --git a/Tsu.TreeSourceGen/src/CodeConstants.cs b/Tsu.TreeSourceGen/src/CodeConstants.cs index 07a8e7e..488dac8 100644 --- a/Tsu.TreeSourceGen/src/CodeConstants.cs +++ b/Tsu.TreeSourceGen/src/CodeConstants.cs @@ -35,7 +35,7 @@ public sealed class {{FullName}}(Type treeRoot) : Attribute { public Type TreeRoot { get; } = treeRoot; - public string? Name { get; set; } + public string Name { get; set; } } """; }