View source code
Display the source code in dmd/typesem.d from which this page was generated on github.
Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page. Requires a signed-in GitHub account. This works well for small changes. If you'd like to make larger changes you may want to consider using local clone.

Function dmd.typesem.parameterStorageClass

Take the specified storage class for p, and use the function signature to infer whether STC.scope_ and STC.return_ should be OR'd in. (This will not affect the name mangling.)

ulong parameterStorageClass (
  TypeFunction tf,
  Type tthis,
  Parameter p,
  dmd.root.array.Array!(dmd.declaration.VarDeclaration)* outerVars = null,
  bool indirect = false
);

Parameters

NameDescription
tf TypeFunction to use to get the signature from
tthis type of this parameter, null if none
p parameter to this function
outerVars context variables p could escape into, if any
indirect is this for an indirect or virtual function call?

Returns

storage class with STC.scope_ or STC.return_ OR'd in

Authors

Walter Bright

License

Boost License 1.0