InlineParser class
Maintains the internal state needed to parse inline span elements in Markdown.
Constructors
-
InlineParser(List<
UnparsedContent> source, Markdown document)
Properties
- document → Markdown
-
The Markdown document this parser is parsing.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- isDone → bool
-
no setterinherited
- length → int
-
no setterinherited
- position → int
-
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
-
source
→ List<
SourceSpan> -
The source is a list of the segments of Markdown string. A segment does
not mean a line of string, it does not matter if a segment is a single or
multiple lines of string, also multiple segments may belong to the same
line of string.
finalinherited
-
syntaxes
→ List<
InlineSyntax> -
final
Methods
-
advance(
) → void -
Moves the read position one character ahead.
inherited
-
advanceBy(
int length) → void -
Moves the read position for
length
characters.length
can be negative.inherited -
charAt(
[int? position]) → int -
The
position
can not be the end position which is not actually in the source.inherited -
consume(
) → SourceSpan -
inherited
-
consumeBy(
int length) → List< SourceSpan> -
inherited
-
emptySpan(
[int? position]) → SourceSpan -
Creates an empty SourceSpan from
position
inherited -
matchFromStart(
RegExp pattern, [int start = 0]) → Match? -
inherited
-
moveThroughWhitespace(
{bool multiLine = false}) → int -
Walk the parser forward through any whitespace.
inherited
-
nextChar(
[int? position]) → int? -
inherited
-
nextString(
[int? position]) → String? -
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
parse(
) → List< InlineObject> -
pushDelimiter(
Delimiter delimiter) → void -
Push
delimiter
onto the stack ofDelimiter
s. -
skipWhitespace(
) → void - Skip a whitespace at current position.
-
spanAt(
[int? position]) → SourceSpan -
Returns a
SourceSpan
atposition
.inherited -
stringAt(
[int? position]) → String -
The same as charAt but returns a string.
inherited
-
subspan(
int start, [int? end]) → List< SourceSpan> -
Returns a list of spans from
start
(inclusive) toend
(exclusive).inherited -
substring(
int start, [int? end]) → String -
Substrings the
_sourceText
and returns a String.inherited -
toSourceLocation(
[int? position]) → SourceLocation -
Converts a
position
toSourceLocation
. If thecoordinate
is the end position which is not actually in the source, it will return the end location which is not actually in the source too.inherited -
toString(
) → String -
A string representation of this object.
inherited
-
writeText(
) → void
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited