def
Lean.mkErrorStringWithPos
(fileName : String)
(pos : Lean.Position)
(msg : String)
(endPos : optParam (Option Lean.Position) none)
:
Equations
- One or more equations did not get rendered due to their size.
- information: Lean.MessageSeverity
- warning: Lean.MessageSeverity
- error: Lean.MessageSeverity
Equations
- Lean.instInhabitedMessageSeverity = { default := Lean.MessageSeverity.information }
Equations
- Lean.instBEqMessageSeverity = { beq := [anonymous] }
- env : Lean.Environment
- mctx : Lean.MetavarContext
- lctx : Lean.LocalContext
- opts : Lean.Options
- ofFormat: Lean.Format → Lean.MessageData
- ofSyntax: Lean.Syntax → Lean.MessageData
- ofExpr: Lean.Expr → Lean.MessageData
- ofLevel: Lean.Level → Lean.MessageData
- ofName: Lean.Name → Lean.MessageData
- ofGoal: Lean.MVarId → Lean.MessageData
- withContext: Lean.MessageDataContext → Lean.MessageData → Lean.MessageData
- withNamingContext: Lean.NamingContext → Lean.MessageData → Lean.MessageData
- nest: Nat → Lean.MessageData → Lean.MessageData
- group: Lean.MessageData → Lean.MessageData
- compose: Lean.MessageData → Lean.MessageData → Lean.MessageData
- tagged: Lean.Name → Lean.MessageData → Lean.MessageData
- node: Array Lean.MessageData → Lean.MessageData
Equations
- Lean.instInhabitedMessageData = { default := Lean.MessageData.ofFormat default }
Equations
- One or more equations did not get rendered due to their size.
partial def
Lean.MessageData.instantiateMVars.visit
(msg : Lean.MessageData)
(mctx : Lean.MetavarContext)
:
Equations
- Lean.MessageData.isNil _fun_discr = match _fun_discr with | Lean.MessageData.ofFormat Lean.Format.nil => true | x => false
Equations
- Lean.MessageData.isNest _fun_discr = match _fun_discr with | Lean.MessageData.nest a a_1 => true | x => false
Equations
- Lean.MessageData.mkPPContext nCtx ctx = { env := ctx.env, mctx := ctx.mctx, lctx := ctx.lctx, opts := ctx.opts, currNamespace := nCtx.currNamespace, openDecls := nCtx.openDecls }
Equations
- Lean.MessageData.format msgData = Lean.MessageData.formatAux { currNamespace := Lean.Name.anonymous, openDecls := [] } none msgData
Equations
- Lean.MessageData.toString msgData = do let a ← Lean.MessageData.format msgData pure (toString a)
Equations
- Lean.MessageData.instAppendMessageData = { append := Lean.MessageData.compose }
Equations
- Lean.MessageData.instCoeStringMessageData = { coe := Lean.MessageData.ofFormat ∘ Lean.format }
Equations
Equations
Equations
- One or more equations did not get rendered due to their size.
partial def
Lean.MessageData.arrayExpr.toMessageData
(es : Array Lean.Expr)
(i : Nat)
(acc : Lean.MessageData)
:
Equations
- Lean.MessageData.instCoeArrayExprMessageData = { coe := fun es => Lean.MessageData.arrayExpr.toMessageData es 0 (Function.comp Lean.MessageData.ofFormat Lean.format "#[") }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.MessageData.paren f = Lean.MessageData.bracket "(" f ")"
Equations
- Lean.MessageData.sbracket f = Lean.MessageData.bracket "[" f "]"
Equations
- Lean.MessageData.joinSep [] _fun_discr = Lean.MessageData.ofFormat Lean.Format.nil
- Lean.MessageData.joinSep [a] _fun_discr = a
- Lean.MessageData.joinSep (a :: as) _fun_discr = a ++ _fun_discr ++ Lean.MessageData.joinSep as _fun_discr
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.MessageData.ofArray msgs = Lean.MessageData.ofList (Array.toList msgs)
Equations
Equations
- Lean.MessageData.instCoeListExprMessageData = { coe := fun es => Lean.MessageData.ofList (List.map Lean.MessageData.ofExpr es) }
- fileName : String
- pos : Lean.Position
- endPos : Option Lean.Position
- severity : Lean.MessageSeverity
- data : Lean.MessageData
Equations
- Lean.instInhabitedMessage = { default := { fileName := default, pos := default, endPos := default, severity := default, caption := default, data := default } }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instInhabitedMessageLog = { default := { msgs := default } }
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.MessageLog.isEmpty log = Std.PersistentArray.isEmpty log.msgs
Equations
- Lean.MessageLog.add msg log = { msgs := Std.PersistentArray.push log.msgs msg }
Equations
- Lean.MessageLog.append l₁ l₂ = { msgs := l₁.msgs ++ l₂.msgs }
Equations
- Lean.MessageLog.instAppendMessageLog = { append := Lean.MessageLog.append }
Equations
- Lean.MessageLog.hasErrors log = Std.PersistentArray.any log.msgs fun m => match m.severity with | Lean.MessageSeverity.error => true | x => false
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.
def
Lean.MessageLog.forM
{m : Type → Type}
[inst : Monad m]
(log : Lean.MessageLog)
(f : Lean.Message → m Unit)
:
m Unit
Equations
- Lean.MessageLog.forM log f = Std.PersistentArray.forM log.msgs f
Equations
- Lean.MessageLog.toList log = List.reverse (Std.PersistentArray.foldl log.msgs (fun acc msg => msg :: acc) [])
Equations
- Lean.MessageData.nestD msg = Lean.MessageData.nest 2 msg
Equations
Equations
- addMessageContext : Lean.MessageData → m Lean.MessageData
instance
Lean.instAddMessageContext
(m : Type → Type)
(n : Type → Type)
[inst : MonadLift m n]
[inst : Lean.AddMessageContext m]
:
Equations
- Lean.instAddMessageContext m n = { addMessageContext := fun msg => liftM (Lean.addMessageContext msg) }
def
Lean.addMessageContextPartial
{m : Type → Type}
[inst : Monad m]
[inst : Lean.MonadEnv m]
[inst : Lean.MonadOptions m]
(msgData : Lean.MessageData)
:
Equations
- One or more equations did not get rendered due to their size.
def
Lean.addMessageContextFull
{m : Type → Type}
[inst : Monad m]
[inst : Lean.MonadEnv m]
[inst : Lean.MonadMCtx m]
[inst : Lean.MonadLCtx m]
[inst : Lean.MonadOptions m]
(msgData : Lean.MessageData)
:
Equations
- One or more equations did not get rendered due to their size.
- toMessageData : α → Lean.MessageData
Instances
- Lean.instToMessageData
- Lean.Meta.instToMessageDataSimpTheorem
- Lean.instToMessageDataTSyntax
- Lean.instToMessageDataFormat
- Lean.instToMessageDataOption
- Lean.instToMessageDataOptionExpr
- Lean.instToMessageDataSyntax
- Lean.instToMessageDataExpr
- Lean.instToMessageDataMessageData
- Lean.instToMessageDataList
- Lean.instToMessageDataSubarray
- Lean.instToMessageDataArray
- Lean.instToMessageDataMVarId
- Lean.instToMessageDataName
- Lean.instToMessageDataString
- Lean.instToMessageDataLevel
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.instToMessageData = { toMessageData := Lean.MessageData.ofFormat ∘ Lean.format }
Equations
- Lean.instToMessageDataExpr = { toMessageData := Lean.MessageData.ofExpr }
Equations
- Lean.instToMessageDataLevel = { toMessageData := Lean.MessageData.ofLevel }
Equations
- Lean.instToMessageDataName = { toMessageData := Lean.MessageData.ofName }
Equations
- Lean.instToMessageDataString = { toMessageData := Lean.stringToMessageData }
Equations
- Lean.instToMessageDataSyntax = { toMessageData := Lean.MessageData.ofSyntax }
Equations
- Lean.instToMessageDataTSyntax = { toMessageData := fun a => Lean.MessageData.ofSyntax a.raw }
Equations
- Lean.instToMessageDataFormat = { toMessageData := Lean.MessageData.ofFormat }
Equations
- Lean.instToMessageDataMVarId = { toMessageData := Lean.MessageData.ofGoal }
Equations
- Lean.instToMessageDataMessageData = { toMessageData := id }
Equations
- Lean.instToMessageDataList = { toMessageData := fun as => Lean.MessageData.ofList (List.map Lean.toMessageData as) }
Equations
- Lean.instToMessageDataArray = { toMessageData := fun as => Lean.toMessageData (Array.toList as) }
Equations
- Lean.instToMessageDataSubarray = { toMessageData := fun as => Lean.toMessageData (Array.toList (Subarray.toArray as)) }
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.
Equations
- One or more equations did not get rendered due to their size.
Equations
- Lean.toMessageList msgs = Lean.indentD (Lean.MessageData.joinSep (Array.toList msgs) (Lean.toMessageData "\n\n"))
Equations
- One or more equations did not get rendered due to their size.