summaryrefslogtreecommitdiff
path: root/src/shared/cplusplus/Token.h
diff options
context:
space:
mode:
authorRoberto Raggi <roberto.raggi@nokia.com>2009-11-13 16:59:09 +0100
committerRoberto Raggi <roberto.raggi@nokia.com>2009-11-13 16:59:09 +0100
commit6bf1e2627964f12a853b3bb3269a5af720e54d38 (patch)
treea093828f7a548c839b39f814302937a823e716ae /src/shared/cplusplus/Token.h
parent0b277f2fbe9716e2b135947c8113c3d29d03a162 (diff)
downloadqt-creator-6bf1e2627964f12a853b3bb3269a5af720e54d38.tar.gz
Added getters.
Diffstat (limited to 'src/shared/cplusplus/Token.h')
-rw-r--r--src/shared/cplusplus/Token.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/shared/cplusplus/Token.h b/src/shared/cplusplus/Token.h
index 8bafc44687..fe984c8c04 100644
--- a/src/shared/cplusplus/Token.h
+++ b/src/shared/cplusplus/Token.h
@@ -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; }