Entity

Represents a slice of the original code.

Constructors

this
this(string head, Entity[] children, string tail)
Undocumented in source.

Members

Functions

dup
Entity dup()
Undocumented in source. Be warned that the author may not have intended to support it.
kill
void kill()
Undocumented in source. Be warned that the author may not have intended to support it.
toString
string toString()
Undocumented in source. Be warned that the author may not have intended to support it.

Properties

comment
string comment [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.
isFile
bool isFile [@property getter]
Undocumented in source. Be warned that the author may not have intended to support it.

Variables

allDependents
const(Address)*[] allDependents;

Computed External dependents of this and child nodes

children
Entity[] children;

This node's children nodes, e.g. the statements of the statement block.

clean
bool clean;

Computed fields are up-to-date

contents
string contents;
Undocumented in source.
dead
bool dead;

Tombstone or redirect

deadContents
string deadContents;

Computed For --white-out - all of this node's contents, with non-whitespace replaced by whitespace

deadHash
EntityHash deadHash;

Computed Hash of deadContents

dependents
EntityRef[] dependents;

If this entity is removed, so should all these entities.

descendants
size_t descendants;

Computed For progress display

filename
string filename;
Undocumented in source.
hash
EntityHash hash;

Computed Hashed value of this entity's content (as if it were saved to disk).

head
string head;

This node's "head", e.g. "{" for a statement block.

id
int id;

For diagnostics

isPair
bool isPair;

Internal hint for --dump output

noRemove
bool noRemove;

Don't try removing this entity (children OK)

redirect
Address* redirect;

If moved, this is where this entity is now

tail
string tail;

This node's "tail", e.g. "}" for a statement block.

Meta