Class: AdLint::Cc1::ErrorExpression
Instance Attribute Summary
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary
collapse
Methods inherited from Expression
#constant?, #full=, #object_specifiers
Methods inherited from SyntaxNode
#head_location, #short_class_name, #tail_location
#analysis_target?
Methods included from Visitable
#accept
Constructor Details
Returns a new instance of ErrorExpression.
530
531
532
533
|
# File 'lib/adlint/cc1/syntax.rb', line 530
def initialize(err_tok)
super()
@error_token = err_tok
end
|
Instance Method Details
#arithmetic? ⇒ Boolean
547
548
549
|
# File 'lib/adlint/cc1/syntax.rb', line 547
def arithmetic?
false
end
|
#bitwise? ⇒ Boolean
551
552
553
|
# File 'lib/adlint/cc1/syntax.rb', line 551
def bitwise?
false
end
|
#have_side_effect? ⇒ Boolean
539
540
541
|
# File 'lib/adlint/cc1/syntax.rb', line 539
def have_side_effect?
true
end
|
#inspect(indent = 0) ⇒ Object
567
568
569
570
|
# File 'lib/adlint/cc1/syntax.rb', line 567
def inspect(indent = 0)
" " * indent + "#{short_class_name} (#{location.inspect}) " +
"#{@error_token.value}"
end
|
535
536
537
|
# File 'lib/adlint/cc1/syntax.rb', line 535
def location
head_location
end
|
#logical? ⇒ Boolean
543
544
545
|
# File 'lib/adlint/cc1/syntax.rb', line 543
def logical?
false
end
|
#to_complemental_logical ⇒ Object
559
560
561
|
# File 'lib/adlint/cc1/syntax.rb', line 559
def to_complemental_logical
self
end
|
#to_normalized_logical(parent_expr = nil) ⇒ Object
555
556
557
|
# File 'lib/adlint/cc1/syntax.rb', line 555
def to_normalized_logical(parent_expr = nil)
self
end
|
563
564
565
|
# File 'lib/adlint/cc1/syntax.rb', line 563
def to_s
@error_token.value
end
|