Documentation

Lean.Elab.DeclModifiers

def Lean.Elab.checkNotAlreadyDeclared {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (declName : Lean.Name) :
Equations
structure Lean.Elab.Modifiers :
Type
Equations
  • Lean.Elab.instInhabitedModifiers = { default := { docString? := default, visibility := default, isNoncomputable := default, recKind := default, isUnsafe := default, attrs := default } }
Equations
Equations
Equations
Equations
Equations
  • Lean.Elab.Modifiers.addAttribute modifiers attr = { docString? := modifiers.docString?, visibility := modifiers.visibility, isNoncomputable := modifiers.isNoncomputable, recKind := modifiers.recKind, isUnsafe := modifiers.isUnsafe, attrs := Array.push modifiers.attrs attr }
Equations
Equations
def Lean.Elab.expandOptDocComment? {m : TypeType} [inst : Monad m] [inst : Lean.MonadError m] (optDocComment : Lean.Syntax) :
Equations
def Lean.Elab.elabModifiers {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadResolveName m] [inst : Lean.MonadError m] [inst : Lean.Elab.MonadMacroAdapter m] [inst : Lean.MonadRecDepth m] [inst : Lean.MonadTrace m] [inst : Lean.MonadOptions m] [inst : Lean.AddMessageContext m] (stx : Lean.Syntax) :
Equations
def Lean.Elab.applyVisibility {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (visibility : Lean.Elab.Visibility) (declName : Lean.Name) :
Equations
def Lean.Elab.checkIfShadowingStructureField {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (declName : Lean.Name) :
Equations
def Lean.Elab.mkDeclName {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (currNamespace : Lean.Name) (modifiers : Lean.Elab.Modifiers) (shortName : Lean.Name) :
Equations
Equations
def Lean.Elab.expandDeclId {m : TypeType} [inst : Monad m] [inst : Lean.MonadEnv m] [inst : Lean.MonadError m] (currNamespace : Lean.Name) (currLevelNames : List Lean.Name) (declId : Lean.Syntax) (modifiers : Lean.Elab.Modifiers) :
Equations