feat: trace.Elab.input
Unlike Elab.command, it does not contain macro expansions
This commit is contained in:
parent
77ae79be46
commit
7bb94abb62
1 changed files with 3 additions and 0 deletions
|
|
@ -297,11 +297,14 @@ partial def elabCommand (stx : Syntax) : CommandElabM Unit := do
|
|||
| elabFns => elabCommandUsing s stx elabFns
|
||||
| _ => throwError "unexpected command"
|
||||
|
||||
builtin_initialize registerTraceClass `Elab.input
|
||||
|
||||
/--
|
||||
`elabCommand` wrapper that should be used for the initial invocation, not for recursive calls after
|
||||
macro expansion etc.
|
||||
-/
|
||||
def elabCommandTopLevel (stx : Syntax) : CommandElabM Unit := withRef stx do
|
||||
trace[Elab.input] stx
|
||||
let initMsgs ← modifyGet fun st => (st.messages, { st with messages := {} })
|
||||
let initInfoTrees ← getResetInfoTrees
|
||||
-- We should *not* factor out `elabCommand`'s `withLogging` to here since it would make its error
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue