class AdLint::Cc1::CastExpression
Attributes
operand[R]
type_name[R]
Public Class Methods
new(type_name, ope)
click to toggle source
Calls superclass method
AdLint::Cc1::Expression::new
# File lib/adlint/cc1/syntax.rb, line 1636 def initialize(type_name, ope) super() @type_name = type_name @operand = ope end
Public Instance Methods
arithmetic?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1657 def arithmetic? @operand.arithmetic? end
bitwise?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1661 def bitwise? @operand.bitwise? end
have_side_effect?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1649 def have_side_effect? @operand.have_side_effect? end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1682 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{location.inspect}) " + "#{@type_name.inspect} #{@operand.inspect}" end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1645 def location head_location end
logical?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1653 def logical? @operand.logical? end
to_complemental_logical()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1674 def to_complemental_logical self end
to_normalized_logical(parent_expr = nil)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1665 def to_normalized_logical(parent_expr = nil) case parent_expr when nil, LogicalAndExpression, LogicalOrExpression create_normalized_logical_of(self) else self end end
to_s()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 1678 def to_s "(#{@type_name.to_s}) #{@operand.to_s}" end