Represents a successful match. Contains microgrammar information
in fields with names beginning with $ and any user-defined fields.
To ensure this separation works cleanly, not bind user data to fields beginning with $.
the $value that is extracted from this matcher. May be a
scalar or an array, or a nested structure. May or not be the
same as $matched property.
Methods
matchedStructure
matchedStructure<T>(): T
Return just the structure that was matched, throwing away offset and matcher information.
This is useful if you want to store PatternMatches after you're done with their internal information.
Represents a successful match. Contains microgrammar information in fields with names beginning with $ and any user-defined fields. To ensure this separation works cleanly, not bind user data to fields beginning with $.