Zen
A cross-platform functional programming language

RefCollector::DefStackItem Struct Reference

Wrapper around a stack item. More...

#include <GetXRef.hpp>

List of all members.

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.

Detailed Description

Wrapper around a stack item.


Constructor & Destructor Documentation

DefStackItem ( RefCollector ctx,
const Ast::Scope::Type type 
) [inline]

Default constructor.

Parameters:
ctxThe collection context
typeThe type of the new scope to push on the stack

Member Function Documentation

void addDef ( const Ast::VariableDef def) [inline]

Add a variable definition to the context.

Parameters:
defThe variable definition to add
bool hasRef ( const Ast::VariableRef vref) const [inline]

Check if a variable reference is present in the context.

Parameters:
vrefThe variable reference to check
Returns:
True if the variable reference is present, else false

The documentation for this struct was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Defines