class AdLint::Cc1::PostfixDecrementExpression

Attributes

operand[R]

Public Class Methods

new(op, ope) click to toggle source
Calls superclass method AdLint::Cc1::PostfixExpression::new
# File lib/adlint/cc1/syntax.rb, line 1209
def initialize(op, ope)
  super(op)
  @operand = ope
end

Public Instance Methods

arithmetic?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1224
def arithmetic?
  true
end
bitwise?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1228
def bitwise?
  false
end
have_side_effect?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1216
def have_side_effect?
  true
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1249
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    @operand.inspect
end
logical?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1220
def logical?
  false
end
to_complemental_logical() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1241
def to_complemental_logical
  self
end
to_normalized_logical(parent_expr = nil) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1232
def to_normalized_logical(parent_expr = nil)
  case parent_expr
  when nil, LogicalAndExpression, LogicalOrExpression
    create_normalized_logical_of(self)
  else
    self
  end
end
to_s() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1245
def to_s
  "#{@operand.to_s}--"
end