bool referenced = false;
};
- typedef std::map<Statement *, VariableInfo> BlockVariableMap;
+ typedef std::map<VariableDeclaration *, VariableInfo> BlockVariableMap;
Stage *stage = 0;
BlockVariableMap variables;
r_replacement_expr = 0;
}
-void VariableResolver::check_assignment_target(Statement *declaration)
+void VariableResolver::check_assignment_target(VariableDeclaration *declaration)
{
if(record_target)
{
private:
virtual void enter(Block &);
virtual void visit(RefPtr<Expression> &);
- void check_assignment_target(Statement *);
+ void check_assignment_target(VariableDeclaration *);
virtual void visit(VariableReference &);
virtual void visit(MemberAccess &);
virtual void visit(Swizzle &);
ARRAY = 0xC0
};
- Statement *declaration = 0;
+ VariableDeclaration *declaration = 0;
std::uint8_t chain_len = 0;
std::uint8_t chain[7] = { };
- Target(Statement *d = 0): declaration(d) { }
+ Target(VariableDeclaration *d = 0): declaration(d) { }
bool operator<(const Target &) const;
};