Documentation
Lean
.
Compiler
.
ExportAttr
Search
Google site search
return to top
source
Imports
Init
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.ParametricAttribute.getParam?
Lean.exportAttr
env
n
Instances For
source
def
Lean
.
isExport
(env :
Lean.Environment
)
(n :
Lake.Name
)
:
Bool
Equations
Lean.isExport
env
n
=
(
Option.isSome
(
Lean.getExportNameFor?
env
n
)
||
n
==
`main
)
Instances For