fix field_def to new syntax

This commit is contained in:
Torsten Ruger
2015-11-02 21:27:37 +02:00
parent 03979156db
commit cffbc91821
2 changed files with 5 additions and 5 deletions

View File

@ -6,9 +6,9 @@ module Soml
reset_regs # field_def is a statement, no return and all regs
#puts statement.inspect
type , name , value = *statement
@method.ensure_local( name, type ) unless( @method.has_arg(name))
@method.ensure_local( name.first, type ) unless( @method.has_arg(name.first))
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)
process( s(:assignment , s(:name , name) , value ) ) if value
process( s(:assignment , name , value ) ) if value
return nil
end
end