class AdLint::Cc1::StringLiteralSpecifier
Attributes
literal[R]
Public Class Methods
new(lit)
click to toggle source
Calls superclass method
AdLint::Cc1::Expression::new
# File lib/adlint/cc1/syntax.rb, line 694 def initialize(lit) super() @literal = lit end
Public Instance Methods
arithmetic?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 717 def arithmetic? false end
bitwise?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 721 def bitwise? false end
have_side_effect?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 709 def have_side_effect? false end
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 742 def inspect(indent = 0) " " * indent + "#{short_class_name} (#{location.inspect}) " + "#{@literal.value}" end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 701 def location @literal.location end
logical?()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 713 def logical? false end
prefix()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 705 def prefix @literal.value.scan(/\AL/i).first end
to_complemental_logical()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 734 def to_complemental_logical self end
to_normalized_logical(parent_expr = nil)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 725 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 738 def to_s @literal.value end