class AdLint::Cc1::ObjectSpecifier

Attributes

identifier[R]

Public Class Methods

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

Public Instance Methods

arithmetic?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 595
def arithmetic?
  false
end
bitwise?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 599
def bitwise?
  false
end
have_side_effect?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 587
def have_side_effect?
  false
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 620
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    "#{@identifier.value}"
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 583
def location
  @identifier.location
end
logical?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 591
def logical?
  false
end
to_complemental_logical() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 612
def to_complemental_logical
  self
end
to_normalized_logical(parent_expr = nil) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 603
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 616
def to_s
  @identifier.value
end