Class: AdLint::Cc1::PostfixExpression
- Inherits:
-
Expression
- Object
- SyntaxNode
- Expression
- AdLint::Cc1::PostfixExpression
- Defined in:
- lib/adlint/cc1/syntax.rb
Direct Known Subclasses
ArraySubscriptExpression, BitAccessByPointerExpression, BitAccessByValueExpression, CompoundLiteralExpression, FunctionCallExpression, MemberAccessByPointerExpression, MemberAccessByValueExpression, PostfixDecrementExpression, PostfixIncrementExpression
Instance Attribute Summary collapse
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary collapse
-
#initialize(op) ⇒ PostfixExpression
constructor
A new instance of PostfixExpression.
- #location ⇒ Object
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
Methods included from Visitable
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
#operator ⇒ Object (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
#location ⇒ Object
859 860 861 |
# File 'lib/adlint/cc1/syntax.rb', line 859 def location @operator.location end |