Annotation of parser3/src/types/pa_property.h, revision 1.11

1.1       paf         1: /** @file
                      2:        Parser: Property class decl.
                      3: 
1.11    ! moko        4:        Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
1.9       moko        5:        Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
1.1       paf         6: */
                      7: 
                      8: #ifndef PA_PROPERTY_H
                      9: #define PA_PROPERTY_H
                     10: 
1.11    ! moko       11: #define IDENT_PA_PROPERTY_H "$Id: pa_property.h,v 1.10 2024/11/04 03:53:25 moko Exp $"
1.1       paf        12: 
                     13: class Method;
1.3       misha      14: class Value;
1.1       paf        15: 
                     16: /** \b junction is getter and setter methods.
                     17: 
                     18:        it is used to cache our knowledge that some element is in fact property
                     19:        and to save us one hash lookup and one name construction (element--get_element/set_leement)
                     20: */
                     21: class Property: public PA_Object {
                     22: public:
                     23:        Method* getter;
                     24:        Method* setter;
1.3       misha      25:        Value *value;
                     26: 
                     27:        Property() : getter(0), setter(0), value(0){}
1.4       misha      28:        Property(Property &prop) : getter(prop.getter), setter(prop.setter), value(prop.value){}
1.1       paf        29: };
                     30: 
                     31: #endif

E-mail: