Skip to content

Commit

Permalink
Merge pull request #43398 from NipunaMadhushan/fix-string-array-issue…
Browse files Browse the repository at this point in the history
…-master

Fix array dimension in API docs
  • Loading branch information
NipunaMadhushan authored Sep 18, 2024
2 parents 3dadeb5 + a4c68cf commit 8100e00
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ public static Type fromNode(Node node, SemanticModel semanticModel, Module modul
type.category = "builtin";
} else if (node instanceof ArrayTypeDescriptorNode arrayTypeDescriptorNode) {
type.isArrayType = true;
type.arrayDimensions = 1;
type.arrayDimensions = arrayTypeDescriptorNode.dimensions().size();
type.elementType = fromNode(arrayTypeDescriptorNode.memberTypeDesc(), semanticModel, module);
} else if (node instanceof OptionalTypeDescriptorNode optionalTypeDescriptorNode) {
type = fromNode(optionalTypeDescriptorNode.typeDescriptor(), semanticModel, module);
Expand Down

0 comments on commit 8100e00

Please sign in to comment.