MCPcopy Create free account
hub / github.com/endbasic/endbasic / new

Method new

core/tests/testutils/callables/meaning_of_life_fn.rs:28–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

26
27impl MeaningOfLifeFunction {
28 pub(super) fn new() -> Rc<Self> {
29 Rc::from(Self {
30 metadata: CallableMetadataBuilder::new("MEANING_OF_LIFE")
31 .with_return_type(ExprType::Integer)
32 .with_syntax(&[(&[], None)])
33 .test_build(),
34 })
35 }
36}
37
38impl Callable for MeaningOfLifeFunction {

Callers

nothing calls this directly

Calls 3

test_buildMethod · 0.80
with_syntaxMethod · 0.80
with_return_typeMethod · 0.80

Tested by

no test coverage detected