} }
-void CYComment::Output(CYOutput &out, CYFlags flags) const {
- out << '\r';
- out(value_);
- out.right_ = true;
- out << '\r';
-}
-
void CYCompound::Output(CYOutput &out, CYFlags flags) const {
if (next_ == NULL)
expression_->Output(out, flags);
out << "while" << ' ' << '(' << *test_ << ')';
}
-void CYElement::Output(CYOutput &out) const {
+void CYElementSpread::Output(CYOutput &out) const {
+ out << "..." << value_;
+}
+
+void CYElementValue::Output(CYOutput &out) const {
if (value_ != NULL)
value_->Output(out, CYAssign::Precedence_, CYNoFlags);
if (next_ != NULL || value_ == NULL) {
out << ',';
- if (next_ != NULL && next_->value_ != NULL)
+ if (next_ != NULL && !next_->Elision())
out << ' ';
}
if (next_ != NULL)
Multiple(out);
}
+void CYTemplate::Output(CYOutput &out, CYFlags flags) const {
+ _assert(false);
+}
+
void CYTypeArrayOf::Output(CYOutput &out, CYIdentifier *identifier) const {
next_->Output(out, Precedence(), identifier);
out << '[';
rhs_->Output(out, Precedence(), CYRight(flags));
}
-void CYProgram::Output(CYOutput &out) const {
+void CYScript::Output(CYOutput &out) const {
out << code_;
}