aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs/cplusplus/LookupItem.h
diff options
context:
space:
mode:
authorRoberto Raggi <[email protected]>2010-05-12 12:53:16 +0200
committerRoberto Raggi <[email protected]>2010-05-14 13:55:21 +0200
commit60f76c96e8cf9b751e6250a9f80d2517adaf7a5b (patch)
tree098e360e59bf66ca8688582da8896a576554a531 /src/libs/cplusplus/LookupItem.h
parent140756eef42f4b580c9aecac33c2284d3937bf9f (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.h17
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;
};