| 1 | |||||||||||||||||||||||||||||
| 2 | # | ||||||||||||||||||||||||||||
| 3 | # Interface Definition Language (OMG IDL CORBA v3.0) | ||||||||||||||||||||||||||||
| 4 | # | ||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||
| 6 | package CORBA::HTML::DeclVisitor; | ||||||||||||||||||||||||||||
| 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
MC/DC0%0/2
ref $proto || $proto
ref $proto
$proto
Truth table0%0/3
A || B
A= ref $protoB= $proto
| |||||||||||||||||||||||||||||
| 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
| |||||||||||||||||||||||||||||
| 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=2 SCAR=17.9
| |||||||||||||||||||||||||||||
| 34 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 35 | 0 | my ($node) = @_; | |||||||||||||||||||||||||||
| 36 | 0 | ▶ | unless (ref $node) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 37 | 0 | $node = $self->{parent}->{symbtab}->Lookup($node); | |||||||||||||||||||||||||||
| 38 | } | ||||||||||||||||||||||||||||
| 39 | 0 | return $node->visit($self->{parent}->{html_name}, $self->{parent}->{scope}); | |||||||||||||||||||||||||||
| 40 | } | ||||||||||||||||||||||||||||
| 41 | |||||||||||||||||||||||||||||
| 42 | 0 | ▶ | sub _xp { | ||||||||||||||||||||||||||
|
Subroutine
_xp: not called CC=6 SCAR=37.4
| |||||||||||||||||||||||||||||
| 43 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 44 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 45 | 0 | ▶ | if (exists $node->{declspec}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 46 | 0 | print $FH "<em>__declspec(",$node->{declspec},")</em>\n"; | |||||||||||||||||||||||||||
| 47 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 48 | } | ||||||||||||||||||||||||||||
| 49 | 0 | ▶ | if (exists $node->{props}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 50 | 0 | print $FH "<em>["; | |||||||||||||||||||||||||||
| 51 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 52 | 0 | ▶ | while (my ($key, $value) = each (%{$node->{props}})) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 53 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 54 | 0 | print $FH $key; | |||||||||||||||||||||||||||
| 55 | 0 | ▶ | print $FH " (",$value,")" if (defined $value); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 56 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 57 | } | ||||||||||||||||||||||||||||
| 58 | 0 | print $FH "]</em>\n"; | |||||||||||||||||||||||||||
| 59 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 60 | } | ||||||||||||||||||||||||||||
| 61 | } | ||||||||||||||||||||||||||||
| 62 | |||||||||||||||||||||||||||||
| 63 | 0 | ▶ | sub _xp_props { | ||||||||||||||||||||||||||
|
Subroutine
_xp_props: not called CC=5 SCAR=34.0
| |||||||||||||||||||||||||||||
| 64 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 65 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 66 | 0 | ▶ | if (exists $node->{props}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 67 | 0 | print $FH "<em>["; | |||||||||||||||||||||||||||
| 68 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 69 | 0 | ▶ | while (my ($key, $value) = each (%{$node->{props}})) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 70 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 71 | 0 | print $FH $key; | |||||||||||||||||||||||||||
| 72 | 0 | ▶ | print $FH " (",$value,")" if (defined $value); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 73 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 74 | } | ||||||||||||||||||||||||||||
| 75 | 0 | print $FH "]</em> "; | |||||||||||||||||||||||||||
| 76 | } | ||||||||||||||||||||||||||||
| 77 | } | ||||||||||||||||||||||||||||
| 78 | |||||||||||||||||||||||||||||
| 79 | # | ||||||||||||||||||||||||||||
| 80 | # 3.6 Module Declaration | ||||||||||||||||||||||||||||
| 81 | # | ||||||||||||||||||||||||||||
| 82 | |||||||||||||||||||||||||||||
| 83 | 0 | ▶ | sub visitModules { | ||||||||||||||||||||||||||
|
Subroutine
visitModules: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 84 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 85 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 86 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 87 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 88 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 89 | 0 | print $FH "module <span class='decl'>",$node->{idf},"</span>\n"; | |||||||||||||||||||||||||||
| 90 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 91 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 92 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 93 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 94 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 95 | } | ||||||||||||||||||||||||||||
| 96 | |||||||||||||||||||||||||||||
| 97 | # | ||||||||||||||||||||||||||||
| 98 | # 3.8 Interface Declaration | ||||||||||||||||||||||||||||
| 99 | # | ||||||||||||||||||||||||||||
| 100 | |||||||||||||||||||||||||||||
| 101 | 0 | ▶ | sub visitRegularInterface { | ||||||||||||||||||||||||||
|
Subroutine
visitRegularInterface: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 102 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 103 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 104 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 105 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 106 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 107 | 0 | print $FH "interface <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 108 | 0 | ▶ | if (exists $node->{inheritance} and exists $node->{inheritance}->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
exists $node->{"inheritance"} and exists $node->{"inheritance"}{"list_interface"}
MC/DC0%0/2
exists $node->{"inheritance"} and exists $node->{"inheritance"}{"list_interface"}
exists $node->{"inheritance"}
exists $node->{"inheritance"}{"list_interface"}
Truth table0%0/3
A and B
A= exists $node->{"inheritance"}B= exists $node->{"inheritance"}{"list_interface"}
| |||||||||||||||||||||||||||||
| 109 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 110 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 111 | 0 | foreach (@{$node->{inheritance}->{list_interface}}) { | |||||||||||||||||||||||||||
| 112 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 113 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 114 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 115 | } | ||||||||||||||||||||||||||||
| 116 | } | ||||||||||||||||||||||||||||
| 117 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 118 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 119 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 120 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 121 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 122 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 123 | } | ||||||||||||||||||||||||||||
| 124 | |||||||||||||||||||||||||||||
| 125 | 0 | ▶ | sub visitAbstractInterface { | ||||||||||||||||||||||||||
|
Subroutine
visitAbstractInterface: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 126 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 127 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 128 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 129 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 130 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 131 | 0 | print $FH "abstract interface <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 132 | 0 | ▶ | if (exists $node->{inheritance} and exists $node->{inheritance}->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
exists $node->{"inheritance"} and exists $node->{"inheritance"}{"list_interface"}
MC/DC0%0/2
exists $node->{"inheritance"} and exists $node->{"inheritance"}{"list_interface"}
exists $node->{"inheritance"}
exists $node->{"inheritance"}{"list_interface"}
Truth table0%0/3
A and B
A= exists $node->{"inheritance"}B= exists $node->{"inheritance"}{"list_interface"}
| |||||||||||||||||||||||||||||
| 133 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 134 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 135 | 0 | foreach (@{$node->{inheritance}->{list_interface}}) { | |||||||||||||||||||||||||||
| 136 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 137 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 138 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 139 | } | ||||||||||||||||||||||||||||
| 140 | } | ||||||||||||||||||||||||||||
| 141 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 142 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 143 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 144 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 145 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 146 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 147 | } | ||||||||||||||||||||||||||||
| 148 | |||||||||||||||||||||||||||||
| 149 | 0 | ▶ | sub visitLocalInterface { | ||||||||||||||||||||||||||
|
Subroutine
visitLocalInterface: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 150 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 151 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 152 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 153 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 154 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 155 | 0 | print $FH "local interface <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 156 | 0 | ▶ | if (exists $node->{inheritance} and exists $node->{inheritance}->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
exists $node->{"inheritance"} and exists $node->{"inheritance"}{"list_interface"}
MC/DC0%0/2
exists $node->{"inheritance"} and exists $node->{"inheritance"}{"list_interface"}
exists $node->{"inheritance"}
exists $node->{"inheritance"}{"list_interface"}
Truth table0%0/3
A and B
A= exists $node->{"inheritance"}B= exists $node->{"inheritance"}{"list_interface"}
| |||||||||||||||||||||||||||||
| 157 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 158 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 159 | 0 | foreach (@{$node->{inheritance}->{list_interface}}) { | |||||||||||||||||||||||||||
| 160 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 161 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 162 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 163 | } | ||||||||||||||||||||||||||||
| 164 | } | ||||||||||||||||||||||||||||
| 165 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 166 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 167 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 168 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 169 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 170 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 171 | } | ||||||||||||||||||||||||||||
| 172 | |||||||||||||||||||||||||||||
| 173 | # | ||||||||||||||||||||||||||||
| 174 | # 3.9 Value Declaration | ||||||||||||||||||||||||||||
| 175 | # | ||||||||||||||||||||||||||||
| 176 | # 3.9.1 Regular Value Type | ||||||||||||||||||||||||||||
| 177 | # | ||||||||||||||||||||||||||||
| 178 | |||||||||||||||||||||||||||||
| 179 | 0 | ▶ | sub visitRegularValue { | ||||||||||||||||||||||||||
|
Subroutine
visitRegularValue: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||||||||||||||||||||
| 180 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 181 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 182 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 183 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 184 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 185 | print $FH "custom " | ||||||||||||||||||||||||||||
| 186 | 0 | ▶ | if (exists $node->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 187 | 0 | print $FH "value <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 188 | 0 | ▶ | if (exists $node->{inheritance}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 189 | 0 | my $inheritance = $node->{inheritance}; | |||||||||||||||||||||||||||
| 190 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 191 | 0 | ▶ | if (exists $inheritance->{list_value}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 192 | 0 | ▶ | print $FH "truncatable " if (exists $inheritance->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 193 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 194 | 0 | foreach (@{$inheritance->{list_value}}) { | |||||||||||||||||||||||||||
| 195 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 196 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 197 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 198 | } | ||||||||||||||||||||||||||||
| 199 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 200 | } | ||||||||||||||||||||||||||||
| 201 | 0 | ▶ | if (exists $inheritance->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 202 | 0 | print $FH "support "; | |||||||||||||||||||||||||||
| 203 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 204 | 0 | foreach (@{$inheritance->{list_interface}}) { | |||||||||||||||||||||||||||
| 205 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 206 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 207 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 208 | } | ||||||||||||||||||||||||||||
| 209 | } | ||||||||||||||||||||||||||||
| 210 | } | ||||||||||||||||||||||||||||
| 211 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 212 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 213 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 214 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 215 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 216 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 217 | } | ||||||||||||||||||||||||||||
| 218 | |||||||||||||||||||||||||||||
| 219 | 0 | ▶ | sub visitStateMember { | ||||||||||||||||||||||||||
|
Subroutine
visitStateMember: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 220 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 221 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 222 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 223 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 224 | 0 | print $FH $node->{modifier}," "; | |||||||||||||||||||||||||||
| 225 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 226 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 227 | 0 | ▶ | if (exists $node->{array_size}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 228 | 0 | foreach (@{$node->{array_size}}) { | |||||||||||||||||||||||||||
| 229 | 0 | print $FH "["; | |||||||||||||||||||||||||||
| 230 | 0 | $_->visit($self, $FH); # expression | |||||||||||||||||||||||||||
| 231 | 0 | print $FH "]"; | |||||||||||||||||||||||||||
| 232 | } | ||||||||||||||||||||||||||||
| 233 | } | ||||||||||||||||||||||||||||
| 234 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 235 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 236 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 237 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 238 | } | ||||||||||||||||||||||||||||
| 239 | |||||||||||||||||||||||||||||
| 240 | 0 | ▶ | sub visitInitializer { | ||||||||||||||||||||||||||
|
Subroutine
visitInitializer: not called CC=6 SCAR=37.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 241 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 242 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 243 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 244 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 245 | 0 | print $FH "factory <span class='decl'>",$node->{idf},"</span> ("; | |||||||||||||||||||||||||||
| 246 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 247 | 0 | foreach (@{$node->{list_param}}) { # parameter | |||||||||||||||||||||||||||
| 248 | 0 | ▶ | print $FH "," unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 249 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 250 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 251 | 0 | $self->_xp_props($_, $FH); | |||||||||||||||||||||||||||
| 252 | 0 | print $FH $_->{attr}," ",$self->_get_name($_->{type})," ",$_->{idf}; | |||||||||||||||||||||||||||
| 253 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 254 | } | ||||||||||||||||||||||||||||
| 255 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 256 | 0 | print $FH " )"; | |||||||||||||||||||||||||||
| 257 | 0 | ▶ | if (exists $node->{list_raise}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 258 | 0 | print $FH " raises("; | |||||||||||||||||||||||||||
| 259 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 260 | 0 | foreach (@{$node->{list_raise}}) { # exception | |||||||||||||||||||||||||||
| 261 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 262 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 263 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 264 | } | ||||||||||||||||||||||||||||
| 265 | 0 | print $FH ")"; | |||||||||||||||||||||||||||
| 266 | } | ||||||||||||||||||||||||||||
| 267 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 268 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 269 | } | ||||||||||||||||||||||||||||
| 270 | |||||||||||||||||||||||||||||
| 271 | # 3.9.2 Boxed Value Type | ||||||||||||||||||||||||||||
| 272 | # | ||||||||||||||||||||||||||||
| 273 | |||||||||||||||||||||||||||||
| 274 | 0 | ▶ | sub visitBoxedValue { | ||||||||||||||||||||||||||
|
Subroutine
visitBoxedValue: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 275 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 276 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 277 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 278 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 279 | 0 | print $FH "valuetype "; | |||||||||||||||||||||||||||
| 280 | 0 | print $FH "<span class='decl'>",$node->{idf},"</span> "; | |||||||||||||||||||||||||||
| 281 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 282 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 283 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 284 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 285 | print $FH " typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 286 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 287 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 288 | } | ||||||||||||||||||||||||||||
| 289 | |||||||||||||||||||||||||||||
| 290 | # 3.9.3 Abstract Value Type | ||||||||||||||||||||||||||||
| 291 | # | ||||||||||||||||||||||||||||
| 292 | |||||||||||||||||||||||||||||
| 293 | 0 | ▶ | sub visitAbstractValue { | ||||||||||||||||||||||||||
|
Subroutine
visitAbstractValue: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 294 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 295 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 296 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 297 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 298 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 299 | 0 | print $FH "abstract valuetype <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 300 | 0 | ▶ | if (exists $node->{inheritance}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 301 | 0 | my $inheritance = $node->{inheritance}; | |||||||||||||||||||||||||||
| 302 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 303 | 0 | ▶ | if (exists $inheritance->{list_value}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 304 | 0 | ▶ | print $FH "truncatable " if (exists $inheritance->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 305 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 306 | 0 | foreach (@{$inheritance->{list_value}}) { | |||||||||||||||||||||||||||
| 307 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 308 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 309 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 310 | } | ||||||||||||||||||||||||||||
| 311 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 312 | } | ||||||||||||||||||||||||||||
| 313 | 0 | ▶ | if (exists $inheritance->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 314 | 0 | print $FH "support "; | |||||||||||||||||||||||||||
| 315 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 316 | 0 | foreach (@{$inheritance->{list_interface}}) { | |||||||||||||||||||||||||||
| 317 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 318 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 319 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 320 | } | ||||||||||||||||||||||||||||
| 321 | } | ||||||||||||||||||||||||||||
| 322 | } | ||||||||||||||||||||||||||||
| 323 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 324 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 325 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 326 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 327 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 328 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 329 | } | ||||||||||||||||||||||||||||
| 330 | |||||||||||||||||||||||||||||
| 331 | # | ||||||||||||||||||||||||||||
| 332 | # 3.10 Constant Declaration | ||||||||||||||||||||||||||||
| 333 | # | ||||||||||||||||||||||||||||
| 334 | |||||||||||||||||||||||||||||
| 335 | 0 | ▶ | sub visitConstant { | ||||||||||||||||||||||||||
|
Subroutine
visitConstant: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 336 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 337 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 338 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 339 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 340 | 0 | print $FH "constant "; | |||||||||||||||||||||||||||
| 341 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 342 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span> = "; | |||||||||||||||||||||||||||
| 343 | 0 | $node->{value}->visit($self, $FH); # expression | |||||||||||||||||||||||||||
| 344 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 345 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 346 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 347 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 348 | } | ||||||||||||||||||||||||||||
| 349 | |||||||||||||||||||||||||||||
| 350 | 0 | ▶ | sub visitExpression { | ||||||||||||||||||||||||||
|
Subroutine
visitExpression: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 351 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 352 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 353 | 0 | print $FH $self->_get_name($node); | |||||||||||||||||||||||||||
| 354 | } | ||||||||||||||||||||||||||||
| 355 | |||||||||||||||||||||||||||||
| 356 | # | ||||||||||||||||||||||||||||
| 357 | # 3.11 Type Declaration | ||||||||||||||||||||||||||||
| 358 | # | ||||||||||||||||||||||||||||
| 359 | |||||||||||||||||||||||||||||
| 360 | 0 | ▶ | sub visitTypeDeclarator { | ||||||||||||||||||||||||||
|
Subroutine
visitTypeDeclarator: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 361 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 362 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 363 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 364 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 365 | 0 | print $FH "typedef "; | |||||||||||||||||||||||||||
| 366 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 367 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 368 | 0 | ▶ | if (exists $node->{array_size}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 369 | 0 | foreach (@{$node->{array_size}}) { | |||||||||||||||||||||||||||
| 370 | 0 | print $FH "["; | |||||||||||||||||||||||||||
| 371 | 0 | $_->visit($self, $FH); # expression | |||||||||||||||||||||||||||
| 372 | 0 | print $FH "]"; | |||||||||||||||||||||||||||
| 373 | } | ||||||||||||||||||||||||||||
| 374 | } | ||||||||||||||||||||||||||||
| 375 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 376 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 377 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 378 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 379 | } | ||||||||||||||||||||||||||||
| 380 | |||||||||||||||||||||||||||||
| 381 | 0 | ▶ | sub visitNativeType { | ||||||||||||||||||||||||||
|
Subroutine
visitNativeType: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 382 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 383 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 384 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 385 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 386 | 0 | print $FH "native "; | |||||||||||||||||||||||||||
| 387 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 388 | 0 | ▶ | print $FH " (",$node->{native},")" if (exists $node->{native}); # XPIDL | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 389 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 390 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 391 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 392 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 393 | } | ||||||||||||||||||||||||||||
| 394 | |||||||||||||||||||||||||||||
| 395 | # | ||||||||||||||||||||||||||||
| 396 | # 3.11.2 Constructed Types | ||||||||||||||||||||||||||||
| 397 | # | ||||||||||||||||||||||||||||
| 398 | # 3.11.2.1 Structures | ||||||||||||||||||||||||||||
| 399 | # | ||||||||||||||||||||||||||||
| 400 | |||||||||||||||||||||||||||||
| 401 | 0 | ▶ | sub visitStructType { | ||||||||||||||||||||||||||
|
Subroutine
visitStructType: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 402 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 403 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 404 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 405 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 406 | 0 | print $FH "struct <span class='decl'>",$node->{html_name},"</span> {\n"; | |||||||||||||||||||||||||||
| 407 | 0 | foreach (@{$node->{list_expr}}) { | |||||||||||||||||||||||||||
| 408 | 0 | $_->visit($self, $FH); # members | |||||||||||||||||||||||||||
| 409 | } | ||||||||||||||||||||||||||||
| 410 | 0 | print $FH " };\n"; | |||||||||||||||||||||||||||
| 411 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 412 | } | ||||||||||||||||||||||||||||
| 413 | |||||||||||||||||||||||||||||
| 414 | 0 | ▶ | sub visitMembers { | ||||||||||||||||||||||||||
|
Subroutine
visitMembers: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 415 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 416 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 417 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 418 | 0 | $self->_xp_props($node, $FH); | |||||||||||||||||||||||||||
| 419 | 0 | print $FH " ",$self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 420 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 421 | 0 | foreach (@{$node->{list_member}}) { | |||||||||||||||||||||||||||
| 422 | 0 | ▶ | if ($first) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 423 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 424 | } | ||||||||||||||||||||||||||||
| 425 | else { | ||||||||||||||||||||||||||||
| 426 | 0 | print $FH ","; | |||||||||||||||||||||||||||
| 427 | } | ||||||||||||||||||||||||||||
| 428 | 0 | $self->_get_defn($_)->visit($self, $FH); # member | |||||||||||||||||||||||||||
| 429 | } | ||||||||||||||||||||||||||||
| 430 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 431 | } | ||||||||||||||||||||||||||||
| 432 | |||||||||||||||||||||||||||||
| 433 | 0 | ▶ | sub visitMember { | ||||||||||||||||||||||||||
|
Subroutine
visitMember: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 434 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 435 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 436 | 0 | print $FH " ",$node->{idf}; | |||||||||||||||||||||||||||
| 437 | 0 | ▶ | if (exists $node->{array_size}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 438 | 0 | foreach (@{$node->{array_size}}) { | |||||||||||||||||||||||||||
| 439 | 0 | print $FH "["; | |||||||||||||||||||||||||||
| 440 | 0 | $_->visit($self, $FH); # expression | |||||||||||||||||||||||||||
| 441 | 0 | print $FH "]"; | |||||||||||||||||||||||||||
| 442 | } | ||||||||||||||||||||||||||||
| 443 | } | ||||||||||||||||||||||||||||
| 444 | } | ||||||||||||||||||||||||||||
| 445 | |||||||||||||||||||||||||||||
| 446 | # 3.11.2.2 Discriminated Unions | ||||||||||||||||||||||||||||
| 447 | # | ||||||||||||||||||||||||||||
| 448 | |||||||||||||||||||||||||||||
| 449 | 0 | ▶ | sub visitUnionType { | ||||||||||||||||||||||||||
|
Subroutine
visitUnionType: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 450 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 451 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 452 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 453 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 454 | 0 | print $FH "union <span class='decl'>",$node->{html_name},"</span> switch("; | |||||||||||||||||||||||||||
| 455 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 456 | 0 | print $FH ") {\n"; | |||||||||||||||||||||||||||
| 457 | 0 | foreach (@{$node->{list_expr}}) { | |||||||||||||||||||||||||||
| 458 | 0 | $_->visit($self, $FH); # case | |||||||||||||||||||||||||||
| 459 | } | ||||||||||||||||||||||||||||
| 460 | 0 | print $FH " };\n"; | |||||||||||||||||||||||||||
| 461 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 462 | } | ||||||||||||||||||||||||||||
| 463 | |||||||||||||||||||||||||||||
| 464 | 0 | ▶ | sub visitCase { | ||||||||||||||||||||||||||
|
Subroutine
visitCase: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 465 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 466 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 467 | 0 | foreach (@{$node->{list_label}}) { | |||||||||||||||||||||||||||
| 468 | 0 | ▶ | if ($_->isa('Default')) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 469 | 0 | print $FH " default:\n"; | |||||||||||||||||||||||||||
| 470 | } | ||||||||||||||||||||||||||||
| 471 | else { | ||||||||||||||||||||||||||||
| 472 | 0 | print $FH " case "; | |||||||||||||||||||||||||||
| 473 | 0 | $_->visit($self, $FH); # expression | |||||||||||||||||||||||||||
| 474 | 0 | print $FH ":\n"; | |||||||||||||||||||||||||||
| 475 | } | ||||||||||||||||||||||||||||
| 476 | } | ||||||||||||||||||||||||||||
| 477 | 0 | $node->{element}->visit($self, $FH); | |||||||||||||||||||||||||||
| 478 | } | ||||||||||||||||||||||||||||
| 479 | |||||||||||||||||||||||||||||
| 480 | 0 | ▶ | sub visitElement { | ||||||||||||||||||||||||||
|
Subroutine
visitElement: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 481 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 482 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 483 | 0 | print $FH " ",$self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 484 | 0 | $self->_get_defn($node->{value})->visit($self, $FH); # member | |||||||||||||||||||||||||||
| 485 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 486 | } | ||||||||||||||||||||||||||||
| 487 | |||||||||||||||||||||||||||||
| 488 | # 3.11.2.4 Enumerations | ||||||||||||||||||||||||||||
| 489 | # | ||||||||||||||||||||||||||||
| 490 | |||||||||||||||||||||||||||||
| 491 | 0 | ▶ | sub visitEnumType { | ||||||||||||||||||||||||||
|
Subroutine
visitEnumType: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 492 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 493 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 494 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 495 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 496 | 0 | print $FH "enum <span class='decl'>",$node->{html_name},"</span> {\n"; | |||||||||||||||||||||||||||
| 497 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 498 | 0 | foreach (@{$node->{list_expr}}) { # enum | |||||||||||||||||||||||||||
| 499 | 0 | ▶ | print $FH ",\n" unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 500 | 0 | print $FH " <a id='",$_->{idf},"' name='",$_->{idf},"'/>",$_->{idf}; | |||||||||||||||||||||||||||
| 501 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 502 | } | ||||||||||||||||||||||||||||
| 503 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 504 | 0 | print $FH " };\n"; | |||||||||||||||||||||||||||
| 505 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 506 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 507 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 508 | } | ||||||||||||||||||||||||||||
| 509 | |||||||||||||||||||||||||||||
| 510 | # | ||||||||||||||||||||||||||||
| 511 | # 3.12 Exception Declaration | ||||||||||||||||||||||||||||
| 512 | # | ||||||||||||||||||||||||||||
| 513 | |||||||||||||||||||||||||||||
| 514 | 0 | ▶ | sub visitException { | ||||||||||||||||||||||||||
|
Subroutine
visitException: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 515 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 516 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 517 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 518 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 519 | 0 | print $FH "exception <span class='decl'>",$node->{idf},"</span> {\n"; | |||||||||||||||||||||||||||
| 520 | 0 | foreach (@{$node->{list_expr}}) { | |||||||||||||||||||||||||||
| 521 | 0 | $_->visit($self, $FH); # members | |||||||||||||||||||||||||||
| 522 | } | ||||||||||||||||||||||||||||
| 523 | 0 | print $FH " };\n"; | |||||||||||||||||||||||||||
| 524 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 525 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 526 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 527 | } | ||||||||||||||||||||||||||||
| 528 | |||||||||||||||||||||||||||||
| 529 | # | ||||||||||||||||||||||||||||
| 530 | # 3.13 Operation Declaration | ||||||||||||||||||||||||||||
| 531 | # | ||||||||||||||||||||||||||||
| 532 | |||||||||||||||||||||||||||||
| 533 | 0 | ▶ | sub visitOperation { | ||||||||||||||||||||||||||
|
Subroutine
visitOperation: not called CC=9 SCAR=45.0
Pod
undocumented
| |||||||||||||||||||||||||||||
| 534 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 535 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 536 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 537 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 538 | 0 | ▶ | print $FH "oneway " if (exists $node->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 539 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 540 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span> ("; | |||||||||||||||||||||||||||
| 541 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 542 | 0 | foreach (@{$node->{list_param}}) { # parameter | |||||||||||||||||||||||||||
| 543 | 0 | ▶ | print $FH "," unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 544 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 545 | 0 | print $FH " "; | |||||||||||||||||||||||||||
| 546 | 0 | ▶ | if ($_->isa('Ellipsis')) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 547 | 0 | print $FH "..."; | |||||||||||||||||||||||||||
| 548 | } | ||||||||||||||||||||||||||||
| 549 | else { | ||||||||||||||||||||||||||||
| 550 | 0 | $self->_xp_props($_, $FH); | |||||||||||||||||||||||||||
| 551 | 0 | print $FH $_->{attr}," ",$self->_get_name($_->{type})," ",$_->{idf}; | |||||||||||||||||||||||||||
| 552 | } | ||||||||||||||||||||||||||||
| 553 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 554 | } | ||||||||||||||||||||||||||||
| 555 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 556 | 0 | print $FH " )"; | |||||||||||||||||||||||||||
| 557 | 0 | ▶ | if (exists $node->{list_raise}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 558 | 0 | print $FH " raises("; | |||||||||||||||||||||||||||
| 559 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 560 | 0 | foreach (@{$node->{list_raise}}) { # exception | |||||||||||||||||||||||||||
| 561 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 562 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 563 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 564 | } | ||||||||||||||||||||||||||||
| 565 | 0 | print $FH ")"; | |||||||||||||||||||||||||||
| 566 | } | ||||||||||||||||||||||||||||
| 567 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 568 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 569 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 570 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 571 | } | ||||||||||||||||||||||||||||
| 572 | |||||||||||||||||||||||||||||
| 573 | # | ||||||||||||||||||||||||||||
| 574 | # 3.14 Attribute Declaration | ||||||||||||||||||||||||||||
| 575 | # | ||||||||||||||||||||||||||||
| 576 | |||||||||||||||||||||||||||||
| 577 | 0 | ▶ | sub visitAttribute { | ||||||||||||||||||||||||||
|
Subroutine
visitAttribute: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 578 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 579 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 580 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 581 | 0 | $self->_xp($node, $FH); | |||||||||||||||||||||||||||
| 582 | 0 | ▶ | print $FH "readonly " if (exists $node->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 583 | 0 | print $FH "attribute "; | |||||||||||||||||||||||||||
| 584 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 585 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>;"; | |||||||||||||||||||||||||||
| 586 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 587 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 588 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 589 | } | ||||||||||||||||||||||||||||
| 590 | |||||||||||||||||||||||||||||
| 591 | # | ||||||||||||||||||||||||||||
| 592 | # 3.16 Event Declaration | ||||||||||||||||||||||||||||
| 593 | # | ||||||||||||||||||||||||||||
| 594 | |||||||||||||||||||||||||||||
| 595 | 0 | ▶ | sub visitRegularEvent { | ||||||||||||||||||||||||||
|
Subroutine
visitRegularEvent: not called CC=12 SCAR=50.5
Pod
undocumented
| |||||||||||||||||||||||||||||
| 596 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 597 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 598 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 599 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 600 | print $FH "custom " | ||||||||||||||||||||||||||||
| 601 | 0 | ▶ | if (exists $node->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 602 | 0 | print $FH "eventtype <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 603 | 0 | ▶ | if (exists $node->{inheritance}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 604 | 0 | my $inheritance = $node->{inheritance}; | |||||||||||||||||||||||||||
| 605 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 606 | 0 | ▶ | if (exists $inheritance->{list_value}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 607 | 0 | ▶ | print $FH "truncatable " if (exists $inheritance->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 608 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 609 | 0 | foreach (@{$inheritance->{list_value}}) { | |||||||||||||||||||||||||||
| 610 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 611 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 612 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 613 | } | ||||||||||||||||||||||||||||
| 614 | } | ||||||||||||||||||||||||||||
| 615 | 0 | ▶ | if (exists $inheritance->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 616 | 0 | print $FH "support "; | |||||||||||||||||||||||||||
| 617 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 618 | 0 | foreach (@{$inheritance->{list_interface}}) { | |||||||||||||||||||||||||||
| 619 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 620 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 621 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 622 | } | ||||||||||||||||||||||||||||
| 623 | } | ||||||||||||||||||||||||||||
| 624 | } | ||||||||||||||||||||||||||||
| 625 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 626 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 627 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 628 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 629 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 630 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 631 | } | ||||||||||||||||||||||||||||
| 632 | |||||||||||||||||||||||||||||
| 633 | 0 | ▶ | sub visitAbstractEvent { | ||||||||||||||||||||||||||
|
Subroutine
visitAbstractEvent: not called CC=11 SCAR=48.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 634 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 635 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 636 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>\n"; | |||||||||||||||||||||||||||
| 637 | 0 | print $FH "<pre> abstract eventtype <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 638 | 0 | ▶ | if (exists $node->{inheritance}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 639 | 0 | my $inheritance = $node->{inheritance}; | |||||||||||||||||||||||||||
| 640 | 0 | print $FH " : "; | |||||||||||||||||||||||||||
| 641 | 0 | ▶ | if (exists $inheritance->{list_value}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 642 | 0 | ▶ | print $FH "truncatable " if (exists $inheritance->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 643 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 644 | 0 | foreach (@{$inheritance->{list_value}}) { | |||||||||||||||||||||||||||
| 645 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 646 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 647 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 648 | } | ||||||||||||||||||||||||||||
| 649 | } | ||||||||||||||||||||||||||||
| 650 | 0 | ▶ | if (exists $inheritance->{list_interface}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 651 | 0 | print $FH "support "; | |||||||||||||||||||||||||||
| 652 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 653 | 0 | foreach (@{$inheritance->{list_interface}}) { | |||||||||||||||||||||||||||
| 654 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 655 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 656 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 657 | } | ||||||||||||||||||||||||||||
| 658 | } | ||||||||||||||||||||||||||||
| 659 | } | ||||||||||||||||||||||||||||
| 660 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 661 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 662 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 663 | print $FH "typeprefix ",$node->{idf}," \"",$node->{typeprefix},"\";\n" | ||||||||||||||||||||||||||||
| 664 | 0 | ▶ | if (exists $node->{typeprefix}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 665 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 666 | } | ||||||||||||||||||||||||||||
| 667 | |||||||||||||||||||||||||||||
| 668 | # | ||||||||||||||||||||||||||||
| 669 | # 3.17 Component Declaration | ||||||||||||||||||||||||||||
| 670 | # | ||||||||||||||||||||||||||||
| 671 | |||||||||||||||||||||||||||||
| 672 | 0 | ▶ | sub visitComponent { | ||||||||||||||||||||||||||
|
Subroutine
visitComponent: not called CC=6 SCAR=37.4
Pod
undocumented
| |||||||||||||||||||||||||||||
| 673 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 674 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 675 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>"; | |||||||||||||||||||||||||||
| 676 | 0 | print $FH "<pre> component <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 677 | 0 | ▶ | if (exists $node->{inheritance}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 678 | 0 | print $FH " : ",$self->_get_name($node->{inheritance}); | |||||||||||||||||||||||||||
| 679 | } | ||||||||||||||||||||||||||||
| 680 | 0 | ▶ | if (exists $node->{list_support}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 681 | 0 | print $FH " support "; | |||||||||||||||||||||||||||
| 682 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 683 | 0 | foreach (@{$node->{list_support}}) { | |||||||||||||||||||||||||||
| 684 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 685 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 686 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 687 | } | ||||||||||||||||||||||||||||
| 688 | } | ||||||||||||||||||||||||||||
| 689 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 690 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 691 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 692 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 693 | } | ||||||||||||||||||||||||||||
| 694 | |||||||||||||||||||||||||||||
| 695 | 0 | ▶ | sub visitProvides { | ||||||||||||||||||||||||||
|
Subroutine
visitProvides: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 696 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 697 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 698 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 699 | 0 | print $FH "provides "; | |||||||||||||||||||||||||||
| 700 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 701 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>;\n"; | |||||||||||||||||||||||||||
| 702 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 703 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 704 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 705 | } | ||||||||||||||||||||||||||||
| 706 | |||||||||||||||||||||||||||||
| 707 | 0 | ▶ | sub visitUses { | ||||||||||||||||||||||||||
|
Subroutine
visitUses: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||||||||||||||||||||
| 708 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 709 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 710 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 711 | 0 | print $FH "provides "; | |||||||||||||||||||||||||||
| 712 | 0 | ▶ | print $FH "multiple " if (exists $node->{modifier}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 713 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 714 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>;\n"; | |||||||||||||||||||||||||||
| 715 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 716 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 717 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 718 | } | ||||||||||||||||||||||||||||
| 719 | |||||||||||||||||||||||||||||
| 720 | 0 | ▶ | sub visitPublishes { | ||||||||||||||||||||||||||
|
Subroutine
visitPublishes: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 721 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 722 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 723 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 724 | 0 | print $FH "publishes "; | |||||||||||||||||||||||||||
| 725 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 726 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>;\n"; | |||||||||||||||||||||||||||
| 727 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 728 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 729 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 730 | } | ||||||||||||||||||||||||||||
| 731 | |||||||||||||||||||||||||||||
| 732 | 0 | ▶ | sub visitEmits { | ||||||||||||||||||||||||||
|
Subroutine
visitEmits: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 733 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 734 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 735 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 736 | 0 | print $FH "emits "; | |||||||||||||||||||||||||||
| 737 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 738 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>;\n"; | |||||||||||||||||||||||||||
| 739 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 740 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 741 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 742 | } | ||||||||||||||||||||||||||||
| 743 | |||||||||||||||||||||||||||||
| 744 | 0 | ▶ | sub visitConsumes { | ||||||||||||||||||||||||||
|
Subroutine
visitConsumes: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||
| 745 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 746 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 747 | 0 | print $FH "<pre> "; | |||||||||||||||||||||||||||
| 748 | 0 | print $FH "consumes "; | |||||||||||||||||||||||||||
| 749 | 0 | print $FH $self->_get_name($node->{type}); | |||||||||||||||||||||||||||
| 750 | 0 | print $FH " <span class='decl'>",$node->{idf},"</span>;\n"; | |||||||||||||||||||||||||||
| 751 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 752 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 753 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 754 | } | ||||||||||||||||||||||||||||
| 755 | |||||||||||||||||||||||||||||
| 756 | # | ||||||||||||||||||||||||||||
| 757 | # 3.18 Home Declaration | ||||||||||||||||||||||||||||
| 758 | # | ||||||||||||||||||||||||||||
| 759 | |||||||||||||||||||||||||||||
| 760 | 0 | ▶ | sub visitHome { | ||||||||||||||||||||||||||
|
Subroutine
visitHome: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 761 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 762 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 763 | 0 | print $FH "<a id='",$node->{idf},"' name='",$node->{idf},"'/>"; | |||||||||||||||||||||||||||
| 764 | 0 | print $FH "<pre> home <span class='decl'>",$node->{idf},"</span>"; | |||||||||||||||||||||||||||
| 765 | 0 | ▶ | if (exists $node->{inheritance}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 766 | 0 | print $FH " : ",$self->_get_name($node->{inheritance}); | |||||||||||||||||||||||||||
| 767 | } | ||||||||||||||||||||||||||||
| 768 | 0 | ▶ | if (exists $node->{list_support}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 769 | 0 | print $FH " support "; | |||||||||||||||||||||||||||
| 770 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 771 | 0 | foreach (@{$node->{list_support}}) { | |||||||||||||||||||||||||||
| 772 | 0 | ▶ | print $FH ", " if (! $first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 773 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 774 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 775 | } | ||||||||||||||||||||||||||||
| 776 | } | ||||||||||||||||||||||||||||
| 777 | 0 | print $FH " manages ",$self->_get_name($node->{manage}); | |||||||||||||||||||||||||||
| 778 | 0 | ▶ | if (exists $node->{primarykey}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 779 | 0 | print $FH " primarykey ",$self->_get_name($node->{primarykey}); | |||||||||||||||||||||||||||
| 780 | } | ||||||||||||||||||||||||||||
| 781 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 782 | print $FH "typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 783 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 784 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 785 | } | ||||||||||||||||||||||||||||
| 786 | |||||||||||||||||||||||||||||
| 787 | 0 | ▶ | sub visitFactory { | ||||||||||||||||||||||||||
|
Subroutine
visitFactory: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 788 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 789 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 790 | 0 | print $FH "<pre> factory <span class='decl'>",$node->{idf},"</span> ("; | |||||||||||||||||||||||||||
| 791 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 792 | 0 | foreach (@{$node->{list_param}}) { # parameter | |||||||||||||||||||||||||||
| 793 | 0 | ▶ | print $FH "," unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 794 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 795 | 0 | print $FH " ",$_->{attr}," ",$self->_get_name($_->{type})," ",$_->{idf}; | |||||||||||||||||||||||||||
| 796 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 797 | } | ||||||||||||||||||||||||||||
| 798 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 799 | 0 | print $FH " )"; | |||||||||||||||||||||||||||
| 800 | 0 | ▶ | if (exists $node->{list_raise}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 801 | 0 | print $FH " raises("; | |||||||||||||||||||||||||||
| 802 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 803 | 0 | foreach (@{$node->{list_raise}}) { # exception | |||||||||||||||||||||||||||
| 804 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 805 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 806 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 807 | } | ||||||||||||||||||||||||||||
| 808 | 0 | print $FH ")"; | |||||||||||||||||||||||||||
| 809 | } | ||||||||||||||||||||||||||||
| 810 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 811 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 812 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 813 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 814 | } | ||||||||||||||||||||||||||||
| 815 | |||||||||||||||||||||||||||||
| 816 | 0 | ▶ | sub visitFinder { | ||||||||||||||||||||||||||
|
Subroutine
visitFinder: not called CC=7 SCAR=40.3
Pod
undocumented
| |||||||||||||||||||||||||||||
| 817 | 0 | my $self = shift; | |||||||||||||||||||||||||||
| 818 | 0 | my ($node, $FH) = @_; | |||||||||||||||||||||||||||
| 819 | 0 | print $FH "<pre> finder <span class='decl'>",$node->{idf},"</span> ("; | |||||||||||||||||||||||||||
| 820 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 821 | 0 | foreach (@{$node->{list_param}}) { # parameter | |||||||||||||||||||||||||||
| 822 | 0 | ▶ | print $FH "," unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 823 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 824 | 0 | print $FH " ",$_->{attr}," ",$self->_get_name($_->{type})," ",$_->{idf}; | |||||||||||||||||||||||||||
| 825 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 826 | } | ||||||||||||||||||||||||||||
| 827 | 0 | print $FH "\n"; | |||||||||||||||||||||||||||
| 828 | 0 | print $FH " )"; | |||||||||||||||||||||||||||
| 829 | 0 | ▶ | if (exists $node->{list_raise}) { | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 830 | 0 | print $FH " raises("; | |||||||||||||||||||||||||||
| 831 | 0 | my $first = 1; | |||||||||||||||||||||||||||
| 832 | 0 | foreach (@{$node->{list_raise}}) { # exception | |||||||||||||||||||||||||||
| 833 | 0 | ▶ | print $FH ", " unless ($first); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 834 | 0 | print $FH $self->_get_name($_); | |||||||||||||||||||||||||||
| 835 | 0 | $first = 0; | |||||||||||||||||||||||||||
| 836 | } | ||||||||||||||||||||||||||||
| 837 | 0 | print $FH ")"; | |||||||||||||||||||||||||||
| 838 | } | ||||||||||||||||||||||||||||
| 839 | 0 | print $FH ";\n"; | |||||||||||||||||||||||||||
| 840 | print $FH " typeid ",$node->{idf}," \"",$node->{typeid},"\";\n" | ||||||||||||||||||||||||||||
| 841 | 0 | ▶ | if (exists $node->{typeid}); | ||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||
| 842 | 0 | print $FH "</pre>\n"; | |||||||||||||||||||||||||||
| 843 | } | ||||||||||||||||||||||||||||
| 844 | |||||||||||||||||||||||||||||
| 845 | 1 | 1; | |||||||||||||||||||||||||||
| 846 | |||||||||||||||||||||||||||||