class AdLint::Cc1::ErrorExpression

Public Class Methods

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

Public Instance Methods

arithmetic?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 547
def arithmetic?
  false
end
bitwise?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 551
def bitwise?
  false
end
have_side_effect?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 539
def have_side_effect?
  true
end
inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 567
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    "#{@error_token.value}"
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 535
def location
  head_location
end
logical?() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 543
def logical?
  false
end
to_complemental_logical() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 559
def to_complemental_logical
  self
end
to_normalized_logical(parent_expr = nil) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 555
def to_normalized_logical(parent_expr = nil)
  self
end
to_s() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 563
def to_s
  @error_token.value
end