class AdLint::Cc1::UnaryExpression

Attributes

operand[R]
operator[R]

Public Class Methods

new(op, ope) click to toggle source
Calls superclass method AdLint::Cc1::Expression::new
# File lib/adlint/cc1/syntax.rb, line 1306
def initialize(op, ope)
  super()
  @operator = op
  @operand = ope
end

Public Instance Methods

inspect(indent = 0) click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1323
def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{location.inspect}) " +
    "#{@operator.value} #{@operand.inspect}"
end
location() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1315
def location
  @operator.location
end
to_s() click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1319
def to_s
  @operator.value + @operand.to_s
end