class AdLint::Cc1::IfElseStatement
Attributes
else_header_terminator[R]
else_statement[R]
expression[R]
then_header_terminator[R]
then_statement[R]
Public Class Methods
new(expr, then_stmt, else_stmt, then_term, else_term)
click to toggle source
Calls superclass method
AdLint::Cc1::Statement::new
# File lib/adlint/cc1/syntax.rb, line 3529 def initialize(expr, then_stmt, else_stmt, then_term, else_term) super() @expression = expr @then_statement = then_stmt @else_statement = else_stmt @then_header_terminator = then_term @else_header_terminator = else_term end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3548 def inspect(indent = 0) " " * indent + "#{short_class_name}\n" + @expression.inspect(indent + 1) + "\n" + @then_statement.inspect(indent + 1) + "\n" + @else_statement.inspect(indent + 1) end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3544 def location head_location end