class AdLint::Cc1::EnumTypeDeclaration
Attributes
enum_specifier[R]
type[RW]
Public Class Methods
new(enum_spec, sym)
click to toggle source
Calls superclass method
AdLint::Cc1::TypeDeclaration::new
# File lib/adlint/cc1/syntax.rb, line 2628 def initialize(enum_spec, sym) super(sym) @enum_specifier = enum_spec @type = nil end
Public Instance Methods
enumerators()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2645 def enumerators @enum_specifier.enumerators end
identifier()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2637 def identifier @enum_specifier.identifier end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2649 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{location.inspect}) " + "#{identifier.value}" end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 2641 def location identifier.location end