Branch

The code for one of the branches resulting from a condition.

It can be the branches in a if-else statement or a case branch for languages such as C/C++.

The important aspect is that the branch is not an expression. It can't be evaluated to a value of a type.

@safe
class Branch : Node {}

Members

Variables

inside
Block inside;
Undocumented in source.

Inherited Members

From Node

kind
Kind kind()
Undocumented in source.
id
ulong id()
Undocumented in source.
children
Node[] children;
Undocumented in source.
blacklist
bool blacklist;

If the node is blacklisted from being mutated. This is for example when the node covers a C macro.

schemaBlacklist
bool schemaBlacklist;

If the node should not be part of mutant schemata because it is highly likely to introduce compilation errors. It is for example likely when operators are overloaded.

covBlacklist
bool covBlacklist;

Block nodes that have a high probability of failing from being coverage instrumented.

opEquals
bool opEquals(Kind k)
Undocumented in source. Be warned that the author may not have intended to support it.
opEquals
bool opEquals(Object o)
Undocumented in source. Be warned that the author may not have intended to support it.
toHash
size_t toHash()
Undocumented in source. Be warned that the author may not have intended to support it.

Meta