Class: AdLint::Cc1::SizeofTypeExpression
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
1539
1540
1541
|
# File 'lib/adlint/cc1/syntax.rb', line 1539
def arithmetic?
false
end
|
#bitwise? ⇒ Boolean
1543
1544
1545
|
# File 'lib/adlint/cc1/syntax.rb', line 1543
def bitwise?
false
end
|
#have_side_effect? ⇒ Boolean
1531
1532
1533
|
# File 'lib/adlint/cc1/syntax.rb', line 1531
def have_side_effect?
false
end
|
#logical? ⇒ Boolean
1535
1536
1537
|
# File 'lib/adlint/cc1/syntax.rb', line 1535
def logical?
false
end
|
#to_complemental_logical ⇒ Object
1556
1557
1558
|
# File 'lib/adlint/cc1/syntax.rb', line 1556
def to_complemental_logical
self
end
|
#to_normalized_logical(parent_expr = nil) ⇒ Object
1547
1548
1549
1550
1551
1552
1553
1554
|
# File 'lib/adlint/cc1/syntax.rb', line 1547
def to_normalized_logical(parent_expr = nil)
case parent_expr
when nil, LogicalAndExpression, LogicalOrExpression
create_normalized_logical_of(self)
else
self
end
end
|
1560
1561
1562
|
# File 'lib/adlint/cc1/syntax.rb', line 1560
def to_s
"sizeof(#{@operand.to_s})"
end
|