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.walkCondition
Walks an expression that is used for a condition i.e. and if statement. Tells you if the expression for the gate variable, will be exact, vs negated state. Applying by test is for when (expr) > 0, use 0 for unknown, 1 is <= 0 and 2 is > 0
Returns
0 for unknown negation, 1 or has been negated from gate variable or 2 if it hasn't been.
Authors
License
Copyright © 1999-2026 by the D Language Foundation | Page generated by ddox.