Class VerbatimLines

java.lang.Object
org.ek9lang.compiler.formatter.VerbatimLines
All Implemented Interfaces:
Function<org.antlr.v4.runtime.CommonTokenStream, VerbatimLines.Lines>

final class VerbatimLines extends Object implements Function<org.antlr.v4.runtime.CommonTokenStream, VerbatimLines.Lines>
THE lines of a source that the formatter leaves as written - every pass asks this, never a private copy.

A multi-line comment's lines after its first are the comment's own layout. A multi-line String's lines are its VALUE: re-indenting one, re-spacing its tokens or splitting it changes what the program prints. So a String that spans lines (a backtick String from its opening to its closing backtick, or any other token holding a line break) keeps every line it touches exactly as written.

  • Constructor Details

    • VerbatimLines

      VerbatimLines()
  • Method Details