Documentation

Lean.Elab.Util

Instances For
    @[inline, reducible]
    Instances For

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

      Instances For
        @[implemented_by _private.Lean.Elab.Util.0.Lean.Elab.evalSyntaxConstantUnsafe]
        unsafe def Lean.Elab.mkElabAttribute (γ : Type) (attrBuiltinName : Lake.Name) (attrName : Lake.Name) (parserNamespace : Lake.Name) (typeName : Lake.Name) (kind : String) (attrDeclName : autoParam Lake.Name _auto✝) :
        Instances For
          @[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.

          Instances For
            Instances
              partial def Lean.Elab.mkUnusedBaseName.loop (baseName : Lake.Name) (currNamespace : Lake.Name) (idx : Nat) :