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.



3941
3942
3943
3944
# File 'lib/adlint/cc1/syntax.rb', line 3941

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

Instance Attribute Details

#identifierObject (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