Class: AdLint::Cc1::GotoStatement

Inherits:
JumpStatement show all
Defined in:
lib/adlint/cc1/syntax.rb

Instance Attribute Summary collapse

Attributes inherited from Statement

#executed

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods inherited from JumpStatement

#location

Methods inherited from Statement

#executed?

Methods inherited from SyntaxNode

#head_location, #location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(id) ⇒ GotoStatement

Returns a new instance of GotoStatement.



3922
3923
3924
3925
# File 'lib/adlint/cc1/syntax.rb', line 3922

def initialize(id)
  super()
  @identifier = id
end

Instance Attribute Details

#identifierObject (readonly)

Returns the value of attribute identifier.



3927
3928
3929
# File 'lib/adlint/cc1/syntax.rb', line 3927

def identifier
  @identifier
end

Instance Method Details

#inspect(indent = 0) ⇒ Object



3929
3930
3931
# File 'lib/adlint/cc1/syntax.rb', line 3929

def inspect(indent = 0)
  " " * indent + "#{short_class_name} (#{@identifier.inspect})"
end