X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/029bc65b46de676c6733fff684000c7363eda512..1504c9b837a7561d8ae2c81f1c4d57fe0f138781:/Output.cpp?ds=sidebyside diff --git a/Output.cpp b/Output.cpp index 27ea3fc..d6c3a03 100644 --- a/Output.cpp +++ b/Output.cpp @@ -89,12 +89,10 @@ CYOutput &CYOutput::operator <<(char rhs) { if (right_) { out_ << '\n'; right_ = false; - goto mode; - } + } goto done; } else goto work; right_ = true; - mode: mode_ = NoMode; goto done; @@ -236,7 +234,8 @@ void Catch::Output(CYOutput &out) const { void CYComment::Output(CYOutput &out, CYFlags flags) const { out << '\r'; - out << value_; + out.out_ << value_; + out.right_ = true; out << '\r'; } @@ -294,6 +293,7 @@ void CYDeclaration::ForIn(CYOutput &out, CYFlags flags) const { void CYDeclaration::Output(CYOutput &out, CYFlags flags) const { out << *identifier_; + //out.out_ << ':' << identifier_->usage_ << '#' << identifier_->offset_; if (initialiser_ != NULL) { out << ' ' << '=' << ' '; initialiser_->Output(out, CYPA, CYRight(flags)); @@ -326,7 +326,7 @@ void CYDeclarations::Output(CYOutput &out, CYFlags flags) const { } void CYDirectMember::Output(CYOutput &out, CYFlags flags) const { - object_->Output(out, Precedence(), CYLeft(flags)); + object_->Output(out, Precedence(), CYLeft(flags) | CYNoInteger); if (const char *word = property_->Word()) out << '.' << word; else @@ -352,7 +352,6 @@ void CYElement::Output(CYOutput &out) const { } void CYEmpty::Output(CYOutput &out, CYFlags flags) const { - out << '`'; out.Terminate(); } @@ -433,8 +432,6 @@ void CYFunction::Output(CYOutput &out, CYFlags flags) const { if (protect) out << '('; out << "function"; - if (out.options_.verbose_) - out.out_ << ':' << static_cast(this); if (name_ != NULL) out << ' ' << *name_; out << '(' << parameters_ << ')'; @@ -657,8 +654,6 @@ static const char *Reserved_[] = { "let", "yield", - "each", - NULL };