Class: C::Declarator
- Inherits:
-
Object
- Object
- C::Declarator
- Defined in:
- lib/cast-to-yaml/to_yaml.rb
Instance Method Summary collapse
Instance Method Details
#to_h_split(declaration) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 |
# File 'lib/cast-to-yaml/to_yaml.rb', line 31 def to_h_split(declaration) res = {} res["name"] = name.dup res["type"] = if indirect_type indirect_type.to_h_split(declaration) else declaration.type.to_h_split end if init res["init"] = init.to_s end if num_bits res["num_bits"] = num_bits.to_s end res end |