encode
Encodes a list of semantic tokens into a flat list of integers according to the LSP semantic tokens format. The encoding format is as follows:
delta line number
delta start character
length of the token
token type
token modifiers
Return
a flat list of integers representing the encoded tokens
Parameters
tokens
the list of semantic tokens to encode