class AdLint::Cc1::UnionTypeDeclaration
Attributes
struct_declarations[R]
type[RW]
union_specifier[R]
Public Class Methods
new(union_spec, sym)
click to toggle source
Calls superclass method
AdLint::Cc1::TypeDeclaration::new
# File lib/adlint/cc1/syntax.rb, line 2593 def initialize(union_spec, sym) super(sym) @union_specifier = union_spec @struct_declarations = union_spec.struct_declarations @type = nil end
Public Instance Methods
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2604 def identifier @union_specifier.identifier end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2612 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{location.inspect}) " + "#{identifier.value}\n" + @struct_declarations.map { |sd| sd.inspect(indent + 1) }.join("\n") end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2608 def location identifier.location end