File Coverage

blib/lib/GCC/Node/Constant.pm
Criterion Covered Total %
statement 24 30 80.0
branch 0 2 0.0
condition n/a
subroutine 8 14 57.1
pod 0 1 0.0
total 32 47 68.0


line stmt bran cond sub pod time code
1             package GCC::Node::Constant;
2             # 'c' for codes for constants.
3 1     1   6 use strict;
  1         1  
  1         33  
4 1     1   5 use base qw(GCC::Node);
  1         2  
  1         840  
5              
6             # All constants can apparently have types
7 0     0 0   sub type { shift->{type} }
8              
9             # DEFTREECODE (INTEGER_CST, "integer_cst", 'c', 2)
10             package GCC::Node::integer_cst;
11 1     1   7 use base qw(GCC::Node::Constant);
  1         2  
  1         132  
12              
13             # TREE_INT_CST_LOW
14 0     0     sub low { shift->{low} }
15              
16             # TREE_INT_CST_HIGH
17 0 0   0     sub high { shift->{high} || 0 }
18              
19             # DEFTREECODE (REAL_CST, "real_cst", 'c', 3)
20 1     1   5 package GCC::Node::real_cst; use base qw(GCC::Node::Constant);
  1         1  
  1         76  
21              
22             # DEFTREECODE (COMPLEX_CST, "complex_cst", 'c', 3)
23 1     1   5 package GCC::Node::complex_cst; use base qw(GCC::Node::Constant);
  1         2  
  1         72  
24              
25             # DEFTREECODE (VECTOR_CST, "vector_cst", 'c', 3)
26 1     1   4 package GCC::Node::vector_cst; use base qw(GCC::Node::Constant);
  1         2  
  1         131  
27              
28             # DEFTREECODE (STRING_CST, "string_cst", 'c', 3)
29 1     1   5 package GCC::Node::string_cst; use base qw(GCC::Node::Constant);
  1         2  
  1         196  
30              
31 0     0     sub string { shift->{string} }
32              
33             # DEFTREECODE (PTRMEM_CST, "ptrmem_cst", 'c', 2)
34 1     1   6 package GCC::Node::ptrmem_cst; use base qw(GCC::Node::Constant);
  1         2  
  1         106  
35              
36             # PTRMEM_CST_CLASS
37 0     0     sub class { shift->{clas} }
38              
39             # PTRMEM_CST_MEMBER
40 0     0     sub member { shift->{mbr} }
41              
42             # vim:set shiftwidth=4 softtabstop=4:
43             1;