Class: AdLint::Cc1::PrefixDecrementExpression

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)


1369
1370
1371
# File 'lib/adlint/cc1/syntax.rb', line 1369

def arithmetic?
  true
end

#bitwise?Boolean

Returns:

  • (Boolean)


1373
1374
1375
# File 'lib/adlint/cc1/syntax.rb', line 1373

def bitwise?
  false
end

#have_side_effect?Boolean

Returns:

  • (Boolean)


1361
1362
1363
# File 'lib/adlint/cc1/syntax.rb', line 1361

def have_side_effect?
  true
end

#logical?Boolean

Returns:

  • (Boolean)


1365
1366
1367
# File 'lib/adlint/cc1/syntax.rb', line 1365

def logical?
  false
end

#to_complemental_logicalObject



1386
1387
1388
# File 'lib/adlint/cc1/syntax.rb', line 1386

def to_complemental_logical
  self
end

#to_normalized_logical(parent_expr = nil) ⇒ Object



1377
1378
1379
1380
1381
1382
1383
1384
# File 'lib/adlint/cc1/syntax.rb', line 1377

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