Skip to content

Commit

Permalink
Update documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Corniel committed Oct 30, 2024
1 parent 873d667 commit a6d82cb
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion specs/Qowaiv.CodeGeneration.Specs/Reflection_specs.cs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public void Is_nullable_when_marked()
public void Is_not_nullable_when_not_marked()
=> typeof(Model).GetProperty(nameof(Model.NotNullable))!.IsNullable().Should().BeFalse();

class Model
internal class Model
{
public object? Nullable { get; }

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,15 @@

namespace Qowaiv.CodeGeneration;

/// <summary>Extensions on <see cref="TypeBase"/>.</summary>
public static class TypeBaseExtensions
{
/// <summary>Gets all types including their usings/dependencies.</summary>
/// <remarks>
/// That includes all their properties, base classes and derived types.
/// </remarks>
[Pure]
public static IReadOnlyCollection<TypeBase> IncludeUsings(this IEnumerable<TypeBase>? codes)
public static IReadOnlyCollection<TypeBase> IncludeUsings(this IEnumerable<TypeBase> codes)
{
var types = new HashSet<TypeBase>(new TypeNameEqualityComparer());

Expand Down
2 changes: 2 additions & 0 deletions src/Qowaiv.CodeGeneration/IO/CodeFileWriter.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@

namespace Qowaiv.CodeGeneration.IO;

/// <summary>Writes <see cref="Code"/> to file.</summary>
public static class CodeFileWriter
{
/// <summary>Saves the <see cref="Code"/> applying writer settings.</summary>
public static void Save(this IEnumerable<Code> code, CodeFileWriterSettings codeFileSettings, CSharpWriterSettings? csharpSettings = null)
{
Guard.NotNull(code);
Expand Down

0 comments on commit a6d82cb

Please sign in to comment.