Class: AdLint::Cpp::ErrorExpression
- Inherits:
-
Expression
- Object
- SyntaxNode
- Expression
- AdLint::Cpp::ErrorExpression
- Defined in:
- lib/adlint/cpp/syntax.rb
Instance Attribute Summary collapse
-
#error_token ⇒ Object
readonly
Returns the value of attribute error_token.
Attributes inherited from Expression
Instance Method Summary collapse
-
#initialize(err_tok) ⇒ ErrorExpression
constructor
A new instance of ErrorExpression.
- #inspect(indent = 0) ⇒ Object
- #location ⇒ Object
- #to_s ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(err_tok) ⇒ ErrorExpression
Returns a new instance of ErrorExpression.
722 723 724 725 |
# File 'lib/adlint/cpp/syntax.rb', line 722 def initialize(err_tok) super(0) @error_token = err_tok end |
Instance Attribute Details
#error_token ⇒ Object (readonly)
Returns the value of attribute error_token.
727 728 729 |
# File 'lib/adlint/cpp/syntax.rb', line 727 def error_token @error_token end |
Instance Method Details
#inspect(indent = 0) ⇒ Object
737 738 739 |
# File 'lib/adlint/cpp/syntax.rb', line 737 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{@error_token.inspect})" end |
#location ⇒ Object
729 730 731 |
# File 'lib/adlint/cpp/syntax.rb', line 729 def location @error_token.location end |
#to_s ⇒ Object
733 734 735 |
# File 'lib/adlint/cpp/syntax.rb', line 733 def to_s "" end |