Class BoxStatementError

All Implemented Interfaces:
BoxVisitable

public class BoxStatementError extends BoxStatement
  • Constructor Details

    • BoxStatementError

      public BoxStatementError(Position position, String sourceText)
      Constructor
      Parameters:
      position - position of the statement in the source code
      sourceText - source code of the statement
  • Method Details

    • accept

      public void accept(VoidBoxVisitor v)
      Do not call as this node means the AST is in error
      Parameters:
      v - the visitor implementation
    • accept

      public BoxNode accept(ReplacingBoxVisitor v)
      Do not call as this indicates there was a parser error and you should not try to generate any code when the AST is in error.
      Parameters:
      v - the visitor implementation
      Returns:
      null