X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/3ea7eed0e5ab3447a2cc73016594971b507a2344..d5618df7c804163dceb3eb48e5406aeb9de79c96:/Parser.hpp?ds=inline diff --git a/Parser.hpp b/Parser.hpp index d809e77..47a60c0 100644 --- a/Parser.hpp +++ b/Parser.hpp @@ -451,7 +451,7 @@ class CYDriver { void *scanner_; CYState state_; - bool statement_; + bool nobrace_; std::stack in_; const char *data_; @@ -680,13 +680,13 @@ struct CYForInComprehension : virtual void Output(CYOutput &out) const; }; -struct CYForEachInComprehension : +struct CYForOfComprehension : CYComprehension { CYIdentifier *name_; CYExpression *set_; - CYForEachInComprehension(CYIdentifier *name, CYExpression *set) : + CYForOfComprehension(CYIdentifier *name, CYExpression *set) : name_(name), set_(set) { @@ -1268,14 +1268,14 @@ struct CYForIn : virtual void Output(CYOutput &out, CYFlags flags) const; }; -struct CYForEachIn : +struct CYForOf : CYStatement { CYForInInitialiser *initialiser_; CYExpression *set_; CYStatement *code_; - CYForEachIn(CYForInInitialiser *initialiser, CYExpression *set, CYStatement *code) : + CYForOf(CYForInInitialiser *initialiser, CYExpression *set, CYStatement *code) : initialiser_(initialiser), set_(set), code_(code)