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

Method arg_impl

src/codegen/expr.rs:82–102  ·  view source on GitHub ↗
(
        &mut self,
        this_id: NodeID,
        parent_id: NodeID,
        qualified_name: &str,
        is_boolean: bool,
    )

Source from the content-addressed store, hash-verified

80 }
81
82 fn arg_impl(
83 &mut self,
84 this_id: NodeID,
85 parent_id: NodeID,
86 qualified_name: &str,
87 is_boolean: bool,
88 ) -> io::Result<()> {
89 self.begin_node(
90 Node::new(
91 if is_boolean {
92 "argument_reporter_boolean"
93 } else {
94 "argument_reporter_string_number"
95 },
96 this_id,
97 )
98 .parent_id(parent_id),
99 )?;
100 self.single_field("VALUE", qualified_name)?;
101 self.end_obj() // node
102 }
103
104 pub fn repr(
105 &mut self,

Callers 1

argMethod · 0.80

Calls 5

newFunction · 0.85
begin_nodeMethod · 0.80
parent_idMethod · 0.80
single_fieldMethod · 0.80
end_objMethod · 0.80

Tested by

no test coverage detected