X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/7085e1abd73d7405804870e2404d38c4d22ea73e..12809e4cf4ce3b5ec8ae5f6086d533a980ed1d6d:/Output.cpp diff --git a/Output.cpp b/Output.cpp index 5244b5b..22e2149 100644 --- a/Output.cpp +++ b/Output.cpp @@ -396,11 +396,6 @@ void CYFor::Output(CYOutput &out, CYFlags flags) const { code_->Single(out, CYRight(flags), CYCompactShort); } -void CYForDeclarations::Output(CYOutput &out, CYFlags flags) const { - out << "var" << ' '; - declarations_->Output(out, CYRight(flags)); -} - void CYForLexical::Output(CYOutput &out, CYFlags flags) const { out << (constant_ ? "const" : "let") << ' '; declaration_->Output(out, CYRight(flags)); @@ -413,6 +408,13 @@ void CYForIn::Output(CYOutput &out, CYFlags flags) const { code_->Single(out, CYRight(flags), CYCompactShort); } +void CYForInitialized::Output(CYOutput &out, CYFlags flags) const { + out << "for" << ' ' << '(' << "var" << ' '; + declaration_->Output(out, CYNoIn | CYNoRightHand); + out << ' ' << "in" << ' ' << *set_ << ')'; + code_->Single(out, CYRight(flags), CYCompactShort); +} + void CYForInComprehension::Output(CYOutput &out) const { out << "for" << ' ' << '('; declaration_->Output(out, CYNoIn | CYNoRightHand);