Handbook
Glossary
indent-section? ( section -- ? )
Factor handbook
»
Developer tools
»
The prettyprinter
»
Extending the prettyprinter
»
Prettyprinter sections
»
Prettyprinter section protocol
Prev:
section-fits? ( section -- ? )
Next:
unindent-first-line? ( section -- ? )
Vocabulary
prettyprint
.
sections
Inputs
section
a
section
Outputs
?
a
boolean
Generic word contract
Outputs a boolean indicating if the indent level should be increased when printing this section as a
long-section
. Default implementation outputs
f
.
Definition
IN:
prettyprint.sections
GENERIC:
indent-section?
( section -- ? )
Methods
USING:
kernel
prettyprint.sections
;
M:
colon
indent-section?
drop
t
;
USING:
kernel
prettyprint.sections
;
M:
inset
indent-section?
drop
t
;
USING:
kernel
prettyprint.sections
;
M:
section
indent-section?
drop
f
;