rubyx/lib/bosl/compiler/field_def.rb

17 lines
284 B
Ruby
Raw Normal View History

2015-09-20 15:30:07 +02:00
module Bosl
Compiler.class_eval do
def on_field_def expression
type , name , value = *expression
name = name
index = method.ensure_local( name )
if value
value = process( value )
end
Virtual::Return.new( value )
end
end
end