Class: AdLint::Cc1::AddressExpression

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

Instance Attribute Summary

Attributes inherited from UnaryExpression

#operand, #operator

Attributes inherited from SyntaxNode

#head_token, #subsequent_sequence_point, #tail_token

Instance Method Summary collapse

Methods inherited from UnaryExpression

#initialize, #inspect, #location, #to_s

Methods inherited from Expression

#constant?, #full=, #initialize, #object_specifiers, #to_s

Methods inherited from SyntaxNode

#head_location, #initialize, #inspect, #location, #short_class_name, #tail_location

Methods included from LocationHolder

#analysis_target?

Methods included from Visitable

#accept

Constructor Details

This class inherits a constructor from AdLint::Cc1::UnaryExpression

Instance Method Details

#arithmetic?Boolean

Returns:

  • (Boolean)


1400
1401
1402
# File 'lib/adlint/cc1/syntax.rb', line 1400

def arithmetic?
  false
end

#bitwise?Boolean

Returns:

  • (Boolean)


1404
1405
1406
# File 'lib/adlint/cc1/syntax.rb', line 1404

def bitwise?
  false
end

#have_side_effect?Boolean

Returns:

  • (Boolean)


1392
1393
1394
# File 'lib/adlint/cc1/syntax.rb', line 1392

def have_side_effect?
  operand.have_side_effect?
end

#logical?Boolean

Returns:

  • (Boolean)


1396
1397
1398
# File 'lib/adlint/cc1/syntax.rb', line 1396

def logical?
  false
end

#to_complemental_logicalObject



1417
1418
1419
# File 'lib/adlint/cc1/syntax.rb', line 1417

def to_complemental_logical
  self
end

#to_normalized_logical(parent_expr = nil) ⇒ Object



1408
1409
1410
1411
1412
1413
1414
1415
# File 'lib/adlint/cc1/syntax.rb', line 1408

def to_normalized_logical(parent_expr = nil)
  case parent_expr
  when nil, LogicalAndExpression, LogicalOrExpression
    create_normalized_logical_of(self)
  else
    self
  end
end