Class: AdLint::Cc1::SizeofExpression
Instance Attribute Summary
#operand, #operator
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary
collapse
#initialize, #inspect, #location
Methods inherited from Expression
#constant?, #full=, #initialize, #object_specifiers
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
1504
1505
1506
|
# File 'lib/adlint/cc1/syntax.rb', line 1504
def arithmetic?
false
end
|
#bitwise? ⇒ Boolean
1508
1509
1510
|
# File 'lib/adlint/cc1/syntax.rb', line 1508
def bitwise?
false
end
|
#have_side_effect? ⇒ Boolean
1496
1497
1498
|
# File 'lib/adlint/cc1/syntax.rb', line 1496
def have_side_effect?
false
end
|
#logical? ⇒ Boolean
1500
1501
1502
|
# File 'lib/adlint/cc1/syntax.rb', line 1500
def logical?
false
end
|
#to_complemental_logical ⇒ Object
1521
1522
1523
|
# File 'lib/adlint/cc1/syntax.rb', line 1521
def to_complemental_logical
self
end
|
#to_normalized_logical(parent_expr = nil) ⇒ Object
1512
1513
1514
1515
1516
1517
1518
1519
|
# File 'lib/adlint/cc1/syntax.rb', line 1512
def to_normalized_logical(parent_expr = nil)
case parent_expr
when nil, LogicalAndExpression, LogicalOrExpression
create_normalized_logical_of(self)
else
self
end
end
|
1525
1526
1527
|
# File 'lib/adlint/cc1/syntax.rb', line 1525
def to_s
"sizeof(#{@operand.to_s})"
end
|