Skip to content

Commit

Permalink
Fix computing docid for byref parameters
Browse files Browse the repository at this point in the history
  • Loading branch information
rolfbjarne committed Jun 6, 2024
1 parent 247b7d6 commit dc0e7aa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/bgen/DocumentationManager.cs
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,9 @@ static string GetDocId (Type tr)
name.Append ("0:"); // C# always produces multidimensional arrays with lower bound = 0 and no upper bound.
}
name.Append (']');
} else if (tr.IsByRef) {
name.Append (GetDocId (tr.GetElementType ()!));
name.Append ('@');
} else {
if (tr.IsNested) {
var decl = tr.DeclaringType!;
Expand Down Expand Up @@ -171,9 +174,6 @@ static string GetDocId (Type tr)
name.Append (GetDocId (genericArguments [i]));
}
name.Append ('}');
} else if (tr.IsByRef) {
name.Append (tr.GetElementType ()!.Name);
name.Append ('@');
} else {
name.Append (tr.Name);
}
Expand Down

1 comment on commit dc0e7aa

@vs-mobiletools-engineering-service2

This comment was marked as outdated.

Please sign in to comment.