Added the methods to get all the identifiers used in a translation unit.

This commit is contained in:
Roberto Raggi
2008-12-09 09:42:17 +01:00
parent 7cf76a2b5b
commit 88b7a14a79
2 changed files with 11 additions and 0 deletions

View File

@@ -151,6 +151,11 @@ public:
Identifier *findOrInsertIdentifier(const char *chars, unsigned size);
Identifier *findOrInsertIdentifier(const char *chars);
typedef const Identifier *const *IdentifierIterator;
IdentifierIterator firstIdentifier() const;
IdentifierIterator lastIdentifier() const;
StringLiteral *findOrInsertStringLiteral(const char *chars, unsigned size);
StringLiteral *findOrInsertStringLiteral(const char *chars);