void switch_formatSource(caValue* source, Term* term) { format_name_binding(source, term); append_phrase(source, "switch ", term, name_Keyword); format_source_for_input(source, term, 0); format_branch_source(source, nested_contents(term), term); }
void formatSource(StyledSource* source, Term* term) { format_heading(source, term); format_branch_source(source, nested_contents(term), term); append_phrase(source, term->stringPropOptional("syntax:whitespaceBeforeEnd", ""), term, TK_WHITESPACE); }
void format_source(caValue* source, Term* term) { append_phrase(source, "namespace ", term, name_Keyword); append_phrase(source, term->name, term, name_TermName); format_branch_source(source, nested_contents(term), term); append_phrase(source, term->stringProp("syntax:preEndWs", ""), term, tok_Whitespace); }
void Branch__format_source(caStack* stack) { Branch* branch = as_branch(circa_input(stack, 0)); caValue* output = circa_output(stack, 0); circa_set_list(output, 0); format_branch_source((caValue*) output, branch); }
void case_formatSource(caValue* source, Term* term) { append_phrase(source, "case ", term, name_Keyword); format_source_for_input(source, term, 0); format_branch_source(source, nested_contents(term), term); }