Skip to content

Commit

Permalink
fix: for mapping of struct in orchestration full name not appearing
Browse files Browse the repository at this point in the history
  • Loading branch information
lydiagarms committed Aug 1, 2024
1 parent 4bcae06 commit eca8c2e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/transformers/visitors/toOrchestrationVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1454,7 +1454,7 @@ const visitor = {
if (!lhs) lhs = node.expression.subExpression;
indicator = scope.getReferencedIndicator(lhs, true);

const name = indicator.isMapping
let name = indicator.isMapping
? indicator.name
.replace('[', '_')
.replace(']', '')
Expand Down Expand Up @@ -1540,6 +1540,9 @@ const visitor = {
return;
}
}
if (indicator.isMapping && indicator.isStruct){
name = `${name}_${node.expression.leftHandSide.memberName}`;
}
// if its an incrementation, we need to know it happens but not copy it over
if (node.expression.isIncremented && indicator.isPartitioned) {
const newNode = buildNode(node.nodeType, {
Expand Down

0 comments on commit eca8c2e

Please sign in to comment.