Class: AdLint::Cc1::ErrorStatement

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

Instance Attribute Summary

Attributes inherited from Statement

#executed

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods inherited from Statement

#executed?

Methods inherited from SyntaxNode

#head_location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

#initialize(err_tok) ⇒ ErrorStatement

Returns a new instance of ErrorStatement.



3391
3392
3393
3394
# File 'lib/adlint/cc1/syntax.rb', line 3391

def initialize(err_tok)
  super()
  @error_token = err_tok
end

Instance Method Details

#inspect(indent = 0) ⇒ Object



3400
3401
3402
# File 'lib/adlint/cc1/syntax.rb', line 3400

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

#locationObject



3396
3397
3398
# File 'lib/adlint/cc1/syntax.rb', line 3396

def location
  head_location
end