class AdLint::Cc1::NullConstantSpecifier

Attributes

token[R]

Public Class Methods

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

Public Instance Methods

arithmetic?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 768
def arithmetic?
  false
end
bitwise?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 772
def bitwise?
  false
end
have_side_effect?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 760
def have_side_effect?
  false
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 793
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    "#{@token.value}"
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 756
def location
  @token.location
end
logical?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 764
def logical?
  false
end
to_complemental_logical() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 785
def to_complemental_logical
  self
end
to_normalized_logical(parent_expr = nil) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 776
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 789
def to_s
  @token.value
end