refactor: Equal -> Assign

This commit is contained in:
Shunsuke Shibayama 2023-03-30 01:27:51 +09:00
parent 3f66981c5c
commit 6f334b6bcc
6 changed files with 29 additions and 29 deletions

View file

@ -652,7 +652,7 @@ impl Desugarer {
};
let id = DefId(get_hash(&(&acc, buf_name)));
let block = Block::new(vec![Expr::Accessor(acc)]);
let op = Token::from_str(TokenKind::Equal, "=");
let op = Token::from_str(TokenKind::Assign, "=");
let body = DefBody::new(op, block, id);
match &sig.pat {
VarPattern::Tuple(tup) => {
@ -753,7 +753,7 @@ impl Desugarer {
let var = VarSignature::new(VarPattern::Ident(ident.clone()), None);
let sig = Signature::Var(var);
let body = DefBody::new(
Token::from_str(TokenKind::Equal, "="),
Token::from_str(TokenKind::Assign, "="),
Block::new(vec![Expr::local(
ident.inspect(),
ident.ln_begin().unwrap_or(1),
@ -1027,7 +1027,7 @@ impl Desugarer {
};
let id = DefId(get_hash(&(&acc, buf_name)));
let block = Block::new(vec![Expr::Accessor(acc)]);
let op = Token::from_str(TokenKind::Equal, "=");
let op = Token::from_str(TokenKind::Assign, "=");
let body = DefBody::new(op, block, id);
let line = sig.ln_begin().unwrap_or(1);
match &mut sig.pat {