From 2b5f57f43bfd707025d103d8173d23cdadd6cd78 Mon Sep 17 00:00:00 2001 From: jjergus Date: Fri, 13 Sep 2019 13:06:29 -0700 Subject: [PATCH] support inout paremeters --- src/PageSections/_Private/stringify_parameter.hack | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/PageSections/_Private/stringify_parameter.hack b/src/PageSections/_Private/stringify_parameter.hack index cb482b4..dbf53e9 100644 --- a/src/PageSections/_Private/stringify_parameter.hack +++ b/src/PageSections/_Private/stringify_parameter.hack @@ -21,6 +21,10 @@ function stringify_parameter( ): string { $s = ''; + if ($parameter->isInOut()) { + $s .= 'inout '; + } + $types = $docs['types'] ?? vec[]; if ($types) { $s .= Str\join($types, '|').' ';