Skip to content

Commit a7d2e04

Browse files
committed
address review comments
1 parent 11c0e25 commit a7d2e04

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

src/Lean/Environment.lean

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1465,7 +1465,7 @@ inductive OLeanLevel where
14651465
| server
14661466
/-- Private module data. -/
14671467
| «private»
1468-
deriving DecidableEq, Ord
1468+
deriving DecidableEq, Ord, Repr
14691469

14701470
instance : LE OLeanLevel := leOfOrd
14711471
instance : LT OLeanLevel := ltOfOrd
@@ -1524,8 +1524,11 @@ structure PersistentEnvExtension (α : Type) (β : Type) (σ : Type) where
15241524
Function to transform state into data that should be imported into other modules. When using the
15251525
module system without `import all`, `OLeanLevel.exported` is imported, else `OLeanLevel.private`.
15261526
Additionally, when using the module system in the language server, the `OLeanLevel.server` data is
1527-
accessible via `getModuleEntries (level := .server)`. Each level should include all data of
1528-
previous levels.
1527+
accessible via `getModuleEntries (level := .server)`. By convention, each level should include all
1528+
data of previous levels.
1529+
1530+
This function is run after elaborating the file and joining all asynchronous threads. It is run
1531+
once for each level when the module system is enabled, otherwise once for `private`.
15291532
-/
15301533
exportEntriesFn : Environment → σ → OLeanLevel → Array α
15311534
statsFn : σ → Format

0 commit comments

Comments
 (0)