Class: Chelsy::Operator::SizeOf

Inherits:
Unary show all
Defined in:
lib/chelsy/ast.rb

Overview

Size-of

Instance Attribute Summary

Attributes inherited from Unary

#operand

Attributes inherited from Element

#fragments, #post_fragments

Class Method Summary collapse

Instance Method Summary collapse

Methods inherited from Base

precedence

Constructor Details

#initialize(operand, **rest) ⇒ SizeOf

Returns a new instance of SizeOf.



699
700
701
# File 'lib/chelsy/ast.rb', line 699

def initialize(operand, **rest)
  super Syntax::ExprOrType.ensure(operand), **rest
end

Class Method Details

.operatorObject



697
# File 'lib/chelsy/ast.rb', line 697

def self.operator; :"sizeof" end