mirror of
https://github.com/idris-lang/Idris2.git
synced 2024-12-18 16:51:51 +03:00
Do a tiny renaming
This commit is contained in:
parent
3cb30516e3
commit
c8875c0f9d
@ -142,7 +142,7 @@ data IDEResult
|
|||||||
| NameList (List Name)
|
| NameList (List Name)
|
||||||
| Term String -- should be a PTerm + metadata, or SExp.
|
| Term String -- should be a PTerm + metadata, or SExp.
|
||||||
| TTTerm String -- should be a TT Term + metadata, or perhaps SExp
|
| TTTerm String -- should be a TT Term + metadata, or perhaps SExp
|
||||||
| NamesInFiles (List (Name, FC))
|
| NameLocList (List (Name, FC))
|
||||||
|
|
||||||
replWrap : Core REPLResult -> Core IDEResult
|
replWrap : Core REPLResult -> Core IDEResult
|
||||||
replWrap m = pure $ REPL !m
|
replWrap m = pure $ REPL !m
|
||||||
@ -164,7 +164,7 @@ process (NameAt name Nothing)
|
|||||||
= do defs <- get Ctxt
|
= do defs <- get Ctxt
|
||||||
glob <- lookupCtxtName (UN name) (gamma defs)
|
glob <- lookupCtxtName (UN name) (gamma defs)
|
||||||
let dat = map (\(name, _, gdef) => (name, gdef.location)) glob
|
let dat = map (\(name, _, gdef) => (name, gdef.location)) glob
|
||||||
pure (NamesInFiles dat)
|
pure (NameLocList dat)
|
||||||
process (NameAt n (Just _))
|
process (NameAt n (Just _))
|
||||||
= do todoCmd "name-at <name> <line> <column>"
|
= do todoCmd "name-at <name> <line> <column>"
|
||||||
pure $ REPL $ Edited $ DisplayEdit emptyDoc
|
pure $ REPL $ Edited $ DisplayEdit emptyDoc
|
||||||
@ -388,7 +388,7 @@ displayIDEResult outf i (REPL $ ConsoleWidthSet mn)
|
|||||||
Just k => show k
|
Just k => show k
|
||||||
Nothing => "auto"
|
Nothing => "auto"
|
||||||
in printIDEResult outf i $ StringAtom $ "Set consolewidth to " ++ width
|
in printIDEResult outf i $ StringAtom $ "Set consolewidth to " ++ width
|
||||||
displayIDEResult outf i (NamesInFiles dat)
|
displayIDEResult outf i (NameLocList dat)
|
||||||
= printIDEResult outf i
|
= printIDEResult outf i
|
||||||
$ SExpList !(traverse
|
$ SExpList !(traverse
|
||||||
(\(name, fc)
|
(\(name, fc)
|
||||||
|
Loading…
Reference in New Issue
Block a user