class AdLint::Cc1::StructTypeDeclaration
Attributes
struct_declarations[R]
struct_specifier[R]
type[RW]
Public Class Methods
new(struct_spec, sym)
click to toggle source
Calls superclass method
AdLint::Cc1::TypeDeclaration::new
# File lib/adlint/cc1/syntax.rb, line 2558 def initialize(struct_spec, sym) super(sym) @struct_specifier = struct_spec @struct_declarations = struct_spec.struct_declarations @type = nil end
Public Instance Methods
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2569 def identifier @struct_specifier.identifier end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2577 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 2573 def location identifier.location end