Added getters.

This commit is contained in:
Roberto Raggi
2009-11-13 16:59:09 +01:00
parent 0b277f2fbe
commit 6bf1e26279

View File

@@ -283,6 +283,14 @@ public:
const char *spell() const;
void reset();
inline unsigned kind() const { return f.kind; }
inline bool newline() const { return f.newline; }
inline bool whitespace() const { return f.whitespace; }
inline bool joined() const { return f.joined; }
inline bool expanded() const { return f.expanded; }
inline bool generated() const { return f.generated; }
inline unsigned length() const { return f.length; }
inline unsigned begin() const
{ return offset; }