class AdLint::Cc1::TypeofTypeSpecifier
Attributes
expression[R]
type_name[R]
Public Class Methods
new(expr, type_name)
click to toggle source
Calls superclass method
AdLint::Cc1::SyntaxNode::new
# File lib/adlint/cc1/syntax.rb, line 3042 def initialize(expr, type_name) super() @expression = expr @type_name = type_name end
Public Instance Methods
inspect(indent = 0)
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3063 def inspect(indent = 0) " " * indent + short_class_name end
location()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3051 def location head_location end
to_s()
click to toggle source
# File lib/adlint/cc1/syntax.rb, line 3055 def to_s if @expression "__typeof__(#{@expression.to_s})" else "__typeof__(#{@type_name.to_s})" end end