Skip to content

Commit

Permalink
C#: Add support for ref readonly parameters in the stub generator.
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelnebel committed Dec 13, 2023
1 parent 7006d00 commit d838806
Showing 1 changed file with 4 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -534,6 +534,9 @@ private void StubParameters(ICollection<IParameterSymbol> parameters)
case RefKind.In:
stubWriter.Write("in ");
break;
case RefKind.RefReadOnlyParameter:
stubWriter.Write("ref readonly ");
break;
default:
stubWriter.Write($"/* TODO: {parameter.RefKind} */");
break;
Expand Down Expand Up @@ -884,4 +887,4 @@ public override void VisitProperty(IPropertySymbol symbol)
if (explicitInterfaceImplementations.Length == 0)
StubProperty(symbol, null);
}
}
}

0 comments on commit d838806

Please sign in to comment.