diff options
author | Roberto Raggi <[email protected]> | 2010-05-12 12:53:16 +0200 |
---|---|---|
committer | Roberto Raggi <[email protected]> | 2010-05-14 13:55:21 +0200 |
commit | 60f76c96e8cf9b751e6250a9f80d2517adaf7a5b (patch) | |
tree | 098e360e59bf66ca8688582da8896a576554a531 /src/libs/cplusplus/LookupItem.h | |
parent | 140756eef42f4b580c9aecac33c2284d3937bf9f (diff) |
Improved LookupItem and get rid of some deprecated code.
Diffstat (limited to 'src/libs/cplusplus/LookupItem.h')
-rw-r--r-- | src/libs/cplusplus/LookupItem.h | 17 |
1 files changed, 7 insertions, 10 deletions
diff --git a/src/libs/cplusplus/LookupItem.h b/src/libs/cplusplus/LookupItem.h index 6254fbf82bc..14ba99c5734 100644 --- a/src/libs/cplusplus/LookupItem.h +++ b/src/libs/cplusplus/LookupItem.h @@ -41,9 +41,6 @@ public: /// Constructs an null LookupItem. LookupItem(); - /// Contructs a LookupItem with the given \a type, \a lastVisibleSymbol and \a declaration. - LookupItem(const FullySpecifiedType &type, Symbol *lastVisibleSymbol, Symbol *declaration = 0); - /// Returns this item's type. FullySpecifiedType type() const; @@ -51,23 +48,23 @@ public: void setType(const FullySpecifiedType &type); /// Returns the last visible symbol. - Symbol *lastVisibleSymbol() const; + Symbol *declaration() const; /// Sets the last visible symbol. - void setLastVisibleSymbol(Symbol *symbol); + void setDeclaration(Symbol *declaration); - /// Returns this item's declaration. - Symbol *declaration() const; + /// Returns this item's scope. + Scope *scope() const; - /// Sets this item's declaration. - void setDeclaration(Symbol *declaration); + /// Sets this item's scope. + void setScope(Scope *scope); bool operator == (const LookupItem &other) const; bool operator != (const LookupItem &other) const; private: FullySpecifiedType _type; - Symbol *_lastVisibleSymbol; + Scope *_scope; Symbol *_declaration; }; |