X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/a196a97ab164eed3f08ce1fb944c11486e99e320..2447e531132913a88707e5d457fb2946fa3b0478:/Syntax.hpp?ds=inline diff --git a/Syntax.hpp b/Syntax.hpp index d278729..a83659d 100644 --- a/Syntax.hpp +++ b/Syntax.hpp @@ -78,15 +78,15 @@ struct CYOutput { _assert(out_.sputc(value) != EOF); recent_ = indent_; if (value == '\n') - position_.lines(1); + position_.Lines(1); else - position_.columns(1); + position_.Columns(1); } _finline void operator ()(const char *data, std::streamsize size) { _assert(out_.sputn(data, size) == size); recent_ = indent_; - position_.columns(size); + position_.Columns(size); } _finline void operator ()(const char *data) { @@ -1191,19 +1191,17 @@ struct CYVar : virtual void Output(CYOutput &out, CYFlags flags) const; }; -struct CYLetStatement : +struct CYLet : CYStatement { CYDeclarations *declarations_; - CYStatement *code_; - CYLetStatement(CYDeclarations *declarations, CYStatement *code) : - declarations_(declarations), - code_(code) + CYLet(CYDeclarations *declarations) : + declarations_(declarations) { } - CYCompact(Long) + CYCompact(None) virtual CYStatement *Replace(CYContext &context); virtual void Output(CYOutput &out, CYFlags flags) const;