Skip to content

Commit fe05549

Browse files
committed
Enable nullable in generated code to fix warning
1 parent 1a33055 commit fe05549

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ElementFactoryGenerator/ElementFactory.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ private void Execute(SourceProductionContext context, (Compilation Left, Immutab
3131

3232
elementFactory.Append(
3333
""""
34+
#nullable enable
35+
3436
public class ElementFactory : Datamodel.Codecs.IElementFactory
3537
{
3638
public object? GetClass(string assembly, string nameSpace, string classname)
@@ -287,4 +289,4 @@ private class FactoryNamespace(string name)
287289
public string Name = name;
288290
public List<INamedTypeSymbol> Types = new();
289291
}
290-
}
292+
}

0 commit comments

Comments
 (0)