Skip to content

Commit

Permalink
TMP - added
Browse files Browse the repository at this point in the history
  • Loading branch information
Cypher1 committed Sep 8, 2024
1 parent 66f8089 commit 9bf9026
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions takolib/src/parser/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
if let Some(arguments) = arguments {
let inner = self.identifier(name, location);
trace!("{indent}Add call", indent = self.indent());
let args = self.handle_bindings(arguments)?.into();
let args = self.bindings_as_values(arguments)?.into();
let call = self.ast.add_call(Call { inner, args }, location);
if let Some(ty) = ty {
return Ok(Some(self.ast.add_annotation(call, ty)));
Expand Down Expand Up @@ -426,7 +426,7 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
Ok(BindingOrValue::Value(value))
}

fn handle_bindings(
fn bindings_as_values(
&mut self,
bindings: SmallVec<BindingOrValue, 2>,
) -> Result<Vec<NodeId>, TError> {
Expand Down Expand Up @@ -636,7 +636,7 @@ impl<'src, 'toks, T: Iterator<Item = &'toks Token>> ParseState<'src, 'toks, T> {
while self.operator_is(Symbol::CloseParen).is_err() {
args.push(self.binding_or_arg()?);
}
let args = self.handle_bindings(args)?.into();
let args = self.bindings_as_values(args)?.into();
left = self.ast.add_call(Call { inner: left, args }, location);
} else {
// TODO: Check that this is the right kind of operator.
Expand Down

0 comments on commit 9bf9026

Please sign in to comment.