Skip to content

Commit

Permalink
Revert "Prevent top level node reordering for typedef annotations"
Browse files Browse the repository at this point in the history
This reverts commit 66a8c8e.
  • Loading branch information
rdulmina committed Dec 3, 2024
1 parent 66a8c8e commit e4df726
Showing 1 changed file with 3 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -535,10 +535,9 @@ public void visit(BLangTypeDefinition typeDefinition) {
symbol = symbol.type.tsymbol;
}
this.currDependentSymbolDeque.push(symbol);
// 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);
// }
for (BLangAnnotationAttachment bLangAnnotationAttachment : typeDefinition.annAttachments) {
analyzeNode(bLangAnnotationAttachment.expr, env);
}
analyzeNode(typeDefinition.typeNode, env);
this.currDependentSymbolDeque.pop();
}
Expand Down

0 comments on commit e4df726

Please sign in to comment.