Class WritingOperator
java.lang.Object
org.ek9lang.compiler.support.WritingOperator
public final class WritingOperator
extends Object
implements Function<org.antlr.v4.runtime.ParserRuleContext, String>
THE grammar's write positions: which operator, if any, writes the thing an identifier occurrence names
(
SymbolWrites collects these over a symbol's uses). Was SymbolWrites.writingOperator
(no-statics lane S3, 2026-10-29).-
Constructor Details
-
WritingOperator
public WritingOperator()
-
-
Method Details
-
apply
The operator that writes the thingnodenames, or null when this occurrence only reads it. Purely structural (it needs no recorded symbol), so a caller holding an identifier occurrence - of the compiled tree or of a re-parsed body - asks HERE whether it is written rather than re-deriving the grammar's write positions.- Specified by:
applyin interfaceFunction<org.antlr.v4.runtime.ParserRuleContext, String>- Parameters:
node- the identifier node of the occurrence (asRecordedSymbols.Reference.node())
-