Class: AdLint::Cc1::PostfixExpression

Inherits:
Expression show all
Defined in:
lib/adlint/cc1/syntax.rb

Instance Attribute Summary collapse

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods inherited from Expression

#arithmetic?, #bitwise?, #constant?, #full=, #have_side_effect?, #logical?, #object_specifiers, #to_complemental_logical, #to_normalized_logical, #to_s

Methods inherited from SyntaxNode

#head_location, #inspect, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(op) ⇒ PostfixExpression

Returns a new instance of PostfixExpression.



853
854
855
# File 'lib/adlint/cc1/syntax.rb', line 853

def initialize(op)
  @operator = op
end

Instance Attribute Details

#operatorObject (readonly)

Returns the value of attribute operator.



857
858
859
# File 'lib/adlint/cc1/syntax.rb', line 857

def operator
  @operator
end

Instance Method Details

#locationObject



859
860
861
# File 'lib/adlint/cc1/syntax.rb', line 859

def location
  @operator.location
end