class AdLint::Cc1::BitAccessByPointerExpression

Attributes

constant[R]
expression[R]

Public Class Methods

new(expr, const, arrow) click to toggle source
Calls superclass method AdLint::Cc1::PostfixExpression::new
# File lib/adlint/cc1/syntax.rb, line 1113
def initialize(expr, const, arrow)
  super(arrow)
  @expression = expr
  @constant = const
end

Public Instance Methods

arithmetic?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1130
def arithmetic?
  false
end
bitwise?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1134
def bitwise?
  false
end
have_side_effect?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1122
def have_side_effect?
  @expression.have_side_effect?
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1155
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    "#{@expression.inspect}->#{@constant.value}"
end
logical?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1126
def logical?
  false
end
to_complemental_logical() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1147
def to_complemental_logical
  self
end
to_normalized_logical(parent_expr = nil) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1138
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 1151
def to_s
  "#{@expression.to_s}->#{@constant.value}"
end