TagState class
Keeps track of a currently open tag while it is being parsed.
The parser maintains a stack of these so it can handle nested tags.
Constructors
Properties
-
children
→ List<
Node> -
The children of this node. Will be
null
for text nodes.final - endPos → int
-
The point in the original source where open tag ended.
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- openingDelimiterRun → _DelimiterRun?
-
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startPos → int
-
The point in the original source where this tag started.
final
- syntax → TagSyntax?
-
The syntax that created this node.
final
- textContent → String
-
no setter
Methods
-
close(
InlineParser parser, Match? endMatch) → List< Node> ? - Pops this tag off the stack, completes it, and adds it to the output.
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
tryMatch(
InlineParser parser) → bool - Attempts to close this tag by matching the current text against its end pattern.
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited