Class: AdLint::Cpp::UnaryExpression
- Inherits:
-
Expression
- Object
- SyntaxNode
- Expression
- AdLint::Cpp::UnaryExpression
- Defined in:
- lib/adlint/cpp/syntax.rb
Direct Known Subclasses
Instance Attribute Summary collapse
-
#operator ⇒ Object
readonly
Returns the value of attribute operator.
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(val, op) ⇒ UnaryExpression
constructor
A new instance of UnaryExpression.
- #location ⇒ Object
Methods inherited from Expression
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(val, op) ⇒ UnaryExpression
Returns a new instance of UnaryExpression.
788 789 790 791 |
# File 'lib/adlint/cpp/syntax.rb', line 788 def initialize(val, op) super(val) @operator = op end |
Instance Attribute Details
#operator ⇒ Object (readonly)
Returns the value of attribute operator.
793 794 795 |
# File 'lib/adlint/cpp/syntax.rb', line 793 def operator @operator end |
Instance Method Details
#location ⇒ Object
795 796 797 |
# File 'lib/adlint/cpp/syntax.rb', line 795 def location @operator.location end |