Skip to content

Commit

Permalink
Idnode insertion corrected
Browse files Browse the repository at this point in the history
  • Loading branch information
kKahina committed Aug 9, 2024
1 parent 757f3ba commit 6547e7f
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions src/transformers/visitors/toOrchestrationVisitor.ts
Original file line number Diff line number Diff line change
Expand Up @@ -122,15 +122,15 @@ const addPublicInput = (path: NodePath, state: any, IDnode: any) => {
// return;
// }

if (IDnode) {
console.log('IDnode before assignment:', IDnode);
IDnode.name = name; // Safe to assign name if IDnode is not null
console.log('IDnode after assignment:', IDnode);
} else {
console.warn('IDnode is null or undefined, unable to set name.');
// Optionally, handle the case where IDnode is null if needed
return;
}
// if (IDnode) {
// console.log('IDnode before assignment:', IDnode);
// IDnode.name = name; // Safe to assign name if IDnode is not null
// console.log('IDnode after assignment:', IDnode);
// } else {
// console.warn('IDnode is null or undefined, unable to set name.');
// // Optionally, handle the case where IDnode is null if needed
// return;
// }
// console.log('Node Path:', path);
// console.log('Referenced Indicator:', path.scope.getReferencedIndicator(node, true));

Expand Down

0 comments on commit 6547e7f

Please sign in to comment.