Class: AdLint::Cpp::NullDirective
- Inherits:
-
GroupPart
- Object
- SyntaxNode
- GroupPart
- AdLint::Cpp::NullDirective
- Defined in:
- lib/adlint/cpp/syntax.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Instance Method Summary collapse
-
#initialize(tok) ⇒ NullDirective
constructor
A new instance of NullDirective.
- #inspect(indent = 0) ⇒ Object
- #location ⇒ Object
Methods inherited from SyntaxNode
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(tok) ⇒ NullDirective
Returns a new instance of NullDirective.
488 489 490 |
# File 'lib/adlint/cpp/syntax.rb', line 488 def initialize(tok) @token = tok end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
492 493 494 |
# File 'lib/adlint/cpp/syntax.rb', line 492 def token @token end |
Instance Method Details
#inspect(indent = 0) ⇒ Object
498 499 500 |
# File 'lib/adlint/cpp/syntax.rb', line 498 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{@token.inspect})" end |
#location ⇒ Object
494 495 496 |
# File 'lib/adlint/cpp/syntax.rb', line 494 def location @token.location end |