mirror of
https://github.com/haskell/ghcide.git
synced 2024-12-02 08:53:07 +03:00
Rename sourcePlugin to the right name
This commit is contained in:
parent
37689a808e
commit
acc834c779
@ -272,7 +272,7 @@ parseFileContents
|
||||
-> FilePath -- ^ the filename (for source locations)
|
||||
-> Maybe SB.StringBuffer -- ^ Haskell module source text (full Unicode is supported)
|
||||
-> ExceptT [FileDiagnostic] m ([FileDiagnostic], ParsedModule)
|
||||
parseFileContents preprocessor filename mbContents = do
|
||||
parseFileContents sourcePlugin filename mbContents = do
|
||||
let loc = mkRealSrcLoc (mkFastString filename) 1 1
|
||||
contents <- liftIO $ maybe (hGetStringBuffer filename) return mbContents
|
||||
let isOnDisk = isNothing mbContents
|
||||
@ -318,7 +318,7 @@ parseFileContents preprocessor filename mbContents = do
|
||||
throwE $ diagFromErrMsgs "parser" dflags $ snd $ getMessages pst dflags
|
||||
|
||||
-- Ok, we got here. It's safe to continue.
|
||||
let (errs, parsed) = preprocessor rdr_module
|
||||
let (errs, parsed) = sourcePlugin rdr_module
|
||||
unless (null errs) $ throwE $ diagFromStrings "parser" errs
|
||||
ms <- getModSummaryFromBuffer filename contents dflags parsed
|
||||
let pm =
|
||||
|
Loading…
Reference in New Issue
Block a user