- impl : Lean.AttributeImpl
Instances For
Equations
- Lean.ParserCompiler.instInhabitedCombinatorAttribute = { default := { impl := default, ext := default } }
def
Lean.ParserCompiler.CombinatorAttribute.getDeclFor?
(attr : Lean.ParserCompiler.CombinatorAttribute)
(env : Lean.Environment)
(parserDecl : Lake.Name)
:
Equations
- attr.getDeclFor? env parserDecl = (attr.ext.getState env).find? parserDecl
Instances For
def
Lean.ParserCompiler.CombinatorAttribute.setDeclFor
(attr : Lean.ParserCompiler.CombinatorAttribute)
(env : Lean.Environment)
(parserDecl : Lake.Name)
(decl : Lake.Name)
:
Equations
- attr.setDeclFor env parserDecl decl = Lean.PersistentEnvExtension.addEntry attr.ext env (parserDecl, decl)
Instances For
unsafe def
Lean.ParserCompiler.CombinatorAttribute.runDeclFor
{α : Type}
(attr : Lean.ParserCompiler.CombinatorAttribute)
(parserDecl : Lake.Name)
: