File tree Expand file tree Collapse file tree 3 files changed +20
-0
lines changed
plugins/hls-semantic-tokens-plugin/test Expand file tree Collapse file tree 3 files changed +20
-0
lines changed Original file line number Diff line number Diff line change @@ -203,6 +203,7 @@ semanticTokensDataTypeTests =
203
203
" get semantic Tokens"
204
204
[ goldenWithSemanticTokensWithDefaultConfig " simple datatype" " TDataType" ,
205
205
goldenWithSemanticTokensWithDefaultConfig " record" " TRecord" ,
206
+ goldenWithSemanticTokensWithDefaultConfig " TRecordWildCards" " TRecordWildCards" ,
206
207
goldenWithSemanticTokensWithDefaultConfig " record With DuplicateRecordFields" " TRecordDuplicateRecordFields" ,
207
208
goldenWithSemanticTokensWithDefaultConfig " datatype import" " TDatatypeImported" ,
208
209
goldenWithSemanticTokensWithDefaultConfig " datatype family" " TDataFamily" ,
Original file line number Diff line number Diff line change
1
+ 4:6-9 TTypeConstructor "Foo"
2
+ 4:12-15 TDataConstructor "Foo"
3
+ 4:18-21 TRecordField "foo"
4
+ 4:25-28 TTypeConstructor "Int"
5
+ 5:1-5 TVariable "foo1"
6
+ 5:8-11 TDataConstructor "Foo"
7
+ 6:1-10 TFunction "unpackFoo"
8
+ 6:14-17 TTypeConstructor "Foo"
9
+ 6:21-24 TTypeConstructor "Int"
10
+ 7:1-10 TFunction "unpackFoo"
11
+ 7:11-14 TDataConstructor "Foo"
12
+ 7:21-24 TVariable "foo"
Original file line number Diff line number Diff line change
1
+ {-# LANGUAGE RecordWildCards #-}
2
+ module TRecordWildCards where
3
+
4
+ data Foo = Foo { foo :: Int }
5
+ foo1 = Foo 1
6
+ unpackFoo :: Foo -> Int
7
+ unpackFoo Foo {.. } = foo
You can’t perform that action at this time.
0 commit comments