Class NodePrinterText
java.lang.Object
org.ek9lang.compiler.common.NodePrinterText
- All Implemented Interfaces:
Function<IRConstruct, String>
THE text of a construct's IR as a person reads it: the
NodePrinter rendering, \n-terminated lines.
It is the form the @IR goldens are compared against (IRDirectiveListener,
IRParameterisedDirectiveListener) and, since D4 (Steve, 2026-11-12), the form the IR manifest hashes
(backend/ConstructIrManifest): one serialisation, so a fact the printer renders - [acyclic],
[confined], [registered], [callback], and the per-value record to come - is in the hash.
IRConstruct.toString() renders none of them and is for a debugger, never for a comparison. Hold one;
never a private new NodePrinter(...) over a StringWriter.-
Constructor Details
-
NodePrinterText
public NodePrinterText()
-
-
Method Details
-
apply
- Specified by:
applyin interfaceFunction<IRConstruct, String>
-