Class: AdLint::Cc1::PrefixIncrementExpression
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
1338
1339
1340
|
# File 'lib/adlint/cc1/syntax.rb', line 1338
def arithmetic?
true
end
|
#bitwise? ⇒ Boolean
1342
1343
1344
|
# File 'lib/adlint/cc1/syntax.rb', line 1342
def bitwise?
false
end
|
#have_side_effect? ⇒ Boolean
1330
1331
1332
|
# File 'lib/adlint/cc1/syntax.rb', line 1330
def have_side_effect?
true
end
|
#logical? ⇒ Boolean
1334
1335
1336
|
# File 'lib/adlint/cc1/syntax.rb', line 1334
def logical?
false
end
|
#to_complemental_logical ⇒ Object
1355
1356
1357
|
# File 'lib/adlint/cc1/syntax.rb', line 1355
def to_complemental_logical
self
end
|
#to_normalized_logical(parent_expr = nil) ⇒ Object
1346
1347
1348
1349
1350
1351
1352
1353
|
# File 'lib/adlint/cc1/syntax.rb', line 1346
def to_normalized_logical(parent_expr = nil)
case parent_expr
when nil, LogicalAndExpression, LogicalOrExpression
create_normalized_logical_of(self)
else
self
end
end
|