rubyx/lib/bosl/compiler/field_def.rb
2015-09-27 16:06:48 +03:00

18 lines
312 B
Ruby

module Bosl
Compiler.class_eval do
def on_field_def expression
#puts expression.inspect
type , name , value = *expression
index = method.ensure_local( name , type )
if value
value = process( value )
end
Virtual::Return.new( type , value )
end
end
end