Zen
A cross-platform functional programming language
|
Wrapper around a stack item. More...
#include <GetXRef.hpp>
Public Member Functions | |
DefStackItem (RefCollector &ctx, const Ast::Scope::Type &type) | |
Default constructor. | |
~DefStackItem () | |
Destructor. | |
void | addDef (const Ast::VariableDef &def) |
Add a variable definition to the context. | |
bool | hasRef (const Ast::VariableRef &vref) const |
Check if a variable reference is present in the context. | |
Private Attributes | |
RefCollector & | _ctx |
The collection context. | |
StackItem * | _stackItem |
The current stack item. |
Wrapper around a stack item.
DefStackItem | ( | RefCollector & | ctx, |
const Ast::Scope::Type & | type | ||
) | [inline] |
Default constructor.
ctx | The collection context |
type | The type of the new scope to push on the stack |
void addDef | ( | const Ast::VariableDef & | def | ) | [inline] |
Add a variable definition to the context.
def | The variable definition to add |
bool hasRef | ( | const Ast::VariableRef & | vref | ) | const [inline] |
Check if a variable reference is present in the context.
vref | The variable reference to check |