Skip to content

Commit

Permalink
Merge pull request #43397 from NipunaMadhushan/fix-string-array-issue
Browse files Browse the repository at this point in the history
[2201.10.x] Fix array dimension in API docs
  • Loading branch information
NipunaMadhushan authored Sep 18, 2024
2 parents baf41db + 1ac2a1b commit 5382e89
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,7 @@ public static Type fromNode(Node node, SemanticModel semanticModel, Module modul
} else if (node instanceof ArrayTypeDescriptorNode) {
ArrayTypeDescriptorNode arrayTypeDescriptorNode = (ArrayTypeDescriptorNode) node;
type.isArrayType = true;
type.arrayDimensions = 1;
type.arrayDimensions = arrayTypeDescriptorNode.dimensions().size();
type.elementType = fromNode(arrayTypeDescriptorNode.memberTypeDesc(), semanticModel, module);
} else if (node instanceof OptionalTypeDescriptorNode) {
OptionalTypeDescriptorNode optionalTypeDescriptorNode = (OptionalTypeDescriptorNode) node;
Expand Down

0 comments on commit 5382e89

Please sign in to comment.