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));
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);