diff options
author | Hugo Lima <hugo.lima@openbossa.org> | 2009-10-20 17:38:32 -0200 |
---|---|---|
committer | Luciano Miguel Wolf <luciano.wolf@indt.org.br> | 2009-10-21 16:34:20 -0300 |
commit | 071233773dd5a4f3ccacebf77f2102780a9dc624 (patch) | |
tree | f441d12177b63d9f634e12edb4bed9341f6d5e84 /typesystem.h | |
parent | 73f6ac4faafed5c8c275ff01a22a53bfbc7fc515 (diff) |
Added support for add-function tag into typesystem.
Diffstat (limited to 'typesystem.h')
-rw-r--r-- | typesystem.h | 30 |
1 files changed, 7 insertions, 23 deletions
diff --git a/typesystem.h b/typesystem.h index 7f232ac93..9038b22a6 100644 --- a/typesystem.h +++ b/typesystem.h @@ -445,17 +445,16 @@ typedef QList<FieldModification> FieldModificationList; struct AddedFunction { enum Access { - Private = 0x1, - Protected = 0x2, - Public = 0x3 + Protected = 0x1, + Public = 0x2 }; struct TypeInfo { - TypeInfo() : isConst(false), indirections(0), isRef(false) {} + TypeInfo() : isConstant(false), indirections(0), isReference(false) {} QString name; - bool isConst; + bool isConstant; int indirections; - bool isRef; + bool isReference; QString defaultValue; }; @@ -481,37 +480,22 @@ struct AddedFunction return m_returnType; } - CodeSnipList codeSnips() const - { - return m_codeSnips; - } - - void setCodeSnips(const CodeSnipList& codeSnips) - { - m_codeSnips = codeSnips; - } - - void addCodeSnip(const CodeSnip& codeSnip) - { - m_codeSnips << codeSnip; - } - QList<TypeInfo> arguments() const { return m_arguments; } - bool isConst() const + bool isConstant() const { return m_isConst; } + private: QString m_name; Access m_access; QList<TypeInfo> m_arguments; TypeInfo m_returnType; bool m_isConst; - CodeSnipList m_codeSnips; }; typedef QList<AddedFunction> AddedFunctionList; |