rubyx/lib/bosl/compiler/field_def.rb
2015-09-20 16:30:07 +03:00

17 lines
284 B
Ruby

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