View source code
Display the source code in dmd/dfa/fast/expression.d from which thispage was generated on github.
Report a bug
If you spot a problem with this page, click here to create aGitHub 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 usinglocal clone.

Function dmd.dfa.fast.expression.ExpressionWalker.seeAssign

Handles variable assignment (e.g., x = y).

dmd.dfa.fast.structure.DFALatticeRef seeAssign(
  DFAVar* assignTo,
  bool construct,
  dmd.dfa.fast.structure.DFALatticeRef lr,
  ref Loc loc,
  bool isBlit = false,
  int alteredState = 0
);

This function updates the assignTo variable in the current scope to reflect the new state derived from lr (the right-hand side).

Parameters

NameDescription
assignTo The variable being written to.
construct True if this is an initialization (e.g., int x = 5;), false if reassignment.
lr The lattice state of the value being assigned.
loc Source file location of the assignment.
isBlit True if the assignment is a bitwise copy (blit).
alteredState An integer representing a specific state alteration or flag.

Authors

Richard (Rikki) Andrew Cattermole

License

Boost License 1.0