Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 6 additions & 14 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

namespace AasCore.Aas3_0
{
Expand Down Expand Up @@ -1268,8 +1268,7 @@ Aas.IProperty that
that.EmbeddedDataSpecifications.Count);
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 @@ -2457,17 +2456,10 @@ public override Aas.IClass TransformEmbeddedDataSpecification(
Aas.IEmbeddedDataSpecification that
)
{
IReference? theDataSpecification = null;
if (that.DataSpecification != null)
{
theDataSpecification = Deep(that.DataSpecification);
}
IDataSpecificationContent? theDataSpecificationContent = null;
if (that.DataSpecificationContent != null)
{
theDataSpecificationContent = Deep(that.DataSpecificationContent);
}
return new Aas.EmbeddedDataSpecification(theDataSpecification, theDataSpecificationContent);
return new Aas.EmbeddedDataSpecification(
Deep(that.DataSpecification),
Deep(that.DataSpecificationContent)
);
}

public override Aas.IClass TransformLevelType(
Expand Down
Loading