File Coverage

blib/lib/PPIx/Regexp/Structure/Subexpression.pm
Criterion Covered Total %
statement 12 12 100.0
branch n/a
condition n/a
subroutine 4 4 100.0
pod n/a
total 16 16 100.0


line stmt bran cond sub pod time code
1             =head1 NAME
2              
3             PPIx::Regexp::Structure::Subexpression - Represent an independent subexpression
4              
5             =head1 SYNOPSIS
6              
7             use PPIx::Regexp::Dumper;
8             PPIx::Regexp::Dumper->new( 'qr{foo(?>bar)}smx' )
9             ->print();
10              
11             =head1 INHERITANCE
12              
13             C<PPIx::Regexp::Structure::Subexpression> is a
14             L<PPIx::Regexp::Structure|PPIx::Regexp::Structure>.
15              
16             C<PPIx::Regexp::Structure::Subexpression> has no descendants.
17              
18             =head1 DESCRIPTION
19              
20             This class represents an independent subexpression which must (says
21             F<perlre>) match at the current location.
22              
23             =head1 METHODS
24              
25             This class provides no public methods beyond those provided by its
26             superclass.
27              
28             =cut
29              
30             package PPIx::Regexp::Structure::Subexpression;
31              
32 9     9   43 use strict;
  9         12  
  9         259  
33 9     9   31 use warnings;
  9         11  
  9         408  
34              
35 9     9   35 use base qw{ PPIx::Regexp::Structure };
  9         15  
  9         630  
36              
37 9     9   45 use PPIx::Regexp::Constant qw{ @CARP_NOT };
  9         28  
  9         905  
38              
39             our $VERSION = '0.091';
40              
41             1;
42              
43             __END__
44              
45             =head1 SUPPORT
46              
47             Support is by the author. Please file bug reports at
48             L<https://rt.cpan.org/Public/Dist/Display.html?Name=PPIx-Regexp>,
49             L<https://github.com/trwyant/perl-PPIx-Regexp/issues>, or in
50             electronic mail to the author.
51              
52             =head1 AUTHOR
53              
54             Thomas R. Wyant, III F<wyant at cpan dot org>
55              
56             =head1 COPYRIGHT AND LICENSE
57              
58             Copyright (C) 2009-2023, 2025 by Thomas R. Wyant, III
59              
60             This program is free software; you can redistribute it and/or modify it
61             under the same terms as Perl 5.10.0. For more details, see the full text
62             of the licenses in the directory LICENSES.
63              
64             This program is distributed in the hope that it will be useful, but
65             without any warranty; without even the implied warranty of
66             merchantability or fitness for a particular purpose.
67              
68             =cut
69              
70             # ex: set textwidth=72 :