class AdLint::Cc1::GenericLabeledStatement
Attributes
label[R]
referrers[R]
statement[R]
Public Class Methods
new(label, stmt)
click to toggle source
Calls superclass method
AdLint::Cc1::Statement::new
# File lib/adlint/cc1/syntax.rb, line 3408 def initialize(label, stmt) super() @label = label @statement = stmt @referrers = [] end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3423 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{@label.inspect})\n" + @statement.inspect(indent + 1) end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3419 def location @label.location end