Skip to content

Commit

Permalink
add #nullable restore to decorator template to resolve compiler war…
Browse files Browse the repository at this point in the history
…ning CS8669 (#57)
  • Loading branch information
marek-wolanowski-opennet authored Jun 6, 2024
1 parent 18537a8 commit 60b5739
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions DecoratorGenerator.UnitTests/BirdDecorator.generated.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#nullable restore
namespace SampleLibrary;

public abstract class BirdDecorator : IBird
Expand Down
1 change: 1 addition & 0 deletions DecoratorGenerator.UnitTests/CatDecorator.generated.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#nullable restore
namespace SampleLibrary;

public abstract class CatDecorator : ICat
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#nullable restore
namespace Amazon.DynamoDBv2.DataModel;

public abstract class DynamoDBContextDecorator : IDynamoDBContext
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#nullable restore
namespace SampleLibrary;

public abstract class LionPropertiesDecorator : ILionProperties
Expand Down
1 change: 1 addition & 0 deletions DecoratorGenerator.UnitTests/NestedDecorator.generated.cs
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
// <auto-generated/>
#nullable restore
namespace SampleLibrary.Deep.Nesteds;

public abstract class NestedDecorator : INested
Expand Down
1 change: 1 addition & 0 deletions DecoratorGenerator/OutputGenerator.cs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ public static (string source, string className) GenerateOutputs(INamedTypeSymbol

var source =
$@"// <auto-generated/>
#nullable restore
namespace {type.ContainingNamespace.ToDisplayString()};
public abstract class {className} : {@interface.Name}
Expand Down

0 comments on commit 60b5739

Please sign in to comment.