Class: AdLint::Cc1::PrefixDecrementExpression
Instance Attribute Summary
#operand, #operator
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary
collapse
#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
#analysis_target?
Methods included from Visitable
#accept
Instance Method Details
#arithmetic? ⇒ Boolean
1369
1370
1371
|
# File 'lib/adlint/cc1/syntax.rb', line 1369
def arithmetic?
true
end
|
#bitwise? ⇒ Boolean
1373
1374
1375
|
# File 'lib/adlint/cc1/syntax.rb', line 1373
def bitwise?
false
end
|
#have_side_effect? ⇒ Boolean
1361
1362
1363
|
# File 'lib/adlint/cc1/syntax.rb', line 1361
def have_side_effect?
true
end
|
#logical? ⇒ Boolean
1365
1366
1367
|
# File 'lib/adlint/cc1/syntax.rb', line 1365
def logical?
false
end
|
#to_complemental_logical ⇒ Object
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
|