HepLean Documentation
Lean
.
Compiler
.
ExportAttr
Search
Google site search
return to top
source
Imports
Lean.Attributes
Imported by
Lean
.
exportAttr
Lean
.
getExportNameFor?
Lean
.
isExport
source
opaque
Lean
.
exportAttr
:
Lean.ParametricAttribute
Lean.Name
source
@[export lean_get_export_name_for]
def
Lean
.
getExportNameFor?
(env :
Lean.Environment
)
(n :
Lean.Name
)
:
Option
Lean.Name
Equations
Lean.getExportNameFor?
env
n
=
Lean.exportAttr
.getParam?
env
n
Instances For
source
def
Lean
.
isExport
(env :
Lean.Environment
)
(n :
Lean.Name
)
:
Bool
Equations
Lean.isExport
env
n
=
(
(
Lean.getExportNameFor?
env
n
)
.isSome
||
n
==
`main
)
Instances For