summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Symbol.cpp
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-05-28 11:49:59 +0200
committerRoberto Raggi <roberto.raggi@nokia.com>2009-05-28 11:49:59 +0200
commita1ec4e2a941e12816f228670ca573dbc768eebf9 (patch)
treedfe01bf12e95497f08c0dcf1fdb297f1b846d8c1 /src/shared/cplusplus/Symbol.cpp
parent6ec0b2591e8e4bf05555bce3b65a0d4cf24f5c99 (diff)
downloadqt-creator-a1ec4e2a941e12816f228670ca573dbc768eebf9.tar.gz
Introduced Name::identifier().
Name::identifier() returns the identifier used to declare the name.
Diffstat (limited to 'src/shared/cplusplus/Symbol.cpp')
-rw-r--r--src/shared/cplusplus/Symbol.cpp8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Symbol.cpp b/src/shared/cplusplus/Symbol.cpp
index 68b19c54e9..a012cca8ad 100644
--- a/src/shared/cplusplus/Symbol.cpp
+++ b/src/shared/cplusplus/Symbol.cpp
@@ -296,6 +296,14 @@ void Symbol::setName(Name *name)
}
}
+Identifier *Symbol::identifier() const
+{
+ if (_name)
+ return _name->identifier();
+
+ return 0;
+}
+
Scope *Symbol::scope() const
{ return _scope; }