X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/bfd79faeaedfb0028661b7ad25a496def9d1f454..8b77acf10ecd1824cfd522f090e2288acead7384:/Syntax.hpp diff --git a/Syntax.hpp b/Syntax.hpp index db2b816..c091cec 100644 --- a/Syntax.hpp +++ b/Syntax.hpp @@ -1021,8 +1021,8 @@ struct CYAssignment : { } - void SetLeft(CYTarget *lhs) { - lhs_ = lhs; + void SetRight(CYExpression *rhs) { + rhs_ = rhs; } virtual const char *Operator() const = 0; @@ -1328,6 +1328,26 @@ struct CYForIn : virtual void Output(CYOutput &out, CYFlags flags) const; }; +struct CYForInitialized : + CYStatement +{ + CYDeclaration *declaration_; + CYExpression *set_; + CYStatement *code_; + + CYForInitialized(CYDeclaration *declaration, CYExpression *set, CYStatement *code) : + declaration_(declaration), + set_(set), + code_(code) + { + } + + CYCompact(Long) + + virtual CYStatement *Replace(CYContext &context); + virtual void Output(CYOutput &out, CYFlags flags) const; +}; + struct CYForOf : CYStatement {