out << next_;
}
-const char *CYDeclaration::ForEachIn() const {
- return identifier_->Word();
-}
-
void CYDeclaration::ForIn(CYOutput &out, CYFlags flags) const {
out << "var";
Output(out, CYRight(flags));
Output(out, CYAssign::Precedence_, CYNoFlags);
}
-const char *CYExpression::ForEachIn() const {
- return NULL;
-}
-
void CYExpression::For(CYOutput &out) const {
Output(out, CYNoIn);
}
}
virtual void ForIn(CYOutput &out, CYFlags flags) const = 0;
- virtual const char *ForEachIn() const = 0;
virtual CYStatement *ForEachIn(CYContext &out, CYExpression *value) = 0;
+
virtual CYExpression *Replace(CYContext &context) = 0;
};
virtual void For(CYOutput &out) const;
virtual void ForIn(CYOutput &out, CYFlags flags) const;
-
- virtual const char *ForEachIn() const;
virtual CYStatement *ForEachIn(CYContext &out, CYExpression *value);
virtual CYExpression *AddArgument(CYContext &context, CYExpression *value);
}
virtual void ForIn(CYOutput &out, CYFlags flags) const;
-
- virtual const char *ForEachIn() const;
virtual CYStatement *ForEachIn(CYContext &out, CYExpression *value);
virtual CYExpression *Replace(CYContext &context);