Commit 6d47004c authored by Roberto Raggi's avatar Roberto Raggi

Added BaseType::setType()

parent ce684eb6
......@@ -475,7 +475,10 @@ BaseClass::~BaseClass()
{ }
FullySpecifiedType BaseClass::type() const
{ return FullySpecifiedType(); }
{ return _type; }
void BaseClass::setType(const FullySpecifiedType &type)
{ _type = type; }
bool BaseClass::isVirtual() const
{ return _isVirtual; }
......
......@@ -436,6 +436,7 @@ public:
// Symbol's interface
virtual FullySpecifiedType type() const;
void setType(const FullySpecifiedType &type);
virtual const BaseClass *asBaseClass() const
{ return this; }
......@@ -448,6 +449,7 @@ protected:
private:
bool _isVirtual;
FullySpecifiedType _type;
};
class CPLUSPLUS_EXPORT Class: public ScopedSymbol, public Type
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment