class AdLint::Cc1::MemberAccessByValueExpression

Attributes

expression[R]
identifier[R]

Public Class Methods

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

Public Instance Methods

arithmetic?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 983
def arithmetic?
  false
end
bitwise?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 987
def bitwise?
  false
end
have_side_effect?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 975
def have_side_effect?
  @expression.have_side_effect?
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1008
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    "#{@expression.inspect}.#{@identifier.value}"
end
logical?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 979
def logical?
  false
end
to_complemental_logical() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1000
def to_complemental_logical
  self
end
to_normalized_logical(parent_expr = nil) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 991
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 1004
def to_s
  "#{@expression.to_s}.#{@identifier.value}"
end