summaryrefslogtreecommitdiff
path: root/src/eval/mod.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-04 20:22:11 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-04 20:22:11 +0200
commitef8aa763faa59fd62c90c6d6245e8d2c5eece35e (patch)
treed36192af0c770b076a5004ba8bcae3c2df728c75 /src/eval/mod.rs
parenta41d7ab47dda1e30465bdf91fd02bca0e634a38d (diff)
Shorten some names ↔
Diffstat (limited to 'src/eval/mod.rs')
-rw-r--r--src/eval/mod.rs6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/eval/mod.rs b/src/eval/mod.rs
index dc35ce71..3796669b 100644
--- a/src/eval/mod.rs
+++ b/src/eval/mod.rs
@@ -90,13 +90,13 @@ impl Eval for ExprCall {
let span = self.name.span;
let args = self.args.eval(ctx).await;
- if let Some(func) = ctx.state.scope.func(name) {
- ctx.f.decorations.push(Decoration::Resolved.span_with(span));
+ if let Some(func) = ctx.state.scope.get(name) {
+ ctx.f.decos.push(Deco::Resolved.span_with(span));
(func.clone())(args, ctx).await
} else {
if !name.is_empty() {
error!(@ctx.f, span, "unknown function");
- ctx.f.decorations.push(Decoration::Unresolved.span_with(span));
+ ctx.f.decos.push(Deco::Unresolved.span_with(span));
}
Value::Dict(args)
}