MCPcopy Create free account
hub / github.com/aspizu/goboscript / node_input

Method node_input

src/codegen/input.rs:185–196  ·  view source on GitHub ↗
(
        &mut self,
        input_name: &str,
        node_id: NodeID,
        shadow_id: Option<NodeID>,
    )

Source from the content-addressed store, hash-verified

183 }
184
185 fn node_input(
186 &mut self,
187 input_name: &str,
188 node_id: NodeID,
189 shadow_id: Option<NodeID>,
190 ) -> io::Result<()> {
191 if ["CONDITION", "CONDITION2"].contains(&input_name) {
192 return write!(self, "[2,{node_id}]");
193 }
194 write!(self, "[3,{node_id},")?;
195 self.shadow_input(input_name, shadow_id)
196 }
197
198 fn shadow_input(&mut self, input_name: &str, shadow_id: Option<NodeID>) -> io::Result<()> {
199 if let Some(shadow_id) = shadow_id {

Callers 1

_inputMethod · 0.80

Calls 1

shadow_inputMethod · 0.80

Tested by

no test coverage detected