Class ForeignBlockComment

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

final class ForeignBlockComment extends Object implements TextRule
A foreign spelling (was ForeignSyntax.blockComment): a C block comment (slash-star ... star-slash), on one line or several - EK9's <!- note -!>. It opens on the line the parser stopped on, outside any literal (MaskedLiterals).
  • Constructor Details

    • ForeignBlockComment

      ForeignBlockComment()
  • 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