We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b632051 commit eb53ae7Copy full SHA for eb53ae7
src/Generator/Generators/C/CppTypePrinter.cs
@@ -413,7 +413,12 @@ public override TypePrinterResult VisitParameters(IEnumerable<Parameter> @params
413
public override TypePrinterResult VisitParameter(Parameter param,
414
bool hasName = true)
415
{
416
- var result = param.Type.Visit(this, param.QualifiedType.Qualifiers);
+ Parameter oldParam = Parameter;
417
+ Parameter = param;
418
+
419
+ var result = param.QualifiedType.Visit(this);
420
421
+ Parameter = oldParam;
422
423
string name = param.Name;
424
bool printName = hasName && !string.IsNullOrEmpty(name);
0 commit comments