1
0
forked from M-Labs/nac3

FnCall::{begin -> builder}

This commit is contained in:
lyken 2024-08-27 17:20:10 +08:00
parent 5fca81c68e
commit fdd194ee2a
No known key found for this signature in database
GPG Key ID: 3BD5FC6AC8325DD8

View File

@ -47,7 +47,7 @@ pub struct FnCall<'ctx, 'a, 'b, 'c, 'd, G: CodeGenerator + ?Sized> {
}
impl<'ctx, 'a, 'b, 'c, 'd, G: CodeGenerator + ?Sized> FnCall<'ctx, 'a, 'b, 'c, 'd, G> {
pub fn begin(generator: &'d mut G, ctx: &'b CodeGenContext<'ctx, 'a>, name: &'c str) -> Self {
pub fn builder(generator: &'d mut G, ctx: &'b CodeGenContext<'ctx, 'a>, name: &'c str) -> Self {
FnCall { generator, ctx, name, args: Vec::new(), attrs: Vec::new() }
}