Skip to content

Commit

Permalink
Improve compilation validation (#96)
Browse files Browse the repository at this point in the history
  • Loading branch information
viceroypenguin authored Aug 20, 2024
1 parent 97c6b18 commit 0422f00
Show file tree
Hide file tree
Showing 21 changed files with 638 additions and 446 deletions.
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...BaseInterface.g.cs
//HintName: IV.Namespace..BaseInterface.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial interface BaseInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...ValidateClass.g.cs
//HintName: IV.Namespace..ValidateClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial class ValidateClass
{
Expand All @@ -23,7 +25,7 @@ public static ValidationResult Validate(ValidateClass? target)

var errors = new ValidationResult();

errors.AddRange(global::BaseClass.Validate(t));
errors.AddRange(global::Namespace.BaseInterface.Validate(t));



Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...BaseClass.g.cs
//HintName: IV.Namespace..BaseClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial class BaseClass
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...ValidateClass.g.cs
//HintName: IV.Namespace..ValidateClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial class ValidateClass
{
Expand All @@ -23,7 +25,7 @@ public static ValidationResult Validate(ValidateClass? target)

var errors = new ValidationResult();

errors.AddRange(global::BaseInterface.Validate(t));
errors.AddRange(global::Namespace.BaseClass.Validate(t));



Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterClass.BaseClass.g.cs
//HintName: IV.Namespace.OuterClass.BaseClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial class OuterClass
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterClass.SubClass.g.cs
//HintName: IV.Namespace.OuterClass.SubClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial class OuterClass
{

Expand All @@ -25,7 +27,7 @@ public static ValidationResult Validate(SubClass? target)

var errors = new ValidationResult();

errors.AddRange(global::OuterClass.BaseClass.Validate(t));
errors.AddRange(global::Namespace.OuterClass.BaseClass.Validate(t));

__ValidateValueB(errors, t, t.ValueB);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...IBaseInterface.g.cs
//HintName: IV.Namespace..IBaseInterface.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial interface IBaseInterface
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...IInterface.g.cs
//HintName: IV.Namespace..IInterface.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial interface IInterface
{
Expand All @@ -23,7 +25,7 @@ static ValidationResult IValidationTarget<IInterface>.Validate(IInterface? targe

var errors = new ValidationResult();

errors.AddRange(global::IBaseInterface.Validate(t));
errors.AddRange(global::Namespace.IBaseInterface.Validate(t));

__ValidateValueB(errors, t, t.ValueB);

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV...ValidateClass.g.cs
//HintName: IV.Namespace..ValidateClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;


partial class ValidateClass
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterClass.ValidateClass.g.cs
//HintName: IV.Namespace.OuterClass.ValidateClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial class OuterClass
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterInterface.ValidateClass.g.cs
//HintName: IV.Namespace.OuterInterface.ValidateClass.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial interface OuterInterface
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterRecordStruct.ValidateRecordStruct.g.cs
//HintName: IV.Namespace.OuterRecordStruct.ValidateRecordStruct.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial record struct OuterRecordStruct
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterRecord.ValidateRecord.g.cs
//HintName: IV.Namespace.OuterRecord.ValidateRecord.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial record OuterRecord
{

Expand Down
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
//HintName: IV..OuterStruct.ValidateStruct.g.cs
//HintName: IV.Namespace.OuterStruct.ValidateStruct.g.cs
using System.Collections.Generic;
using Immediate.Validations.Shared;

#nullable enable
#pragma warning disable CS1591

namespace Namespace;

partial struct OuterStruct
{

Expand Down
Loading

0 comments on commit 0422f00

Please sign in to comment.