ContentMatch
Instances of this class represent a match state of a node type's content expression, and can be used to find out whether further content matches here, and whether a given position is a valid end of the node.
§Properties
The number of outgoing edges this node has in the finite automaton that describes the content expression.
§Methods
Get the _n_th outgoing edge from this node in the finite automaton that describes the content expression.
Try to match the given fragment, and if that fails, see if it can
be made to match by inserting nodes in front of it. When
successful, return a fragment of inserted nodes (which may be
empty if nothing had to be inserted). When toEnd
is true, only
return a fragment if the resulting match goes to the end of the
content expression.
Match a node type, returning a match after that node if successful.