TextParserRule class Null safety

Looks for a TextNode and then matches TextNode.text with a RegExp. It creates replacement nodes

Inheritance
Implementers

Constructors

TextParserRule(FluentRegex expression)

Properties

expression FluentRegex
final
hashCode int
The hash code for this object. [...]
read-only, inherited
runtimeType Type
A representation of the runtime type of the object.
read-only, inherited

Methods

createMatches(String text) List<RegExpMatch>
A method that can be overridden by sibling classes if additional logic is needed This is the default operation
createReplacementNode(ParentNode parent, RegExpMatch match) Future<Node>
Note that the parentNode parameter should only be used to get information from the tree to create replacement nodes. The Parser will add the created replacement node's to the parent.
createReplacementNodes(ChildNodesToReplace childNodesToReplace) Future<List<Node>>
It will replace the TextNode with: [...]
override
createTextBeforeNode(TextNode textNode, int start) TextNode?
createTrailingTextNode(TextNode textNode, int end) TextNode?
findChildNodesToReplace(ParentNode node) ChildNodesToReplace
Searches all child nodes for TextNodes that have a match with the expression
override
noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
removeMatchesInsideMatches(List<RegExpMatch> matches) List<RegExpMatch>
Removing RegEx matches that are inside other matches. These will be replaced later when the replacement nodes are parsed
toString() String
A string representation of this object. [...]
inherited

Operators

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