MCPcopy Index your code
hub / github.com/endbasic/endbasic / new

Method new

core/tests/testutils/callables/define_and_change_args_cmd.rs:29–44  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28impl DefineAndChangeArgsCommand {
29 pub(super) fn new() -> Rc<Self> {
30 Rc::from(Self {
31 metadata: CallableMetadataBuilder::new("DEFINE_AND_CHANGE_ARGS")
32 .with_syntax(&[(
33 &[],
34 Some(&RepeatedSyntax {
35 name: Cow::Borrowed("arg"),
36 type_syn: RepeatedTypeSyntax::VariableRef,
37 sep: ArgSepSyntax::OneOf(&[ArgSep::Long, ArgSep::Short]),
38 require_one: true,
39 allow_missing: false,
40 }),
41 )])
42 .test_build(),
43 })
44 }
45}
46
47impl Callable for DefineAndChangeArgsCommand {

Callers

nothing calls this directly

Calls 2

test_buildMethod · 0.80
with_syntaxMethod · 0.80

Tested by

no test coverage detected