Class: AdLint::Cc1::GotoStatement
- Inherits:
-
JumpStatement
- Object
- SyntaxNode
- Statement
- JumpStatement
- AdLint::Cc1::GotoStatement
- Defined in:
- lib/adlint/cc1/syntax.rb
Instance Attribute Summary collapse
-
#identifier ⇒ Object
readonly
Returns the value of attribute identifier.
Attributes inherited from Statement
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary collapse
-
#initialize(id) ⇒ GotoStatement
constructor
A new instance of GotoStatement.
- #inspect(indent = 0) ⇒ Object
Methods inherited from JumpStatement
Methods inherited from Statement
Methods inherited from SyntaxNode
#head_location, #location, #short_class_name, #tail_location
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
#initialize(id) ⇒ GotoStatement
Returns a new instance of GotoStatement.
3941 3942 3943 3944 |
# File 'lib/adlint/cc1/syntax.rb', line 3941 def initialize(id) super() @identifier = id end |
Instance Attribute Details
#identifier ⇒ Object (readonly)
Returns the value of attribute identifier.
3946 3947 3948 |
# File 'lib/adlint/cc1/syntax.rb', line 3946 def identifier @identifier end |
Instance Method Details
#inspect(indent = 0) ⇒ Object
3948 3949 3950 |
# File 'lib/adlint/cc1/syntax.rb', line 3948 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{@identifier.inspect})" end |