aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/library/lux/meta.lux
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--stdlib/source/library/lux/meta.lux33
1 files changed, 0 insertions, 33 deletions
diff --git a/stdlib/source/library/lux/meta.lux b/stdlib/source/library/lux/meta.lux
index f1dcddff0..131e88b0d 100644
--- a/stdlib/source/library/lux/meta.lux
+++ b/stdlib/source/library/lux/meta.lux
@@ -427,39 +427,6 @@
[configuration [.#info .#configuration] (List [Text Text])]
)
-(def .public (local name)
- (-> Symbol (Meta Global))
- (do ..monad
- [name (..normal name)
- current_module_name ..current_module_name
- lux ..compiler_state]
- (loop (again [[normal_module normal_short] name])
- (when (is (Maybe Global)
- (do maybe.monad
- [(open "/[0]") (|> lux
- (the .#modules)
- (property.value normal_module))]
- (property.value normal_short /#definitions)))
- {.#Some it}
- (when it
- {.#Definition [exported? type value]}
- (if (or exported?
- (text#= current_module_name normal_module))
- (in it)
- (failure (all text#composite "Global is not an export: " (symbol#encoded name))))
-
- {.#Default [exported? type value]}
- (if (or exported?
- (text#= current_module_name normal_module))
- (in it)
- (failure (all text#composite "Global is not an export: " (symbol#encoded name))))
-
- {.#Alias de_aliased}
- (again de_aliased))
-
- {.#None it}
- (failure (all text#composite "Unknown global: " (symbol#encoded name)))))))
-
(def .public (definition_type name)
(-> Symbol (Meta Type))
(do ..monad