asCapture method
Wraps this pattern in a capturing group
Implementation
Pattern asCapture() {
return Pattern._(
nodes.Group(capturing: true, body: _node),
namedGroups: _namedGroups,
);
}
Wraps this pattern in a capturing group
Pattern asCapture() {
return Pattern._(
nodes.Group(capturing: true, body: _node),
namedGroups: _namedGroups,
);
}