AbstractNamedSectionParser class abstract

Parses named sections from tags like START name...END name.

Subclasses must implement parseUnsorted for parsing.

This class does the following with the parsed sections:

  1. Validates. A section is invalid if any of these is true:
    • It starts before the line 0.
    • It ends after the last line (lineCount - 1).
    • The end line is before the start line.
  2. Sorts by the start lines.
Implementers

Constructors

AbstractNamedSectionParser()
const

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
parse({required List<SingleLineComment> singleLineComments}) List<NamedSection>
parseUnsorted({required List<SingleLineComment> singleLineComments}) List<NamedSection>
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited