Documentation

Lean.Elab.Util

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.
Instances For

    If ref does not have position information, then try to use macroStack

    Equations
    • One or more equations did not get rendered due to their size.
    def Lean.Elab.addMacroStack {m : TypeType} [inst : Monad m] [inst : Lean.MonadOptions m] (msgData : Lean.MessageData) (macroStack : Lean.Elab.MacroStack) :
    Equations
    • One or more equations did not get rendered due to their size.
    def Lean.Elab.checkSyntaxNodeKind {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (k : Lean.Name) :
    Equations
    Equations
    • One or more equations did not get rendered due to their size.
    @[implemented_by _private.Lean.Elab.Util.0.Lean.Elab.evalSyntaxConstantUnsafe]
    unsafe def Lean.Elab.mkElabAttribute (γ : Type) (attrBuiltinName : Lean.Name) (attrName : Lean.Name) (parserNamespace : Lean.Name) (typeName : Lean.Name) (kind : String) (attrDeclName : autoParam Lean.Name _auto✝) :
    Equations
    • One or more equations did not get rendered due to their size.
    @[implemented_by Lean.Elab.mkMacroAttributeUnsafe]

    Try to expand macro at syntax tree root and return macro declaration name and new syntax if successful. Return none if all macros threw Macro.Exception.unsupportedSyntax.

    Equations
    • One or more equations did not get rendered due to their size.
    Instances
      @[always_inline]
      Equations
      • One or more equations did not get rendered due to their size.
      def Lean.Elab.liftMacroM {m : TypeType} {α : Type} [inst : Monad m] [inst : Lean.Elab.MonadMacroAdapter m] [inst : Lean.MonadEnv m] [inst : Lean.MonadRecDepth m] [inst : Lean.MonadError m] [inst : Lean.MonadResolveName m] [inst : Lean.MonadTrace m] [inst : Lean.MonadOptions m] [inst : Lean.AddMessageContext m] [inst : MonadLiftT IO m] (x : Lean.MacroM α) :
      m α
      Equations
      • One or more equations did not get rendered due to their size.
      @[inline]
      def Lean.Elab.adaptMacro {m : TypeType} [inst : Monad m] [inst : Lean.Elab.MonadMacroAdapter m] [inst : Lean.MonadEnv m] [inst : Lean.MonadRecDepth m] [inst : Lean.MonadError m] [inst : Lean.MonadResolveName m] [inst : Lean.MonadTrace m] [inst : Lean.MonadOptions m] [inst : Lean.AddMessageContext m] [inst : MonadLiftT IO m] (x : Lean.Macro) (stx : Lean.Syntax) :
      Equations
      Equations
      • One or more equations did not get rendered due to their size.
      partial def Lean.Elab.mkUnusedBaseName.loop (baseName : Lean.Name) (currNamespace : Lean.Name) (idx : Nat) :
      def Lean.Elab.logException {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : Lean.AddMessageContext m] [inst : Lean.MonadOptions m] [inst : MonadLiftT IO m] (ex : Lean.Exception) :
      Equations
      • One or more equations did not get rendered due to their size.
      def Lean.Elab.withLogging {m : TypeType} [inst : Monad m] [inst : Lean.MonadLog m] [inst : MonadExcept Lean.Exception m] [inst : Lean.AddMessageContext m] [inst : Lean.MonadOptions m] [inst : MonadLiftT IO m] (x : m Unit) :
      Equations
      Equations
      • One or more equations did not get rendered due to their size.
      def Lean.Elab.throwErrorWithNestedErrors {m : TypeType} {α : Type} [inst : Lean.MonadError m] [inst : Monad m] [inst : Lean.MonadLog m] (msg : Lean.MessageData) (exs : Array Lean.Exception) :
      m α
      Equations
      • One or more equations did not get rendered due to their size.