class AdLint::Cc1::Enumerator
Attributes
expression[R]
identifier[R]
symbol[R]
type[RW]
value[RW]
Public Class Methods
new(id, expr, sym)
click to toggle source
Calls superclass method
AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 3011 def initialize(id, expr, sym) super() @identifier = id @expression = expr @symbol = sym end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3036 def inspect(indent = 0) " " * indent + short_class_name end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3024 def location @identifier.location end
to_s()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3028 def to_s if @expression "#{@identifier.value} = #{@expression.to_s}" else "#{@identifier.value}" end end