Class: C::PrefixExpression

Inherits:
Object
  • Object
show all
Defined in:
lib/csquare.rb

Instance Method Summary collapse

Instance Method Details

#prefixed_literal?Boolean

Returns:

  • (Boolean)


563
564
565
# File 'lib/csquare.rb', line 563

def prefixed_literal?
  self.expr.Literal? || self.expr.prefixed_literal?
end

#prefixed_variable?Boolean

Returns:

  • (Boolean)


567
568
569
# File 'lib/csquare.rb', line 567

def prefixed_variable?
  self.expr.Variable? || self.expr.prefixed_variable?
end

#return_typename(function, blueprint) ⇒ Object



571
572
573
574
# File 'lib/csquare.rb', line 571

def return_typename function, blueprint
  return :boolean if self.Not?
  self.expr.return_typename function, blueprint
end