Skip to content

Commit 9d6c9de

Browse files
Add FunctionBuilder::local_func method. (#225)
1 parent 8948b44 commit 9d6c9de

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/function_builder.rs

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,11 @@ impl FunctionBuilder {
154154
let func = LocalFunction::new(args, self);
155155
funcs.add_local(func)
156156
}
157+
158+
/// Returns the [crate::LocalFunction] built by this builder.
159+
pub fn local_func(self, args: Vec<LocalId>) -> LocalFunction {
160+
LocalFunction::new(args, self)
161+
}
157162
}
158163

159164
/// A builder returned by instruction sequence-construction methods to build up

0 commit comments

Comments
 (0)