CastExp

Possible to cast to one type while painting to another type

Constructors

this
this(Loc loc, Expression e, Type t)
Undocumented in source.
this
this(Loc loc, Expression e, ubyte mod)
Undocumented in source.

Members

Functions

accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
semantic
Expression semantic(Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
syntaxCopy
Expression syntaxCopy()
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

mod
ubyte mod;
Undocumented in source.
to
Type to;
Undocumented in source.

Inherited Members

From UnaExp

e1
Expression e1;
Undocumented in source.
att1
Type att1;
Undocumented in source.
syntaxCopy
Expression syntaxCopy()
Undocumented in source. Be warned that the author may not have intended to support it.
semantic
Expression semantic(Scope* sc)
Undocumented in source.
unaSemantic
Expression unaSemantic(Scope* sc)

Helper function for easy error propagation. If error occurs, returns ErrorExp. Otherwise returns NULL.

setNoderefOperand
void setNoderefOperand()

Mark the operand as will never be dereferenced, which is useful info for @safe checks. Do before semantic() on operands rewrites them.

resolveLoc
Expression resolveLoc(Loc loc, Scope* sc)
Undocumented in source. Be warned that the author may not have intended to support it.
accept
void accept(Visitor v)
Undocumented in source. Be warned that the author may not have intended to support it.
printAST
void printAST(int indent)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta