Class: AdLint::Cc1::TypedefTypeSpecifier
- Inherits:
-
TypeSpecifier
- Object
- SyntaxNode
- TypeSpecifier
- AdLint::Cc1::TypedefTypeSpecifier
- Defined in:
- lib/adlint/cc1/syntax.rb
Instance Attribute Summary collapse
-
#token ⇒ Object
readonly
Returns the value of attribute token.
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary collapse
- #identifier ⇒ Object
-
#initialize(tok) ⇒ TypedefTypeSpecifier
constructor
A new instance of TypedefTypeSpecifier.
- #inspect(indent = 0) ⇒ Object
- #location ⇒ Object
- #to_s ⇒ Object
Methods inherited from SyntaxNode
#head_location, #short_class_name, #tail_location
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(tok) ⇒ TypedefTypeSpecifier
Returns a new instance of TypedefTypeSpecifier.
2743 2744 2745 2746 |
# File 'lib/adlint/cc1/syntax.rb', line 2743 def initialize(tok) super() @token = tok end |
Instance Attribute Details
#token ⇒ Object (readonly)
Returns the value of attribute token.
2748 2749 2750 |
# File 'lib/adlint/cc1/syntax.rb', line 2748 def token @token end |
Instance Method Details
#identifier ⇒ Object
2754 2755 2756 |
# File 'lib/adlint/cc1/syntax.rb', line 2754 def identifier @token end |
#inspect(indent = 0) ⇒ Object
2762 2763 2764 2765 |
# File 'lib/adlint/cc1/syntax.rb', line 2762 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{location.inspect}) " + @token.value end |
#location ⇒ Object
2750 2751 2752 |
# File 'lib/adlint/cc1/syntax.rb', line 2750 def location head_location end |
#to_s ⇒ Object
2758 2759 2760 |
# File 'lib/adlint/cc1/syntax.rb', line 2758 def to_s @token.value end |