Skip to content

Commit

Permalink
style: minor changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
plusvic committed Nov 6, 2024
1 parent de80655 commit 0d4a691
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions lib/src/compiler/ir/ast2ir.rs
Original file line number Diff line number Diff line change
Expand Up @@ -424,17 +424,17 @@ fn expr_from_ast(
ctx.ir.constant(TypeValue::const_bool_from(false))
}

ast::Expr::LiteralInteger(literal) => {
ctx.ir.constant(TypeValue::const_integer_from(literal.value))
ast::Expr::LiteralInteger(lit) => {
ctx.ir.constant(TypeValue::const_integer_from(lit.value))
}

ast::Expr::LiteralFloat(literal) => {
ctx.ir.constant(TypeValue::const_float_from(literal.value))
ast::Expr::LiteralFloat(lit) => {
ctx.ir.constant(TypeValue::const_float_from(lit.value))
}

ast::Expr::LiteralString(literal) => ctx
.ir
.constant(TypeValue::const_string_from(literal.value.as_bytes())),
ast::Expr::LiteralString(lit) => {
ctx.ir.constant(TypeValue::const_string_from(lit.value.as_bytes()))
}

ast::Expr::Regexp(regexp) => {
re::parser::Parser::new()
Expand Down

0 comments on commit 0d4a691

Please # to comment.