Skip to content

Commit 91c8849

Browse files
committed
fix(opcua): should compile now again
1 parent ee4875f commit 91c8849

234 files changed

Lines changed: 14729 additions & 2413 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

code-generation/language-go/src/main/resources/templates/go/complex-type-template.go.ftlh

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -747,10 +747,7 @@ func (m *_${type.name}) GetLengthInBits(ctx context.Context) uint16 {
747747
<#if arrayField.isCountArrayField()>
748748
for _curItem, element := range m.${arrayField.name?cap_first} {
749749
arrayCtx := utils.CreateArrayContext(ctx, len(m.${arrayField.name?cap_first}), _curItem)
750-
<#-- TODO: find a way to do this nicer -->
751-
_ = arrayCtx
752-
_ = _curItem
753-
lengthInBits += element.(interface{GetLengthInBits(context.Context) uint16}).GetLengthInBits(arrayCtx)
750+
lengthInBits += element.GetLengthInBits(arrayCtx)
754751
<#else>
755752
for _, element := range m.${arrayField.name?cap_first} {
756753
lengthInBits += element.GetLengthInBits(ctx)
@@ -922,10 +919,7 @@ func (m *_${type.name}) getLengthInBits(ctx context.Context) uint16 {
922919
<#if arrayField.isCountArrayField()>
923920
for _curItem, element := range m.${arrayField.name?cap_first} {
924921
arrayCtx := utils.CreateArrayContext(ctx, len(m.${arrayField.name?cap_first}), _curItem)
925-
<#-- TODO: find a way to do this nicer -->
926-
_ = arrayCtx
927-
_ = _curItem
928-
lengthInBits += element.(interface{GetLengthInBits(context.Context) uint16}).GetLengthInBits(arrayCtx)
922+
lengthInBits += element.GetLengthInBits(arrayCtx)
929923
<#else>
930924
for _, element := range m.${arrayField.name?cap_first} {
931925
lengthInBits += element.GetLengthInBits(ctx)

plc4go/protocols/ads/discovery/readwrite/model/AdsDiscovery.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plc4go/protocols/ads/readwrite/model/AdsDataTypeTableChildEntry.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plc4go/protocols/ads/readwrite/model/AdsDataTypeTableEntry.go

Lines changed: 2 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plc4go/protocols/ads/readwrite/model/AdsDeviceNotificationRequest.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plc4go/protocols/ads/readwrite/model/AdsReadWriteRequest.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plc4go/protocols/ads/readwrite/model/AdsStampHeader.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plc4go/protocols/bacnetip/readwrite/model/BACnetServiceAckAtomicReadFileRecord.go

Lines changed: 1 addition & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)