@staticmethod
    def register(value, name):
        if value in TokenKind._value_map:
            raise ValueError('TokenKind already registered: %d' % value)

        kind = TokenKind(value, name)
        TokenKind._value_map[value] = kind
        setattr(TokenKind, name, kind)

### Cursor Kinds ###
Register a new TokenKind enumeration.
dataset/ETHPy150Open punchagan/cinspect/cinspect/vendor/clang/cindex.py/TokenKind.register