diff options
Diffstat (limited to 'src/plugins/plain/DynamicTokenizer.hpp')
-rw-r--r-- | src/plugins/plain/DynamicTokenizer.hpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/plugins/plain/DynamicTokenizer.hpp b/src/plugins/plain/DynamicTokenizer.hpp index 0b4dd39..0cac2e8 100644 --- a/src/plugins/plain/DynamicTokenizer.hpp +++ b/src/plugins/plain/DynamicTokenizer.hpp @@ -85,6 +85,14 @@ struct DynamicToken { * @param type is the id corresponding to the type of the token. */ DynamicToken(TokenTypeId type) : type(type) {} + + /** + * The getLocation function allows the tokens to be directly passed as + * parameter to Logger or LoggableException instances. + * + * @return a reference at the location field + */ + const SourceLocation &getLocation() const { return location; } }; /** |