feat: Remove declarations from lean snippets
This commit is contained in:
parent
b7ae7dc2ad
commit
1be737b4de
2 changed files with 16 additions and 2 deletions
|
@ -44,7 +44,7 @@ structure DeclInfo where
|
|||
def DeclInfo.ofName (n : Name) (ns : NameStatus): MetaM DeclInfo := do
|
||||
let line ← Name.lineNumber n
|
||||
let fileName ← Name.fileName n
|
||||
let declString ← Name.getDeclString n
|
||||
let declString ← Name.getDeclStringNoDoc n
|
||||
let docString ← Name.getDocString n
|
||||
let constInfo ← getConstInfo n
|
||||
let isDef := constInfo.isDef ∨ Lean.isStructure (← getEnv) n ∨ constInfo.isInductive
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue