Class LastContentLine
java.lang.Object
org.ek9lang.compiler.support.LastContentLine
- All Implemented Interfaces:
ToIntFunction<org.antlr.v4.runtime.tree.ParseTree>
public final class LastContentLine
extends Object
implements ToIntFunction<org.antlr.v4.runtime.tree.ParseTree>
THE true last line of a parse rule: the 1-based line of the LAST real-content token under a node, or -1 when it
holds none. Unlike
ctx.getStop().getLine() this never over-runs onto the trailing DEDENT, which belongs to
the NEXT construct (see LayoutTokens). Hold one and apply it; never re-derive a getStop()
correction beside it.-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
LastContentLine
public LastContentLine()
-
-
Method Details
-
applyAsInt
public int applyAsInt(org.antlr.v4.runtime.tree.ParseTree node) - Specified by:
applyAsIntin interfaceToIntFunction<org.antlr.v4.runtime.tree.ParseTree>
-