Documentation

Lean.Linter.Util

def Lean.Linter.logLint {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] [inst : Lean.MonadOptions m] (linterOption : Lean.Option Bool) (stx : Lean.Syntax) (msg : Lean.MessageData) :
Equations
  • One or more equations did not get rendered due to their size.

Go upwards through the given tree starting from the smallest node that contains the given range and collect all MacroExpansionInfos on the way up. The result is some [] if no MacroExpansionInfo was found on the way and none if no InfoTree node was found that covers the given range.

Return the result reversed, s.t. the macro expansion that would be applied to the original syntax first is the first element of the returned list.

Equations
  • One or more equations did not get rendered due to their size.
Equations
  • One or more equations did not get rendered due to their size.