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

Method format_one

core/src/callable.rs:611–617  ·  view source on GitHub ↗
(cs: &CallableSyntax)

Source from the content-addressed store, hash-verified

609 /// Gets the callable's syntax specification.
610 pub fn syntax(&self) -> String {
611 fn format_one(cs: &CallableSyntax) -> String {
612 let mut syntax = cs.describe();
613 if syntax.is_empty() {
614 syntax.push_str("no arguments");
615 }
616 syntax
617 }
618
619 match self.syntaxes.as_slice() {
620 [] => panic!("Callables without syntaxes are not allowed at construction time"),

Callers

nothing calls this directly

Calls 3

push_strMethod · 0.80
describeMethod · 0.45
is_emptyMethod · 0.45

Tested by

no test coverage detected