Skip to content

Commit

Permalink
Fix for DocModelTest
Browse files Browse the repository at this point in the history
  • Loading branch information
ushirask committed Jul 14, 2022
1 parent d75cdaa commit 5904b41
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@
import io.ballerina.compiler.syntax.tree.FunctionTypeDescriptorNode;
import io.ballerina.compiler.syntax.tree.IntersectionTypeDescriptorNode;
import io.ballerina.compiler.syntax.tree.MapTypeDescriptorNode;
import io.ballerina.compiler.syntax.tree.MemberTypeDescriptorNode;
import io.ballerina.compiler.syntax.tree.NilTypeDescriptorNode;
import io.ballerina.compiler.syntax.tree.Node;
import io.ballerina.compiler.syntax.tree.ObjectTypeDescriptorNode;
Expand Down Expand Up @@ -311,6 +312,9 @@ public static Type fromNode(Node node, SemanticModel semanticModel) {
type.memberTypes.addAll(typeDescriptor.memberTypeDesc().stream().map(memberType ->
Type.fromNode(memberType, semanticModel)).collect(Collectors.toList()));
type.isTuple = true;
} else if (node instanceof MemberTypeDescriptorNode){
MemberTypeDescriptorNode member = (MemberTypeDescriptorNode) node;
type = fromNode(member.typeDescriptor(), semanticModel);
} else if (node instanceof RecordRestDescriptorNode) {
RecordRestDescriptorNode recordRestDescriptorNode = (RecordRestDescriptorNode) node;
type.isRestParam = true;
Expand Down

0 comments on commit 5904b41

Please sign in to comment.