Skip to content

Commit

Permalink
Fixed function names
Browse files Browse the repository at this point in the history
  • Loading branch information
Armd04 committed Sep 26, 2024
1 parent 44d8f1e commit 73a063d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions crates/deno_task_shell/src/parser.rs
Original file line number Diff line number Diff line change
Expand Up @@ -427,7 +427,7 @@ pub enum ArithmeticPart {
right: Box<ArithmeticPart>,
},
#[error("Invalid unary arithmetic expression")]
UnaryAritheticExpr {
UnaryArithmeticExpr {
operator: UnaryArithmeticOp,
operand: Box<ArithmeticPart>,
},
Expand Down Expand Up @@ -1463,14 +1463,14 @@ fn unary_pre_arithmetic_expr(pair: Pair<Rule>) -> Result<ArithmeticPart> {
match first.as_rule() {
Rule::pre_arithmetic_op => {
let op = parse_pre_arithmetic_op(first)?;
Ok(ArithmeticPart::UnaryAritheticExpr {
Ok(ArithmeticPart::UnaryArithmeticExpr {
operator: UnaryArithmeticOp::Pre(op),
operand: Box::new(operand),
})
}
Rule::post_arithmetic_op => {
let op = parse_pre_arithmetic_op(first)?;
Ok(ArithmeticPart::UnaryAritheticExpr {
Ok(ArithmeticPart::UnaryArithmeticExpr {
operator: UnaryArithmeticOp::Pre(op),
operand: Box::new(operand),
})
Expand Down Expand Up @@ -1505,7 +1505,7 @@ fn unary_post_arithmetic_expr(pair: Pair<Rule>) -> Result<ArithmeticPart> {
)),
}?;
let op = parse_post_arithmetic_op(second)?;
Ok(ArithmeticPart::UnaryAritheticExpr {
Ok(ArithmeticPart::UnaryArithmeticExpr {
operator: UnaryArithmeticOp::Post(op),
operand: Box::new(operand),
})
Expand Down
2 changes: 1 addition & 1 deletion crates/deno_task_shell/src/shell/execute.rs
Original file line number Diff line number Diff line change
Expand Up @@ -618,7 +618,7 @@ async fn evaluate_arithmetic_part(
let rhs = Box::pin(evaluate_arithmetic_part(right, state)).await?;
apply_conditional_binary_op(lhs, operator, rhs)
}
ArithmeticPart::UnaryAritheticExpr { operator, operand } => {
ArithmeticPart::UnaryArithmeticExpr { operator, operand } => {
let val = Box::pin(evaluate_arithmetic_part(operand, state)).await?;
apply_unary_op(state, *operator, val, operand)
}
Expand Down

0 comments on commit 73a063d

Please sign in to comment.