void CYMessage::Output(CYOutput &out, bool replace) const {
out << (instance_ ? '-' : '+');
- for (CYMessageParameter *parameter(parameters_); parameter != NULL; parameter = parameter->next_)
+ CYForEach (parameter, parameters_)
if (parameter->tag_ != NULL) {
out << ' ' << *parameter->tag_;
if (parameter->name_ != NULL)
out << code_;
}
+void CYBox::Output(CYOutput &out, CYFlags flags) const {
+ out << '@';
+ value_->Output(out, Precedence(), CYRight(flags));
+}
+
void CYProtocol::Output(CYOutput &out) const {
name_->Output(out, CYAssign::Precedence_, CYNoFlags);
if (next_ != NULL)
}
void CYSend::Output(CYOutput &out, CYFlags flags) const {
- for (CYArgument *argument(arguments_); argument != NULL; argument = argument->next_)
+ CYForEach (argument, arguments_)
if (argument->name_ != NULL) {
out << ' ' << *argument->name_;
if (argument->value_ != NULL)