Lines Matching refs:Variable
229 inline bool canDeclareVariable (const Variable* variable)
231 return variable->getStorage() == Variable::STORAGE_LOCAL;
236 const vector<Variable*>& liveVars = varMgr.getLiveVariables();
237 for (vector<Variable*>::const_iterator i = liveVars.begin(); i != liveVars.end(); i++)
247 DeclarationStatement::DeclarationStatement (GeneratorState& state, Variable* variable)
251 if (variable == DE_NULL)
256 const vector<Variable*>& liveVars = state.getVariableManager().getLiveVariables();
257 vector<Variable*> candidates;
259 for (vector<Variable*>::const_iterator i = liveVars.begin(); i != liveVars.end(); i++)
265 variable = state.getRandom().choose<Variable*>(candidates.begin(), candidates.end());
268 DE_ASSERT(variable);
269 m_variable = variable;
271 const ValueEntry* value = state.getVariableManager().getValue(variable);
277 case Variable::STORAGE_CONST:
282 case Variable::STORAGE_LOCAL:
301 state.getVariableManager().declareVariable(variable);
303 bool isConst = m_variable->getStorage() == Variable::STORAGE_CONST;
314 state.getVariableManager().declareVariable(variable);
536 AssignStatement::AssignStatement (const Variable* variable, Expression* value)
537 : m_variable (variable)
542 AssignStatement::AssignStatement (GeneratorState& state, const Variable* variable, ConstValueRangeAccess valueRange)
543 : m_variable (variable)