BracketsStartEndNamedSectionParser class
Parses named sections from tags like START name...END name.
Section name may only contain english letters, numbers, and underscores. Section name must not be empty. Whitespaces are allowed before START/END, before name, and after name.
Sections can overlap and can be nested.
A section can start and end on the same line in a single comment or in two different comments.
If a section is never started, it starts at the line 0.
If a section is never ended, its lastLine is null.
If a section is started multiple times, the min line number takes effect. If a section is ended multiple times, the max line number takes effect.
The order of comments in the list does not matter.
- Inheritance
-
- Object
- AbstractNamedSectionParser
- BracketsStartEndNamedSectionParser
Constructors
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> -
inherited
-
parseUnsorted(
{required List< SingleLineComment> singleLineComments}) → List<NamedSection> -
override
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited