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
Lake.Name
source
@[export lean_get_export_name_for]
def
Lean
.
getExportNameFor?
(env :
Lean.Environment
)
(n :
Lake.Name
)
:
Option
Lake.Name
Equations
Lean.getExportNameFor?
env
n
=
Lean.exportAttr
.getParam?
env
n
Instances For
source
def
Lean
.
isExport
(env :
Lean.Environment
)
(n :
Lake.Name
)
:
Bool
Equations
Lean.isExport
env
n
=
(
(
Lean.getExportNameFor?
env
n
)
.isSome
||
n
==
`main
)
Instances For