Skip to content

Commit e00b75f

Browse files
Fix missing nullable parameter (#212)
1 parent ef84a94 commit e00b75f

File tree

10 files changed

+13
-13
lines changed

10 files changed

+13
-13
lines changed

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPoco/IFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public partial interface IFeature : IType
271271
/// <returns>
272272
/// The expected <see cref="FeatureDirectionKind" />
273273
/// </returns>
274-
FeatureDirectionKind DirectionFor(IType type) => this.ComputeDirectionForOperation(type);
274+
FeatureDirectionKind? DirectionFor(IType type) => this.ComputeDirectionForOperation(type);
275275

276276
/// <summary>
277277
/// If a Feature has no declaredShortName or declaredName, then its effective shortName is given by the

SysML2.NET.CodeGenerator.Tests/Expected/UML/Core/AutoGenPocoExtend/FeatureExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ internal static List<IType> ComputeType(this IFeature featureSubject)
288288
/// The expected <see cref="FeatureDirectionKind" />
289289
/// </returns>
290290
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
291-
internal static FeatureDirectionKind ComputeDirectionForOperation(this IFeature featureSubject, IType type)
291+
internal static FeatureDirectionKind? ComputeDirectionForOperation(this IFeature featureSubject, IType type)
292292
{
293293
throw new NotSupportedException("Create a GitHub issue when this method is required");
294294
}

SysML2.NET.CodeGenerator.Tests/SysML2.NET.CodeGenerator.Tests.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1163,6 +1163,7 @@
11631163
<PackageReference Include="Serilog" Version="4.3.1" />
11641164
<PackageReference Include="Serilog.Extensions.Logging" Version="10.0.0" />
11651165
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1" />
1166+
<PackageReference Include="uml4net.Reporting" Version="8.0.1" />
11661167
</ItemGroup>
11671168

11681169
<ItemGroup>

SysML2.NET.CodeGenerator/SysML2.NET.CodeGenerator.csproj

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,8 @@
2020
</PropertyGroup>
2121
<ItemGroup>
2222
<PackageReference Include="Microsoft.CodeAnalysis" Version="5.3.0" />
23-
<PackageReference Include="uml4net.HandleBars" Version="8.0.0" />
24-
<PackageReference Include="uml4net.Reporting" Version="8.0.0" />
25-
<PackageReference Include="uml4net.xmi" Version="8.0.0" />
23+
<PackageReference Include="uml4net.HandleBars" Version="8.0.1" />
24+
<PackageReference Include="uml4net.xmi.Extensions.EnterpriseArchitect" Version="8.0.1" />
2625
</ItemGroup>
2726
<ItemGroup>
2827
<None Update="Resources\HtmlDocs\css\bootstrap-theme.css">

SysML2.NET/Core/AutoGenPoco/IFeature.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -271,7 +271,7 @@ public partial interface IFeature : IType
271271
/// <returns>
272272
/// The expected <see cref="FeatureDirectionKind" />
273273
/// </returns>
274-
FeatureDirectionKind DirectionFor(IType type) => this.ComputeDirectionForOperation(type);
274+
FeatureDirectionKind? DirectionFor(IType type) => this.ComputeDirectionForOperation(type);
275275

276276
/// <summary>
277277
/// If a Feature has no declaredShortName or declaredName, then its effective shortName is given by the

SysML2.NET/Core/AutoGenPoco/INamespace.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ public partial interface INamespace : IElement
171171
/// <returns>
172172
/// The expected collection of <see cref="IMembership" />
173173
/// </returns>
174-
List<IMembership> MembershipsOfVisibility(VisibilityKind visibility, List<INamespace> excluded) => this.ComputeMembershipsOfVisibilityOperation(visibility, excluded);
174+
List<IMembership> MembershipsOfVisibility(VisibilityKind? visibility, List<INamespace> excluded) => this.ComputeMembershipsOfVisibilityOperation(visibility, excluded);
175175

176176
/// <summary>
177177
/// Resolve the given qualified name to the named Membership (if any), starting with this Namespace as

SysML2.NET/Core/AutoGenPoco/IType.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -359,7 +359,7 @@ public partial interface IType : INamespace
359359
/// <returns>
360360
/// The expected <see cref="FeatureDirectionKind" />
361361
/// </returns>
362-
FeatureDirectionKind DirectionOf(IFeature feature) => this.ComputeDirectionOfOperation(feature);
362+
FeatureDirectionKind? DirectionOf(IFeature feature) => this.ComputeDirectionOfOperation(feature);
363363

364364
/// <summary>
365365
/// Return the direction of the given feature relative to this Type, excluding a given set of Types from
@@ -374,7 +374,7 @@ public partial interface IType : INamespace
374374
/// <returns>
375375
/// The expected <see cref="FeatureDirectionKind" />
376376
/// </returns>
377-
FeatureDirectionKind DirectionOfExcluding(IFeature feature, List<IType> excluded) => this.ComputeDirectionOfExcludingOperation(feature, excluded);
377+
FeatureDirectionKind? DirectionOfExcluding(IFeature feature, List<IType> excluded) => this.ComputeDirectionOfExcludingOperation(feature, excluded);
378378

379379
/// <summary>
380380
/// If this Type is conjugated, then return just the originalType of the Conjugation. Otherwise, return

SysML2.NET/Extend/FeatureExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -288,7 +288,7 @@ internal static List<IType> ComputeType(this IFeature featureSubject)
288288
/// The expected <see cref="FeatureDirectionKind" />
289289
/// </returns>
290290
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
291-
internal static FeatureDirectionKind ComputeDirectionForOperation(this IFeature featureSubject, IType type)
291+
internal static FeatureDirectionKind? ComputeDirectionForOperation(this IFeature featureSubject, IType type)
292292
{
293293
throw new NotSupportedException("Create a GitHub issue when this method is required");
294294
}

SysML2.NET/Extend/NamespaceExtensions.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ internal static List<IMembership> ComputeImportedMembershipsOperation(this IName
229229
/// The expected collection of <see cref="IMembership" />
230230
/// </returns>
231231
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
232-
internal static List<IMembership> ComputeMembershipsOfVisibilityOperation(this INamespace namespaceSubject, VisibilityKind visibility, List<INamespace> excluded)
232+
internal static List<IMembership> ComputeMembershipsOfVisibilityOperation(this INamespace namespaceSubject, VisibilityKind? visibility, List<INamespace> excluded)
233233
{
234234
throw new NotSupportedException("Create a GitHub issue when this method is required");
235235
}

SysML2.NET/Extend/TypeExtensions.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -526,7 +526,7 @@ internal static List<IFeature> ComputeAllRedefinedFeaturesOfOperation(this IType
526526
/// The expected <see cref="FeatureDirectionKind" />
527527
/// </returns>
528528
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
529-
internal static FeatureDirectionKind ComputeDirectionOfOperation(this IType typeSubject, IFeature feature)
529+
internal static FeatureDirectionKind? ComputeDirectionOfOperation(this IType typeSubject, IFeature feature)
530530
{
531531
throw new NotSupportedException("Create a GitHub issue when this method is required");
532532
}
@@ -548,7 +548,7 @@ internal static FeatureDirectionKind ComputeDirectionOfOperation(this IType type
548548
/// The expected <see cref="FeatureDirectionKind" />
549549
/// </returns>
550550
[System.Diagnostics.CodeAnalysis.ExcludeFromCodeCoverage]
551-
internal static FeatureDirectionKind ComputeDirectionOfExcludingOperation(this IType typeSubject, IFeature feature, List<IType> excluded)
551+
internal static FeatureDirectionKind? ComputeDirectionOfExcludingOperation(this IType typeSubject, IFeature feature, List<IType> excluded)
552552
{
553553
throw new NotSupportedException("Create a GitHub issue when this method is required");
554554
}

0 commit comments

Comments
 (0)