Class ForeignHashComment

java.lang.Object
org.ek9lang.compiler.repair.ForeignHashComment
All Implemented Interfaces:
TextRule

final class ForeignHashComment extends Object implements TextRule
A foreign spelling (was ForeignSyntax.hashComment): a # note comment line - EK9's // note. Only on the line the parser stopped on, and never line 1 (the shebang's).
  • Constructor Details

    • ForeignHashComment

      ForeignHashComment()
  • Method Details

    • apply

      public TextRule.Rewrite apply(List<String> lines, SyntaxProbe.SyntaxError failure)
      Description copied from interface: TextRule
      The rewrite of lines answering failure, or null.
      Specified by:
      apply in interface TextRule
      Parameters:
      lines - the source's lines (never modified by a rule - a rewrite carries its own copy)
      failure - the first syntax error, as the parser reported it