Class ErrorSpan

java.lang.Object
com.jozufozu.flywheel.core.source.span.Span
com.jozufozu.flywheel.core.source.span.ErrorSpan
All Implemented Interfaces:
CharSequence

public class ErrorSpan extends Span
Represents a (syntactically) malformed segment of code.
  • Constructor Details

  • Method Details

    • subSpan

      public Span subSpan(int from, int to)
      Description copied from class: Span
      Get a span referring to a code segment inside this code segment.
      Specified by:
      subSpan in class Span
    • get

      public String get()
      Specified by:
      get in class Span
      Returns:
      the portion of code represented by this span.
    • isErr

      public boolean isErr()
      Specified by:
      isErr in class Span