Skip to content

Commit

Permalink
fix all dotnet formatting issues that stop or check-style script from…
Browse files Browse the repository at this point in the history
… finishing (eclipse-aaspe#261)

Used the cls tool to fix the formatting issues. Not other changes applied
  • Loading branch information
Freezor authored Jun 6, 2024
1 parent d8889fa commit 607182f
Show file tree
Hide file tree
Showing 24 changed files with 1,565 additions and 996 deletions.
26 changes: 14 additions & 12 deletions src/AasCore.Aas3_0/copying.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
* Do NOT edit or append.
*/

using System.Collections.Generic; // can't alias
using Aas = AasCore.Aas3_0; // renamed
using System.Collections.Generic; // can't alias
using Aas = AasCore.Aas3_0; // renamed

namespace AasCore.Aas3_0
{
Expand All @@ -31,7 +31,7 @@ public static class Copying
/// <typeparam name="T">type to cast the result to</typeparam>
public static T Shallow<T>(T that) where T : Aas.IClass
{
return (T)ShallowCopierInstance.Transform(that);
return (T) ShallowCopierInstance.Transform(that);
}

/// <summary>
Expand All @@ -41,7 +41,7 @@ public static T Shallow<T>(T that) where T : Aas.IClass
/// <typeparam name="T">type to cast the result to</typeparam>
public static T Deep<T>(T that) where T : Aas.IClass
{
return (T)DeepCopierInstance.Transform(that);
return (T) DeepCopierInstance.Transform(that);
}

/// <summary>Dispatch the making of shallow copies.</summary>
Expand Down Expand Up @@ -572,14 +572,14 @@ Aas.IDataSpecificationIec61360 that
that.Value,
that.LevelType);
}
} // internal class ShallowCopier
} // internal class ShallowCopier

/// <summary>Dispatch the making of deep copies.</summary>
internal class DeepCopier : Visitation.AbstractTransformer<Aas.IClass>
{
public override Aas.IClass TransformExtension(
Aas.IExtension that
)
Aas.IExtension that
)
{
List<IReference>? theSupplementalSemanticIds = null;
if (that.SupplementalSemanticIds != null)
Expand Down Expand Up @@ -1269,7 +1269,7 @@ Aas.IProperty that
foreach (var item in that.EmbeddedDataSpecifications)
{
if (item.DataSpecification != null && item.DataSpecificationContent != null)
theEmbeddedDataSpecifications.Add(Deep(item));
theEmbeddedDataSpecifications.Add(Deep(item));
}
}

Expand Down Expand Up @@ -2462,11 +2462,13 @@ Aas.IEmbeddedDataSpecification that
{
theDataSpecification = Deep(that.DataSpecification);
}

IDataSpecificationContent? theDataSpecificationContent = null;
if (that.DataSpecificationContent != null)
{
theDataSpecificationContent = Deep(that.DataSpecificationContent);
}

return new Aas.EmbeddedDataSpecification(theDataSpecification, theDataSpecificationContent);
}

Expand Down Expand Up @@ -2592,11 +2594,11 @@ Aas.IDataSpecificationIec61360 that
: null
);
}
} // internal class DeepCopier
} // public static class Copying
} // namespace AasCore.Aas3_0
} // internal class DeepCopier
} // public static class Copying
} // namespace AasCore.Aas3_0

/*
* This code has been automatically generated by aas-core-codegen.
* Do NOT edit or append.
*/
*/
263 changes: 154 additions & 109 deletions src/AasSecurity/SecurityService.cs

Large diffs are not rendered by default.

Loading

0 comments on commit 607182f

Please sign in to comment.