Skip to content

Commit

Permalink
Address review suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
poorna2152 committed Nov 5, 2024
1 parent a2e04c0 commit c73721a
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,10 @@ private List<ObjectTypeSymbol> getObjectTypeMembers(BallerinaUnionTypeSymbol uni
ArrayList<ObjectTypeSymbol> objectTypes = new ArrayList<>();
for (TypeSymbol member : unionTypeSymbol.memberTypeDescriptors()) {
member = getRawType(member);
if (member.typeKind() == TypeDescKind.OBJECT) {
TypeDescKind typeDescKind = member.typeKind();
if (typeDescKind == TypeDescKind.OBJECT) {
objectTypes.add((ObjectTypeSymbol) member);
} else if (member.typeKind() == TypeDescKind.UNION) {
} else if (typeDescKind == TypeDescKind.UNION) {
objectTypes.addAll(getObjectTypeMembers((BallerinaUnionTypeSymbol) member));
}
}
Expand Down

0 comments on commit c73721a

Please sign in to comment.