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

Method shadow_input

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

Source from the content-addressed store, hash-verified

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 {
200 write!(self, "{shadow_id}]")
201 } else if input_name == "BROADCAST_INPUT" {
202 let broadcast_name = json!("message1");
203 write!(self, "[11,{},{}]]", broadcast_name, broadcast_name)
204 } else {
205 write!(self, r#"[10, ""]]"#)
206 }
207 }
208}

Callers 2

name_inputMethod · 0.80
node_inputMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected