class AdLint::Cc1::IfStatement

Attributes

expression[R]
header_terminator[R]
statement[R]

Public Class Methods

new(expr, stmt, header_term) click to toggle source
Calls superclass method AdLint::Cc1::Statement::new
# File lib/adlint/cc1/syntax.rb, line 3507
def initialize(expr, stmt, header_term)
  super()
  @expression = expr
  @statement = stmt
  @header_terminator = header_term
end

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3522
def inspect(indent = 0)
  " " * indent + "#{short_class_name}\n" +
    @expression.inspect(indent + 1) + "\n" + @statement.inspect(indent + 1)
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3518
def location
  head_location
end