Class: AdLint::Cc1::IndirectionExpression

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)


1431
1432
1433
# File 'lib/adlint/cc1/syntax.rb', line 1431

def arithmetic?
  false
end

#bitwise?Boolean

Returns:

  • (Boolean)


1435
1436
1437
# File 'lib/adlint/cc1/syntax.rb', line 1435

def bitwise?
  false
end

#have_side_effect?Boolean

Returns:

  • (Boolean)


1423
1424
1425
# File 'lib/adlint/cc1/syntax.rb', line 1423

def have_side_effect?
  operand.have_side_effect?
end

#logical?Boolean

Returns:

  • (Boolean)


1427
1428
1429
# File 'lib/adlint/cc1/syntax.rb', line 1427

def logical?
  false
end

#to_complemental_logicalObject



1448
1449
1450
# File 'lib/adlint/cc1/syntax.rb', line 1448

def to_complemental_logical
  self
end

#to_normalized_logical(parent_expr = nil) ⇒ Object



1439
1440
1441
1442
1443
1444
1445
1446
# File 'lib/adlint/cc1/syntax.rb', line 1439

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