diff options
author | Roberto Raggi <[email protected]> | 2009-05-28 11:49:59 +0200 |
---|---|---|
committer | Roberto Raggi <[email protected]> | 2009-05-28 11:49:59 +0200 |
commit | a1ec4e2a941e12816f228670ca573dbc768eebf9 (patch) | |
tree | dfe01bf12e95497f08c0dcf1fdb297f1b846d8c1 /src/shared/cplusplus/Names.h | |
parent | 6ec0b2591e8e4bf05555bce3b65a0d4cf24f5c99 (diff) |
Introduced Name::identifier().
Name::identifier() returns the identifier used to declare the name.
Diffstat (limited to 'src/shared/cplusplus/Names.h')
-rw-r--r-- | src/shared/cplusplus/Names.h | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/shared/cplusplus/Names.h b/src/shared/cplusplus/Names.h index e872aa0eeea..3d0d1d0b9d1 100644 --- a/src/shared/cplusplus/Names.h +++ b/src/shared/cplusplus/Names.h @@ -64,6 +64,8 @@ public: bool isGlobal = false); virtual ~QualifiedNameId(); + virtual Identifier *identifier() const; + unsigned nameCount() const; Name *nameAt(unsigned index) const; Name *const *names() const; @@ -94,7 +96,7 @@ public: NameId(Identifier *identifier); virtual ~NameId(); - Identifier *identifier() const; + virtual Identifier *identifier() const; virtual bool isEqualTo(const Name *other) const; @@ -117,7 +119,7 @@ public: DestructorNameId(Identifier *identifier); virtual ~DestructorNameId(); - Identifier *identifier() const; + virtual Identifier *identifier() const; virtual bool isEqualTo(const Name *other) const; @@ -142,7 +144,7 @@ public: unsigned templateArgumentCount); virtual ~TemplateNameId(); - Identifier *identifier() const; + virtual Identifier *identifier() const; // ### find a better name unsigned templateArgumentCount() const; @@ -229,6 +231,7 @@ public: int kind() const; + virtual Identifier *identifier() const; virtual bool isEqualTo(const Name *other) const; virtual const OperatorNameId *asOperatorNameId() const @@ -252,6 +255,7 @@ public: FullySpecifiedType type() const; + virtual Identifier *identifier() const; virtual bool isEqualTo(const Name *other) const; virtual const ConversionNameId *asConversionNameId() const |