162
162
163
163
function printmodel (
164
164
io:: IO ,
165
- m:: ConstantModel ;
165
+ m:: LeafModel ;
166
166
header = DEFAULT_HEADER,
167
167
indentation_str = " " ,
168
168
show_subtree_info = false ,
@@ -186,40 +186,7 @@ function printmodel(
186
186
" " : " \n $(indentation_str) Info: $(info (m)) " ) " )
187
187
end
188
188
depth == 0 && show_symbols && print (io, MODEL_SYMBOL)
189
- print (io, " $(outcome (m)) " )
190
- (show_subtree_metrics || show_metrics != false ) && print (io, " : $(get_metrics_string (m; (show_metrics isa NamedTuple ? show_metrics : []). .. )) " )
191
- show_shortforms != false && haskey (info (m), :shortform ) && print (io, " \t\t\t\t\t\t\t SHORTFORM: $(@_antecedent_syntaxstring info (m)[:shortform ] m parenthesize_atoms syntaxstring_kwargs kwargs) " )
192
- println (io, " " )
193
- nothing
194
- end
195
-
196
- function printmodel (
197
- io:: IO ,
198
- m:: FunctionModel ;
199
- header = DEFAULT_HEADER,
200
- indentation_str = " " ,
201
- depth = 0 ,
202
- show_subtree_info = false ,
203
- show_subtree_metrics = false ,
204
- show_metrics = false ,
205
- show_shortforms = false ,
206
- show_intermediate_finals = false ,
207
- tree_mode = false ,
208
- show_symbols = true ,
209
- syntaxstring_kwargs = (;),
210
- parenthesize_atoms = true ,
211
- kwargs... ,
212
- )
213
- if header != false
214
- _typestr = string (header == true ? typeof (m) :
215
- header == :brief ? nameof (typeof (m)) :
216
- error (" Unexpected value for parameter header: $(header) ." )
217
- )
218
- println (io, " $(indentation_str)$(_typestr)$((length (info (m)) == 0 ) ?
219
- " " : " \n $(indentation_str) Info: $(info (m)) " ) " )
220
- end
221
- depth == 0 && show_symbols && print (io, MODEL_SYMBOL)
222
- print (io, " $(f (m)) " )
189
+ print (io, " $(leafmodelname (m)) " )
223
190
(show_subtree_metrics || show_metrics != false ) && print (io, " : $(get_metrics_string (m; (show_metrics isa NamedTuple ? show_metrics : []). .. )) " )
224
191
show_shortforms != false && haskey (info (m), :shortform ) && print (io, " \t\t\t\t\t\t\t SHORTFORM: $(@_antecedent_syntaxstring info (m)[:shortform ] m parenthesize_atoms syntaxstring_kwargs kwargs) " )
225
192
println (io, " " )
0 commit comments