IdentContext

version(USE_LIBDPARSE)
class IdentContext {
DParsedModule mod;
Token token;
ImportInfo[] imports;
const(ASTNode)[] stack;
ASTNode declarationNode;
ASTNode baseDeclarationNode;
DeclarationType declarationType;
}

Members

Functions

match
T match(int offset = 0)

casts top object on stack with specified offset to specified type and returns result

match
bool match()

returns true if top object on stack is T1 and second is T2

match
bool match()

returns true if top object on stack is T1 and second is T2

sametok
bool sametok(const Token t)

returns true if context ident token is the same as t

Meta