X-Git-Url: https://git.saurik.com/cycript.git/blobdiff_plain/c5b15840ab1bb70218506531f9a73fe2d112b007..ca6a1b2b2dce57a7ad9e11bdd3649f00ca855a15:/Syntax.hpp diff --git a/Syntax.hpp b/Syntax.hpp index e3999e3..5e792b7 100644 --- a/Syntax.hpp +++ b/Syntax.hpp @@ -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; @@ -1231,9 +1229,9 @@ struct CYProperty : } CYProperty *ReplaceAll(CYContext &context, CYBuilder &builder, CYExpression *self, bool update); - void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, bool computed); + void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, bool protect); - virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name) = 0; + virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name, bool protect) = 0; virtual void Replace(CYContext &context) = 0; virtual void Output(CYOutput &out) const; @@ -1250,7 +1248,7 @@ struct CYPropertyValue : { } - virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name); + virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name, bool protect); virtual void Replace(CYContext &context); virtual void Output(CYOutput &out) const; }; @@ -1626,7 +1624,7 @@ struct CYPropertyGetter : { } - virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name); + virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name, bool protect); virtual void Output(CYOutput &out) const; }; @@ -1638,7 +1636,7 @@ struct CYPropertySetter : { } - virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name); + virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name, bool protect); virtual void Output(CYOutput &out) const; }; @@ -1652,7 +1650,7 @@ struct CYPropertyMethod : virtual CYFunctionExpression *Constructor(); - virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name); + virtual void Replace(CYContext &context, CYBuilder &builder, CYExpression *self, CYExpression *name, bool protect); virtual void Output(CYOutput &out) const; };