Class: AdLint::Cc1::ExclusiveOrExpression
- Inherits:
-
BinaryExpression
- Object
- SyntaxNode
- Expression
- BinaryExpression
- AdLint::Cc1::ExclusiveOrExpression
- Defined in:
- lib/adlint/cc1/syntax.rb
Instance Attribute Summary
Attributes inherited from BinaryExpression
#lhs_operand, #operator, #rhs_operand
Attributes inherited from SyntaxNode
#head_token, #subsequent_sequence_point, #tail_token
Instance Method Summary collapse
- #arithmetic? ⇒ Boolean
- #bitwise? ⇒ Boolean
- #have_side_effect? ⇒ Boolean
- #logical? ⇒ Boolean
- #to_complemental_logical ⇒ Object
- #to_normalized_logical(parent_expr = nil) ⇒ Object
Methods inherited from BinaryExpression
#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
Methods included from LocationHolder
Methods included from Visitable
Constructor Details
This class inherits a constructor from AdLint::Cc1::BinaryExpression
Instance Method Details
#arithmetic? ⇒ Boolean
1903 1904 1905 |
# File 'lib/adlint/cc1/syntax.rb', line 1903 def arithmetic? false end |
#bitwise? ⇒ Boolean
1907 1908 1909 |
# File 'lib/adlint/cc1/syntax.rb', line 1907 def bitwise? true end |
#have_side_effect? ⇒ Boolean
1895 1896 1897 |
# File 'lib/adlint/cc1/syntax.rb', line 1895 def have_side_effect? lhs_operand.have_side_effect? || rhs_operand.have_side_effect? end |
#logical? ⇒ Boolean
1899 1900 1901 |
# File 'lib/adlint/cc1/syntax.rb', line 1899 def logical? false end |
#to_complemental_logical ⇒ Object
1920 1921 1922 |
# File 'lib/adlint/cc1/syntax.rb', line 1920 def to_complemental_logical self end |
#to_normalized_logical(parent_expr = nil) ⇒ Object
1911 1912 1913 1914 1915 1916 1917 1918 |
# File 'lib/adlint/cc1/syntax.rb', line 1911 def to_normalized_logical(parent_expr = nil) case parent_expr when nil, LogicalAndExpression, LogicalOrExpression create_normalized_logical_of(self) else self end end |