diff options
Diffstat (limited to 'libpathod/language/base.py')
-rw-r--r-- | libpathod/language/base.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/libpathod/language/base.py b/libpathod/language/base.py index 3773fde1..2a9e4ed3 100644 --- a/libpathod/language/base.py +++ b/libpathod/language/base.py @@ -77,6 +77,15 @@ class Token(object): """ return None + @property + def unique_name(self): + """ + Controls uniqueness constraints for tokens. No two tokens with the + same name will be allowed. If no uniquness should be applied, this + should be None. + """ + return self.__class__.__name__ + def resolve(self, settings, msg): """ Resolves this token to ready it for transmission. This means that |