From 2050b3dfe2e66c55def47813fc093010a7f0177e Mon Sep 17 00:00:00 2001 From: "xudong.w" Date: Mon, 29 Dec 2025 15:44:19 +0800 Subject: [PATCH] Create a new OneOf node with the given branches --- src/rewrite/exploitation.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/rewrite/exploitation.rs b/src/rewrite/exploitation.rs index 0283873..8bc2cd8 100644 --- a/src/rewrite/exploitation.rs +++ b/src/rewrite/exploitation.rs @@ -280,6 +280,13 @@ pub struct OneOf { branches: Vec, } +impl OneOf { + /// Create a new OneOf node with the given branches. + pub fn new(branches: Vec) -> Self { + Self { branches } + } +} + impl UserDefinedLogicalNodeCore for OneOf { fn name(&self) -> &str { "OneOf"