IfCondition

In an if (or while) condition this represents:

if (auto x = readln)
    ^^^^^^^^^^^^^^^

if (a == b || c == d)
    ^^^^^^^^^^^^^^^^

Members

Functions

accept
void accept(ASTVisitor visitor)
Undocumented in source. Be warned that the author may not have intended to support it.

Mixins

__anonymous
mixin OpEquals
Undocumented in source.

Variables

expression
Expression expression;

In an assignment-condition, this is the part after the equals sign. Otherwise this is any other expression that is evaluated to be a boolean. (e.g. UnaryExpression, AndAndExpression, CmpExpression, etc.)

identifier
Token identifier;

In an assignment-condition, in if (auto x = ...) this is the x

scope_
bool scope_;

In an assignment-condition, this is true if scope is used to construct the variable.

type
Type type;

In an assignment-condition, this is the optional explicit type

typeCtors
IdType[] typeCtors;

In an assignment-condition, these are the optional type constructors

Mixed In Members

From mixin OpEquals

opEquals
bool opEquals(Object other)
Undocumented in source. Be warned that the author may not have intended to support it.

Inherited Members

From BaseNode

tokens
const(Token)[] tokens;

List of tokens consumed by this AST node

accept
void accept(ASTVisitor visitor)
Undocumented in source.

Meta