Class: Rubycc::Front::AST::SizeofExpr

Inherits:
Data
  • Object
show all
Defined in:
lib/rubycc/front/ast.rb

Overview

sizeof operand: the byte size of a unary-expression's result type. operand is an expression node; the array-to-pointer decay does not apply to it, so sizeof a measures the whole array.

Instance Attribute Summary collapse

Instance Attribute Details

#operandObject (readonly)

Returns the value of attribute operand

Returns:

  • (Object)

    the current value of operand



143
144
145
# File 'lib/rubycc/front/ast.rb', line 143

def operand
  @operand
end

#tokenObject (readonly)

Returns the value of attribute token

Returns:

  • (Object)

    the current value of token



143
144
145
# File 'lib/rubycc/front/ast.rb', line 143

def token
  @token
end