feat: Handling of private names #36

Merged
aniva merged 6 commits from library/catalog into dev 2023-12-05 20:22:38 -08:00
1 changed files with 1 additions and 1 deletions
Showing only changes of commit 07ade4c822 - Show all commits

View File

@ -4,7 +4,7 @@ namespace Pantograph
def is_symbol_unsafe_or_internal (n: Lean.Name) (info: Lean.ConstantInfo): Bool :=
let nameDeduce: Bool := match n.getRoot with
| .str _ name => name.startsWith "_" name == "Lean"
| .str _ name => name == "Lean"
| _ => true
nameDeduce info.isUnsafe