HTML/CommentVisitor.pm

filter: Statementstmt 2.7% 8 / 296 Branchbran 0.0% 0 / 82 Conditioncond 0.0% 0 / 21 MC/DCmcdc 0.0% 0 / 13 Subroutinesub 5.8% 2 / 34 Podpod 0.0% 0 / 23 totaltotal 2.1% 10 / 469 CC 63 SCAR 40.2
CC
63
Cov
2%
_process_text
156.0
visitOperation
132.0
_extract_doc
72.0
CRAP 55.9
« HTML/DeclVisitor.pm ↑ Summary HTML/NameVisitor.pm »
1
2 #
3 # Interface Definition Language (OMG IDL CORBA v3.0)
4 #
5
6 package CORBA::HTML::CommentVisitor;
7
8 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
9 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
10
11 1 our $VERSION = '2.60';
12
13 0 ▶sub new {
Subroutine new: not called CC=2 SCAR=17.9
Pod undocumented
14 0 my $proto = shift;
15 0 ▶ my $class = ref($proto) || $proto;
Condition0%0/3
ref $proto || $proto
l!l&&r!l&&!r
000
MC/DC0%0/2
ref $proto || $proto
ref $proto $proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
ABresult
1X1
011
000
16 0 my $self = {};
17 0 bless $self, $class;
18 0 $self->{parent} = shift;
19 0 return $self;
20 }
21
22 0 ▶sub _get_defn {
Subroutine _get_defn: not called CC=2 SCAR=17.9
23 0 my $self = shift;
24 0 my ($defn) = @_;
25 0 ▶ if (ref $defn) {
Branch: 1 branch
BranchTrueFalseTotal
if (ref $defn) { } 0 0 0
26 0 return $defn;
27 }
28 else {
29 0 return $self->{parent}->{symbtab}->Lookup($defn);
30 }
31 }
32
33 0 ▶sub _get_name {
Subroutine _get_name: not called CC=1 SCAR=6.9
34 0 my $self = shift;
35 0 my ($node) = @_;
36 0 return $node->visit($self->{parent}->{html_name},$self->{parent}->{scope});
37 }
38
39 0 ▶sub _extract_doc {
Subroutine _extract_doc: not called CC=8 SCAR=42.8
40 0 my $self = shift;
41 0 my ($node) = @_;
42 0 my $doc = undef;
43 0 my @tags = ();
44 0 ▶ unless ($node->isa('Parameter')) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($node->isa("Parameter")) 0 0 0
45 0 $self->{scope} = $node->{full};
46 0 $self->{scope} =~ s/::[0-9A-Z_a-z]+$//;
47 }
48 0 ▶ if (exists $node->{doc}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $node->{"doc"}) 0 0 0
49 0 my @lines = split /\n/, $node->{doc};
50 0 foreach (@lines) {
51 0 ▶ if (/^\s*@\s*([\s0-9A-Z_a-z]+):\s*(.*)/) {
Branch: 2 branches
BranchTrueFalseTotal
if (/^\s*\@\s*([\s0-9A-Z_a-z]+):\s*(.*)/) { } 0 0 0
elsif (/^\s*\@\s*([A-Z_a-z][0-9A-Z_a-z]*)\s+(.*)/) { } 0 0 0
52 0 my $tag = $1;
53 0 my $value = $2;
54 0 $tag =~ s/\s*$//;
55 0 push @tags, [$tag, $value];
56 }
57 elsif (/^\s*@\s*([A-Z_a-z][0-9A-Z_a-z]*)\s+(.*)/) {
58 0 push @tags, [$1, $2];
59 }
60 else {
61 0 $doc .= $_;
62 0 $doc .= "\n";
63 }
64 }
65 }
66 # adds tag from pragma
67 0 ▶ if (exists $node->{id}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $node->{'id'}) { } 0 0 0
68 0 push @tags, ['Repository ID', $node->{id}];
69 }
70 else {
71 0 ▶ if (exists $node->{version}) {
Branch: 1 branch
BranchTrueFalseTotal
if (exists $node->{"version"}) 0 0 0
72 0 push @tags, ['version', $node->{version}];
73 }
74 }
75 0 return ($doc, \@tags);
76 }
77
78 0 ▶sub _lookup {
Subroutine _lookup: not called CC=7 SCAR=40.3
79 0 my $self = shift;
80 0 my ($name) = @_;
81 0 my $defn;
82 # print "_lookup: '$name'\n";
83 0 ▶ if ($name =~ /^::/) {
Branch: 2 branches
BranchTrueFalseTotal
if ($name =~ /^::/) { } 0 0 0
elsif ($name =~ /^[0-9A-Z_a-z]+$/) { } 0 0 0
84 # global name
85 0 return $self->{parent}->{parser}->YYData->{symbtab}->___Lookup($name);
86 }
87 elsif ($name =~ /^[0-9A-Z_a-z]+$/) {
88 # identifier alone
89 0 my $scope = $self->{scope};
90 0 while (1) {
91 # Section 3.15.3 Special Scoping Rules for Type Names
92 0 my $g_name = $scope . '::' . $name;
93 0 $defn = $self->{parent}->{parser}->YYData->{symbtab}->__Lookup($scope, $g_name, $name);
94 0 ▶ last if (defined $defn || $scope eq q{});
Branch: 1 branch
BranchTrueFalseTotal
if defined $defn or $scope eq "" 0 0 0
Condition0%0/3
defined $defn or $scope eq ""
l!l&&r!l&&!r
000
MC/DC0%0/2
defined $defn or $scope eq ""
defined $defn $scope eq ""
Truth table0%0/3
A or B
A= defined $defnB= $scope eq ""
ABresult
1X1
011
000
95 0 $scope =~ s/::[0-9A-Z_a-z]+$//;
96 };
97 0 return $defn;
98 }
99 else {
100 # qualified name
101 0 my @list = split /::/, $name;
102 0 ▶ return undef unless (scalar @list > 1);
Branch: 1 branch
BranchTrueFalseTotal
unless scalar @list > 1 0 0 0
103 0 my $idf = pop @list;
104 0 my $scoped_name = $name;
105 0 $scoped_name =~ s/(::[0-9A-Z_a-z]+$)//;
106 # print "qualified name : '$scoped_name' '$idf'\n";
107 0 my $scope = $self->_lookup($scoped_name); # recursive
108 0 ▶ if (defined $scope) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $scope) 0 0 0
109 0 $defn = $self->{parent}->{parser}->YYData->{symbtab}->___Lookup($scope->{full} . '::' . $idf);
110 }
111 0 return $defn;
112 }
113 }
114
115 0 ▶sub _process_text {
Subroutine _process_text: not called CC=12 SCAR=50.5
116 0 my $self = shift;
117 0 my ($text) = @_;
118
119 # keep track of leading and trailing white-space
120 0 ▶ my $lead = ($text =~ s/\A(\s+)//s ? $1 : q{});
Branch: 1 branch
BranchTrueFalseTotal
$text =~ s/\A(\s+)//s ? : 0 0 0
121 0 ▶ my $trail = ($text =~ s/(\s+)\Z//s ? $1 : q{});
Branch: 1 branch
BranchTrueFalseTotal
$text =~ s/(\s+)\Z//s ? : 0 0 0
122
123 # split at space/non-space boundaries
124 0 my @words = split( /(?<=\s)(?=\S)|(?<=\S)(?=\s)/, $text );
125
126 # process each word individually
127 0 foreach my $word (@words) {
128 # skip space runs
129 0 ▶ next if $word =~ /^\s*$/;
Branch: 1 branch
BranchTrueFalseTotal
if $word =~ /^\s*$/ 0 0 0
130 0 ▶ if ($word =~ /^[\w:]+$/) {
Branch: 3 branches
BranchTrueFalseTotal
if ($word =~ /^[\w:]+$/) { } 0 0 0
elsif ($word =~ m[^\w+://\w]) { } 0 0 0
elsif ($word =~ /^[\w.-]+\@[\w.-]+/) { } 0 0 0
131 # looks like a IDL identifier
132 0 my $node = $self->_lookup($word);
133 0 ▶ if ( defined $node
Branch: 1 branch
BranchTrueFalseTotal
if (defined $node and exists $node->{"file_html"} and $word =~ /$node->{"idf"}/) 0 0 0
Condition0%0/6
defined $node and exists $node->{"file_html"} and $word =~ /$node->{"idf"}/
!ll&&!rl&&r
000
defined $node and exists $node->{"file_html"}
!ll&&!rl&&r
000
MC/DC0%0/3
defined $node and exists $node->{"file_html"} and $word =~ /$node->{"idf"}/
defined $node exists $node->{"file_html"} $word =~ /$node->{"idf"}/
Truth table0%0/4
A and B and C
A= defined $nodeB= exists $node->{"file_html"}C= $word =~ /$node->{"idf"}/
ABCresult
0XX0
10X0
1100
1111
134 and exists $node->{file_html}
135 and $word =~ /$node->{idf}/ ) {
136 0 ▶ my $anchor = $node->{html_name} || $node->{idf};
Condition0%0/3
$node->{'html_name'} || $node->{'idf'}
l!l&&r!l&&!r
000
MC/DC0%0/2
$node->{'html_name'} || $node->{'idf'}
$node->{'html_name'} $node->{'idf'}
Truth table0%0/3
A || B
A= $node->{'html_name'}B= $node->{'idf'}
ABresult
1X1
011
000
137 0 $word = "<a href='" . $node->{file_html} . "#" . $anchor . "'>" . $word . "</a>";
138 }
139 }
140 elsif ($word =~ /^\w+:\/\/\w/) {
141 # looks like a URL
142 # Don't relativize it: leave it as the author intended
143 0 $word = "<a href='" . $word . "'>" . $word . "</a>";
144 }
145 elsif ($word =~ /^[\w.-]+\@[\w.-]+/) {
146 # looks like an e-mail address
147 0 $word = "<a href='mailto:" . $word . "'>" . $word . "</a>";
148 }
149 }
150
151 # put everything back together
152 0 return $lead . join(q{}, @words) . $trail;
153 }
154
155 0 ▶sub _format_doc_bloc {
Subroutine _format_doc_bloc: not called CC=2 SCAR=17.9
156 0 my $self = shift;
157 0 my ($doc, $FH) = @_;
158 0 ▶ if (defined $doc) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $doc) 0 0 0
159 0 $doc = $self->_process_text($doc);
160 0 print $FH " <p class='comment'>",$doc,"</p>\n";
161 }
162 }
163
164 0 ▶sub _format_doc_line {
Subroutine _format_doc_line: not called CC=3 SCAR=24.8
165 0 my $self = shift;
166 0 my ($node, $doc, $FH) = @_;
167 0 my $anchor = q{};
168 0 ▶ unless ($node->isa('Parameter')) {
Branch: 1 branch
BranchTrueFalseTotal
unless ($node->isa("Parameter")) 0 0 0
169 0 $anchor = "<a id='" . $node->{html_name} . "' name='" . $node->{html_name} . "'/>\n";
170 }
171 0 ▶ if (defined $doc) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $doc) { } 0 0 0
172 0 $doc = $self->_process_text($doc);
173 0 print $FH " <li>",$anchor,$node->{idf}," : <span class='comment'>",$doc,"</span></li>\n";
174 }
175 else {
176 0 print $FH " <li>",$anchor,$node->{idf},"</li>\n";
177 }
178 }
179
180 0 ▶sub _format_tags {
Subroutine _format_tags: not called CC=6 SCAR=37.4
181 0 my $self = shift;
182 0 my ($tags, $FH, $javadoc) = @_;
183 0 ▶ print $FH " <p>\n" if (scalar(@{$tags}));
Branch: 1 branch
BranchTrueFalseTotal
if scalar @{$tags;} 0 0 0
184 0 foreach (@{$tags}) {
185 0 my $entry = ${$_}[0];
186 0 my $doc = ${$_}[1];
187 0 ▶ next if (defined $javadoc and lc($entry) eq "param");
Branch: 1 branch
BranchTrueFalseTotal
if defined $javadoc and lc $entry eq "param" 0 0 0
Condition0%0/3
defined $javadoc and lc $entry eq "param"
!ll&&!rl&&r
000
MC/DC0%0/2
defined $javadoc and lc $entry eq "param"
defined $javadoc lc $entry eq "param"
Truth table0%0/3
A and B
A= defined $javadocB= lc $entry eq "param"
ABresult
0X0
100
111
188 0 $doc = $self->_process_text($doc);
189 0 print $FH " <span class='tag'>",$entry," : </span><span class='comment'>",$doc,"</span>\n";
190 0 print $FH " <br />\n";
191 }
192 0 ▶ print $FH " </p>\n" if (scalar(@{$tags}));
Branch: 1 branch
BranchTrueFalseTotal
if scalar @{$tags;} 0 0 0
193 }
194
195 #
196 # 3.6 Module Declaration
197 #
198
199 0 ▶sub visitModules {
Subroutine visitModules: not called CC=2 SCAR=17.9
Pod undocumented
200 0 my $self = shift;
201 0 my ($node, $FH) = @_;
202 0 foreach (@{$node->{list_decl}}) {
203 0 my ($doc, $tags) = $self->_extract_doc($_);
204 0 $self->_format_doc_bloc($doc, $FH);
205 0 $self->_format_tags($tags, $FH);
206 }
207 }
208
209 #
210 # 3.8 Interface Declaration
211 #
212
213 0 ▶sub visitBaseInterface {
Subroutine visitBaseInterface: not called CC=1 SCAR=6.9
Pod undocumented
214 0 my $self = shift;
215 0 my ($node, $FH) = @_;
216 0 my ($doc, $tags) = $self->_extract_doc($node);
217 0 $self->_format_doc_bloc($doc, $FH);
218 0 $self->_format_tags($tags, $FH);
219 }
220
221 #
222 # 3.9 Value Declaration
223 #
224 # 3.9.1 Regular Value Type
225 #
226
227 0 ▶sub visitStateMember {
Subroutine visitStateMember: not called CC=1 SCAR=6.9
Pod undocumented
228 0 my $self = shift;
229 0 my ($node, $FH) = @_;
230 0 my ($doc, $tags) = $self->_extract_doc($node);
231 0 $self->_format_doc_bloc($doc, $FH);
232 0 $self->_format_tags($tags, $FH);
233 }
234
235 0 ▶sub visitInitializer {
Subroutine visitInitializer: not called CC=1 SCAR=6.9
Pod undocumented
236 0 shift->visitOperation(@_);
237 }
238
239 #
240 # 3.10 Constant Declaration
241 #
242
243 0 ▶sub visitConstant {
Subroutine visitConstant: not called CC=1 SCAR=6.9
Pod undocumented
244 0 my $self = shift;
245 0 my ($node, $FH) = @_;
246 0 my ($doc, $tags) = $self->_extract_doc($node);
247 0 $self->_format_doc_bloc($doc, $FH);
248 0 $self->_format_tags($tags, $FH);
249 }
250
251 #
252 # 3.11 Type Declaration
253 #
254
255 0 ▶sub visitTypeDeclarator {
Subroutine visitTypeDeclarator: not called CC=1 SCAR=6.9
Pod undocumented
256 0 my $self = shift;
257 0 my ($node, $FH) = @_;
258 0 my ($doc, $tags) = $self->_extract_doc($node);
259 0 $self->_format_doc_bloc($doc, $FH);
260 0 $self->_format_tags($tags, $FH);
261 }
262
263 0 ▶sub visitNativeType {
Subroutine visitNativeType: not called CC=1 SCAR=6.9
Pod undocumented
264 0 my $self = shift;
265 0 my ($node, $FH) = @_;
266 0 my ($doc, $tags) = $self->_extract_doc($node);
267 0 $self->_format_doc_bloc($doc, $FH);
268 0 $self->_format_tags($tags, $FH);
269 }
270
271 # 3.11.2 Constructed Types
272 #
273 # 3.11.2.1 Structures
274 #
275
276 0 ▶sub visitStructType {
Subroutine visitStructType: not called CC=5 SCAR=34.0
Pod undocumented
277 0 my $self = shift;
278 0 my ($node, $FH) = @_;
279 0 my ($doc, $tags) = $self->_extract_doc($node);
280 0 $self->_format_doc_bloc($doc, $FH);
281 0 my $doc_member = 0;
282 0 foreach (@{$node->{list_member}}) {
283 $doc_member ++
284 0 ▶ if (exists $self->_get_defn($_)->{doc});
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->_get_defn($_)->{"doc"} 0 0 0
285 }
286 0 ▶ if ($doc_member) {
Branch: 1 branch
BranchTrueFalseTotal
if ($doc_member) 0 0 0
287 # print $FH " <br />\n";
288 0 print $FH " <ul>\n";
289 0 foreach (@{$node->{list_member}}) {
290 0 $self->_get_defn($_)->visit($self, $FH); # member
291 }
292 0 print $FH " </ul>\n";
293 }
294 0 $self->_format_tags($tags, $FH);
295 }
296
297 0 ▶sub visitMember {
Subroutine visitMember: not called CC=1 SCAR=6.9
Pod undocumented
298 0 my $self = shift;
299 0 my ($node, $FH) = @_;
300 0 my ($doc, $tags) = $self->_extract_doc($node);
301 0 $self->_format_doc_line($node, $doc, $FH);
302 }
303
304 # 3.11.2.2 Discriminated Unions
305 #
306
307 0 ▶sub visitUnionType {
Subroutine visitUnionType: not called CC=5 SCAR=34.0
Pod undocumented
308 0 my $self = shift;
309 0 my ($node, $FH) = @_;
310 0 my ($doc, $tags) = $self->_extract_doc($node);
311 0 $self->_format_doc_bloc($doc, $FH);
312 0 my $doc_member = 0;
313 0 foreach (@{$node->{list_expr}}) {
314 $doc_member ++
315 0 ▶ if (exists $self->_get_defn($_->{element}->{value})->{doc});
Branch: 1 branch
BranchTrueFalseTotal
if exists $self->_get_defn($_->{"element"}{"value"})->{"doc"} 0 0 0
316 }
317 0 ▶ if ($doc_member) {
Branch: 1 branch
BranchTrueFalseTotal
if ($doc_member) 0 0 0
318 # print $FH " <br />\n";
319 0 print $FH " <ul>\n";
320 0 foreach (@{$node->{list_expr}}) {
321 0 $self->_get_defn($_->{element}->{value})->visit($self, $FH); # member
322 }
323 0 print $FH " </ul>\n";
324 }
325 0 $self->_format_tags($tags, $FH);
326 }
327
328 # 3.11.2.4 Enumerations
329 #
330
331 0 ▶sub visitEnumType {
Subroutine visitEnumType: not called CC=5 SCAR=34.0
Pod undocumented
332 0 my $self = shift;
333 0 my ($node, $FH) = @_;
334 0 my ($doc, $tags) = $self->_extract_doc($node);
335 0 $self->_format_doc_bloc($doc, $FH);
336 0 my $doc_member = 0;
337 0 foreach (@{$node->{list_expr}}) {
338 $doc_member ++
339 0 ▶ if (exists $_->{doc});
Branch: 1 branch
BranchTrueFalseTotal
if exists $_->{"doc"} 0 0 0
340 }
341 0 ▶ if ($doc_member) {
Branch: 1 branch
BranchTrueFalseTotal
if ($doc_member) 0 0 0
342 # print $FH " <br />\n";
343 0 print $FH " <ul>\n";
344 0 foreach (@{$node->{list_expr}}) {
345 0 $_->visit($self, $FH); # enum
346 }
347 0 print $FH " </ul>\n";
348 }
349 0 $self->_format_tags($tags, $FH);
350 }
351
352 0 ▶sub visitEnum {
Subroutine visitEnum: not called CC=1 SCAR=6.9
Pod undocumented
353 0 my $self = shift;
354 0 my ($node, $FH) = @_;
355 0 my ($doc, $tags) = $self->_extract_doc($node);
356 0 $self->_format_doc_line($node, $doc, $FH);
357 }
358
359 #
360 # 3.12 Exception Declaration
361 #
362
363 0 ▶sub visitException {
Subroutine visitException: not called CC=1 SCAR=6.9
Pod undocumented
364 0 shift->visitStructType(@_);
365 }
366
367 #
368 # 3.13 Operation Declaration
369 #
370
371 0 ▶sub visitOperation {
Subroutine visitOperation: not called CC=11 SCAR=48.8
Pod undocumented
372 0 my $self = shift;
373 0 my ($node, $FH) = @_;
374 0 my ($doc, $tags) = $self->_extract_doc($node);
375 0 $self->_format_doc_bloc($doc, $FH);
376 0 ▶ if (scalar(@{$node->{list_in}}) + scalar(@{$node->{list_inout}}) + scalar(@{$node->{list_out}})) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar(@{$node->{"list_in"};}) + scalar(@{$node->{"list_inout"};}) + scalar(@{$node->{"list_out"};})) 0 0 0
377 # print $FH " <br />\n";
378 0 print $FH " <ul>\n";
379 0 ▶ if (scalar(@{$node->{list_in}})) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @{$node->{"list_in"};}) 0 0 0
380 0 ▶ if (scalar(@{$node->{list_in}}) > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @{$node->{'list_in'};} > 1) { } 0 0 0
381 0 print $FH " <li>Parameters IN :\n";
382 }
383 else {
384 0 print $FH " <li>Parameter IN :\n";
385 }
386 0 print $FH " <ul>\n";
387 0 foreach (@{$node->{list_in}}) {
388 0 $self->_parameter($node, $_, $FH);
389 }
390 0 print $FH " </ul>\n";
391 0 print $FH " </li>\n";
392 }
393 0 ▶ if (scalar(@{$node->{list_inout}})) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @{$node->{"list_inout"};}) 0 0 0
394 0 ▶ if (scalar(@{$node->{list_inout}}) > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @{$node->{'list_inout'};} > 1) { } 0 0 0
395 0 print $FH " <li>Parameters INOUT :\n";
396 }
397 else {
398 0 print $FH " <li>Parameter INOUT :\n";
399 }
400 0 print $FH " <ul>\n";
401 0 foreach (@{$node->{list_inout}}) {
402 0 $self->_parameter($node, $_, $FH);
403 }
404 0 print $FH " </ul>\n";
405 0 print $FH " </li>\n";
406 }
407 0 ▶ if (scalar(@{$node->{list_out}})) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @{$node->{"list_out"};}) 0 0 0
408 0 ▶ if (scalar(@{$node->{list_out}}) > 1) {
Branch: 1 branch
BranchTrueFalseTotal
if (scalar @{$node->{'list_out'};} > 1) { } 0 0 0
409 0 print $FH " <li>Parameters OUT :\n";
410 }
411 else {
412 0 print $FH " <li>Parameter OUT :\n";
413 }
414 0 print $FH " <ul>\n";
415 0 foreach (@{$node->{list_out}}) {
416 0 $self->_parameter($node, $_, $FH);
417 }
418 0 print $FH " </ul>\n";
419 0 print $FH " </li>\n";
420 }
421 0 print $FH " </ul>\n";
422 }
423 0 $self->_format_tags($tags, $FH, 1);
424 }
425
426 0 ▶sub _parameter {
Subroutine _parameter: not called CC=6 SCAR=37.4
427 0 my $self = shift;
428 0 my ($parent, $node, $FH) = @_;
429 0 my ($doc, $tags) = $self->_extract_doc($node);
430 0 ▶ unless (defined $doc) {
Branch: 1 branch
BranchTrueFalseTotal
unless (defined $doc) 0 0 0
431 0 ($doc, $tags) = $self->_extract_doc($parent);
432 0 foreach (@{$tags}) {
433 0 my $entry = ${$_}[0];
434 0 my $javadoc = ${$_}[1];
435 0 ▶ if (lc($entry) eq 'param' and $javadoc =~ /^$node->{idf}/) {
Branch: 1 branch
BranchTrueFalseTotal
if (lc $entry eq "param" and $javadoc =~ /^$node->{"idf"}/) 0 0 0
Condition0%0/3
lc $entry eq "param" and $javadoc =~ /^$node->{"idf"}/
!ll&&!rl&&r
000
MC/DC0%0/2
lc $entry eq "param" and $javadoc =~ /^$node->{"idf"}/
lc $entry eq "param" $javadoc =~ /^$node->{"idf"}/
Truth table0%0/3
A and B
A= lc $entry eq "param"B= $javadoc =~ /^$node->{"idf"}/
ABresult
0X0
100
111
436 0 $doc = $javadoc;
437 0 $doc =~ s/^$node->{idf}//;
438 0 last;
439 }
440 }
441 }
442 0 ▶ if (defined $doc) {
Branch: 1 branch
BranchTrueFalseTotal
if (defined $doc) { } 0 0 0
443 0 $doc = $self->_process_text($doc);
444 0 print $FH " <li>",$node->{idf}," : <span class='comment'>",$doc,"</span></li>\n";
445 }
446 else {
447 0 print $FH " <li>",$node->{idf},"</li>\n";
448 }
449 }
450
451 #
452 # 3.14 Attribute Declaration
453 #
454
455 0 ▶sub visitAttribute {
Subroutine visitAttribute: not called CC=1 SCAR=6.9
Pod undocumented
456 0 my $self = shift;
457 0 my ($node, $FH) = @_;
458 0 my ($doc, $tags) = $self->_extract_doc($node);
459 0 $self->_format_doc_bloc($doc, $FH);
460 0 $self->_format_tags($tags, $FH);
461 }
462
463 #
464 # 3.17 Component Declaration
465 #
466
467 0 ▶sub visitProvides {
Subroutine visitProvides: not called CC=1 SCAR=6.9
Pod undocumented
468 0 my $self = shift;
469 0 my ($node, $FH) = @_;
470 0 my ($doc, $tags) = $self->_extract_doc($node);
471 0 $self->_format_doc_bloc($doc, $FH);
472 0 $self->_format_tags($tags, $FH);
473 }
474
475 0 ▶sub visitUses {
Subroutine visitUses: not called CC=1 SCAR=6.9
Pod undocumented
476 0 my $self = shift;
477 0 my ($node, $FH) = @_;
478 0 my ($doc, $tags) = $self->_extract_doc($node);
479 0 $self->_format_doc_bloc($doc, $FH);
480 0 $self->_format_tags($tags, $FH);
481 }
482
483 0 ▶sub visitPublishes {
Subroutine visitPublishes: not called CC=1 SCAR=6.9
Pod undocumented
484 0 my $self = shift;
485 0 my ($node, $FH) = @_;
486 0 my ($doc, $tags) = $self->_extract_doc($node);
487 0 $self->_format_doc_bloc($doc, $FH);
488 0 $self->_format_tags($tags, $FH);
489 }
490
491 0 ▶sub visitEmits {
Subroutine visitEmits: not called CC=1 SCAR=6.9
Pod undocumented
492 0 my $self = shift;
493 0 my ($node, $FH) = @_;
494 0 my ($doc, $tags) = $self->_extract_doc($node);
495 0 $self->_format_doc_bloc($doc, $FH);
496 0 $self->_format_tags($tags, $FH);
497 }
498
499 0 ▶sub visitConsumes {
Subroutine visitConsumes: not called CC=1 SCAR=6.9
Pod undocumented
500 0 my $self = shift;
501 0 my ($node, $FH) = @_;
502 0 my ($doc, $tags) = $self->_extract_doc($node);
503 0 $self->_format_doc_bloc($doc, $FH);
504 0 $self->_format_tags($tags, $FH);
505 }
506
507 #
508 # 3.18 Home Declaration
509 #
510
511 0 ▶sub visitFactory {
Subroutine visitFactory: not called CC=1 SCAR=6.9
Pod undocumented
512 0 shift->visitOperation(@_);
513 }
514
515 0 ▶sub visitFinder {
Subroutine visitFinder: not called CC=1 SCAR=6.9
Pod undocumented
516 0 shift->visitOperation(@_);
517 }
518
519 1 1;
520
« HTML/DeclVisitor.pm ↑ Summary HTML/NameVisitor.pm »