From b6a675801f361a9a419b81095662f29ed0d6f4de Mon Sep 17 00:00:00 2001 From: "Jay Freeman (saurik)" Date: Thu, 19 Nov 2015 01:14:09 -0800 Subject: [PATCH] Rename CYField to CYClassField, for CYStructField. --- Cycript.yy.in | 8 ++++---- ObjectiveC/Output.cpp | 2 +- ObjectiveC/Replace.cpp | 2 +- ObjectiveC/Syntax.hpp | 16 ++++++++-------- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/Cycript.yy.in b/Cycript.yy.in index 0f45ef8..ae8330c 100644 --- a/Cycript.yy.in +++ b/Cycript.yy.in @@ -91,7 +91,7 @@ typedef struct { @begin ObjectiveC CYClassName *className_; - CYField *field_; + CYClassField *classField_; CYMessage *message_; CYMessageParameter *messageParameter_; CYProtocol *protocol_; @@ -496,8 +496,8 @@ int cylex(YYSTYPE *, CYLocation *, void *); %type BoxableExpression %type CategoryStatement %type ClassExpression -%type ClassFieldListOpt -%type ClassFields +%type ClassFieldListOpt +%type ClassFields %type ClassStatement %type ClassSuperOpt %type ClassMessageDeclaration @@ -1472,7 +1472,7 @@ ClassSuperOpt ; ClassFieldListOpt - : TypedIdentifier ";" ClassFieldListOpt { $$ = CYNew CYField($1, $3); } + : TypedIdentifier ";" ClassFieldListOpt { $$ = CYNew CYClassField($1, $3); } | LexSetRegExp { $$ = NULL; } ; diff --git a/ObjectiveC/Output.cpp b/ObjectiveC/Output.cpp index b9a9b6b..ee41e48 100644 --- a/ObjectiveC/Output.cpp +++ b/ObjectiveC/Output.cpp @@ -74,7 +74,7 @@ void CYClassStatement::Output(CYOutput &out, CYFlags flags) const { CYClass::Output(out, flags); } -void CYField::Output(CYOutput &out) const { +void CYClassField::Output(CYOutput &out) const { } void CYInstanceLiteral::Output(CYOutput &out, CYFlags flags) const { diff --git a/ObjectiveC/Replace.cpp b/ObjectiveC/Replace.cpp index 15361f2..b7071f9 100644 --- a/ObjectiveC/Replace.cpp +++ b/ObjectiveC/Replace.cpp @@ -75,7 +75,7 @@ CYStatement *CYClassStatement::Replace(CYContext &context) { return $E(Replace_(context)); } -CYStatement *CYField::Replace(CYContext &context) const { $T(NULL) +CYStatement *CYClassField::Replace(CYContext &context) const { $T(NULL) CYVariable *cyn($V("$cyn")); CYVariable *cyt($V("$cyt")); diff --git a/ObjectiveC/Syntax.hpp b/ObjectiveC/Syntax.hpp index 4cee64f..642aae4 100644 --- a/ObjectiveC/Syntax.hpp +++ b/ObjectiveC/Syntax.hpp @@ -110,13 +110,13 @@ struct CYSelector : virtual void Output(CYOutput &out, CYFlags flags) const; }; -struct CYField : - CYNext +struct CYClassField : + CYNext { CYTypedIdentifier *typed_; - CYField(CYTypedIdentifier *typed, CYField *next = NULL) : - CYNext(next), + CYClassField(CYTypedIdentifier *typed, CYClassField *next = NULL) : + CYNext(next), typed_(typed) { } @@ -185,10 +185,10 @@ struct CYClass { CYClassName *name_; CYExpression *super_; CYProtocol *protocols_; - CYField *fields_; + CYClassField *fields_; CYMessage *messages_; - CYClass(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYField *fields, CYMessage *messages) : + CYClass(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYClassField *fields, CYMessage *messages) : name_(name), super_(super), protocols_(protocols), @@ -208,7 +208,7 @@ struct CYClassExpression : CYClass, CYExpression { - CYClassExpression(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYField *fields, CYMessage *messages) : + CYClassExpression(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYClassField *fields, CYMessage *messages) : CYClass(name, super, protocols, fields, messages) { } @@ -223,7 +223,7 @@ struct CYClassStatement : CYClass, CYStatement { - CYClassStatement(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYField *fields, CYMessage *messages) : + CYClassStatement(CYClassName *name, CYExpression *super, CYProtocol *protocols, CYClassField *fields, CYMessage *messages) : CYClass(name, super, protocols, fields, messages) { } -- 2.45.2