Determine which in parameters needs to be passed by ref
Called from TypeFunction semantic with the full function type.
This routine must iterate over parameters, and may set STC.ref_
for any parameter which already have STC.in_.
This hook must never set STC.ref_ if the parameter is not STC.in_,
nor should it ever change anything else.
This hook will not be called when -preview=in wasn't passed to the
frontend, hence it needs not care about params.previewIn.
Type of the function to inspect. The type will have its
parameter types semantically resolved, however other attributes
(return type, @safe / nothrow, etc...) must not be used.
Determine which in parameters needs to be passed by ref
Called from TypeFunction semantic with the full function type. This routine must iterate over parameters, and may set STC.ref_ for any parameter which already have STC.in_. This hook must never set STC.ref_ if the parameter is not STC.in_, nor should it ever change anything else.
This hook will not be called when -preview=in wasn't passed to the frontend, hence it needs not care about params.previewIn.