aboutsummaryrefslogtreecommitdiff
path: root/stdlib/source/lux/language/compiler/analysis/scope.lux
diff options
context:
space:
mode:
authorEduardo Julian2018-07-13 22:01:32 -0400
committerEduardo Julian2018-07-13 22:01:32 -0400
commit69fefab57c40f323d759dc444dbcebad15071585 (patch)
treedb08a3ea37c7818c8a98fc995d3c19440141b700 /stdlib/source/lux/language/compiler/analysis/scope.lux
parent6acf4ffc362c0f8ef77d96f8cfe991adb2d9a0eb (diff)
Re-named "Bool" type to "Bit".
Diffstat (limited to 'stdlib/source/lux/language/compiler/analysis/scope.lux')
-rw-r--r--stdlib/source/lux/language/compiler/analysis/scope.lux6
1 files changed, 3 insertions, 3 deletions
diff --git a/stdlib/source/lux/language/compiler/analysis/scope.lux b/stdlib/source/lux/language/compiler/analysis/scope.lux
index 2468ede27..3ee0499e8 100644
--- a/stdlib/source/lux/language/compiler/analysis/scope.lux
+++ b/stdlib/source/lux/language/compiler/analysis/scope.lux
@@ -21,7 +21,7 @@
(type: Foreign (Bindings Text [Type Variable]))
(def: (local? name scope)
- (-> Text Scope Bool)
+ (-> Text Scope Bit)
(|> scope
(get@ [#.locals #.mappings])
(plist.contains? name)))
@@ -35,7 +35,7 @@
[type (#reference.Local value)]))))
(def: (captured? name scope)
- (-> Text Scope Bool)
+ (-> Text Scope Bit)
(|> scope
(get@ [#.captured #.mappings])
(plist.contains? name)))
@@ -54,7 +54,7 @@
(recur (inc idx) mappings')))))
(def: (reference? name scope)
- (-> Text Scope Bool)
+ (-> Text Scope Bit)
(or (local? name scope)
(captured? name scope)))