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

@ -12,15 +12,15 @@ GIT
GIT
remote: git://github.com/salama/salama-reader.git
revision: 6710567af979b0b367245c16a0c6af260675bc71
revision: 6ae4b624b07bb86ceb24acb27ad0ac83be2ecc1e
specs:
salama-reader (0.4.0)
ast (~> 2.1.0)
parslet (~> 1.7.0)
parslet (~> 1.7.1)
GIT
remote: git://github.com/whitequark/ast.git
revision: 3814fb102af82a30bf334005ebe17332744f9dad
revision: 63db4686b33228e8f703cb7328e5e5c62aa3cd92
specs:
ast (2.1.0)

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