Skip to content

Commit

Permalink
Prevent top level node reordering for typedef annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
rdulmina committed Dec 3, 2024
1 parent 77725a3 commit 66a8c8e
Showing 1 changed file with 4 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,9 +535,10 @@ public void visit(BLangTypeDefinition typeDefinition) {
symbol = symbol.type.tsymbol;
}
this.currDependentSymbolDeque.push(symbol);
for (BLangAnnotationAttachment bLangAnnotationAttachment : typeDefinition.annAttachments) {
analyzeNode(bLangAnnotationAttachment.expr, env);
}
// Todo: need to uncomment this line when we handle annotations inline with the type definition. issue #41946
// for (BLangAnnotationAttachment bLangAnnotationAttachment : typeDefinition.annAttachments) {
// analyzeNode(bLangAnnotationAttachment.expr, env);
// }
analyzeNode(typeDefinition.typeNode, env);
this.currDependentSymbolDeque.pop();
}
Expand Down

0 comments on commit 66a8c8e

Please sign in to comment.