def Lean.PrettyPrinter.ppExprWithInfos (e : Expr) (optsPerPos : Delaborator.OptionsPerPos := ∅) (delab : Delaborator.Delab := Delaborator.delab) :
Return a fmt representing pretty-printed e together with a map from tags in fmt
to Elab.Info nodes produced by the delaborator at various subexpressions of e.
Instances For
Instances For
def Lean.PrettyPrinter.ppExprLegacy (env : Environment) (mctx : MetavarContext) (lctx : LocalContext) (opts : Options) (e : Expr) :
Instances For
Instances For
Pretty-prints a declaration c as c.{<levels>} <params> : <type>.
Instances For
Turns a MetaM FormatWithInfos into a MessageData.lazy which will run the monadic value.
Instances For
Pretty print a const expression using delabConst and generate terminfo.
This function avoids inserting @ if the constant is for a function whose first
argument is implicit, which is what the default toMessageData for Expr does.
Panics if e is not a constant.
Instances For
Generates MessageData for a declaration c as c.{<levels>} <params> : <type>, with terminfo.