@@ -39,22 +39,22 @@ defaultSemanticTokensLegend = SemanticTokensLegend
39
39
-- | A single 'semantic token' as described in the LSP specification, using absolute positions.
40
40
-- This is the kind of token that is usually easiest for editors to produce.
41
41
data SemanticTokenAbsolute = SemanticTokenAbsolute {
42
- line :: UInt ,
43
- startChar :: UInt ,
44
- length :: UInt ,
45
- tokenType :: SemanticTokenTypes ,
46
- tokenModifiers :: [SemanticTokenModifiers ]
42
+ _line :: UInt ,
43
+ _startChar :: UInt ,
44
+ _length :: UInt ,
45
+ _tokenType :: SemanticTokenTypes ,
46
+ _tokenModifiers :: [SemanticTokenModifiers ]
47
47
} deriving stock (Show , Eq , Ord )
48
48
-- Note: we want the Ord instance to sort the tokens textually: this is achieved due to the
49
49
-- order of the constructors
50
50
51
51
-- | A single 'semantic token' as described in the LSP specification, using relative positions.
52
52
data SemanticTokenRelative = SemanticTokenRelative {
53
- deltaLine :: UInt ,
54
- deltaStartChar :: UInt ,
55
- length :: UInt ,
56
- tokenType :: SemanticTokenTypes ,
57
- tokenModifiers :: [SemanticTokenModifiers ]
53
+ _deltaLine :: UInt ,
54
+ _deltaStartChar :: UInt ,
55
+ _length :: UInt ,
56
+ _tokenType :: SemanticTokenTypes ,
57
+ _tokenModifiers :: [SemanticTokenModifiers ]
58
58
} deriving stock (Show , Eq , Ord )
59
59
-- Note: we want the Ord instance to sort the tokens textually: this is achieved due to the
60
60
-- order of the constructors
0 commit comments