File tree Expand file tree Collapse file tree 1 file changed +0
-6
lines changed
plugins/hls-semantic-tokens-plugin/src/Ide/Plugin/SemanticTokens Expand file tree Collapse file tree 1 file changed +0
-6
lines changed Original file line number Diff line number Diff line change 1
1
{-# LANGUAGE OverloadedRecordDot #-}
2
2
{-# LANGUAGE OverloadedStrings #-}
3
- {-# OPTIONS_GHC -Wno-unrecognised-pragmas #-}
4
- {-# HLINT ignore "Avoid restricted function" #-}
5
3
6
4
module Ide.Plugin.SemanticTokens.Tokenize (computeRangeHsSemanticTokenTypeList ) where
7
5
@@ -47,8 +45,6 @@ cacheLookup lk idt@(Right n) = do
47
45
return hsSemanticTy
48
46
Just x -> return x
49
47
50
-
51
-
52
48
data PTokenState = PTokenState
53
49
{
54
50
rope :: ! Rope -- the remains of rope we are working on
@@ -66,7 +62,6 @@ getSplitTokenText :: SplitResult -> Text
66
62
getSplitTokenText (NoSplit (t, _)) = t
67
63
getSplitTokenText (Split (t, _, _)) = t
68
64
69
-
70
65
mkPTokenState :: VirtualFile -> PTokenState
71
66
mkPTokenState vf =
72
67
PTokenState
@@ -85,7 +80,6 @@ liftMaybeM p = do
85
80
st <- get
86
81
maybe (return mempty ) (\ (ans, st') -> put st' >> return ans) $ runStateT p st
87
82
88
-
89
83
foldMapM :: (Monad m , Monoid b , Foldable t ) => (a -> m b ) -> t a -> m b
90
84
foldMapM f ta = foldM (\ b a -> mappend b <$> f a) mempty ta
91
85
You can’t perform that action at this time.
0 commit comments