minor
This commit is contained in:
parent
6f856315d7
commit
349352faa9
@ -3,7 +3,7 @@ module Phisol
|
||||
|
||||
def on_assignment statement
|
||||
reset_regs # statements reset registers, ie have all at their disposal
|
||||
puts statement.inspect
|
||||
#puts statement.inspect
|
||||
name , value = *statement
|
||||
name = name.to_a.first
|
||||
v = process(value)
|
||||
|
@ -4,7 +4,7 @@ module Phisol
|
||||
|
||||
def on_field_def statement
|
||||
reset_regs # field_def is a statement, no return and all regs
|
||||
puts statement.inspect
|
||||
#puts statement.inspect
|
||||
type , name , value = *statement
|
||||
@method.ensure_local( name, type ) unless( @method.has_arg(name))
|
||||
# if there is a value assigned, process it as am assignemnt statement (kind of call on_assign)
|
||||
|
@ -39,7 +39,7 @@ class Object
|
||||
end
|
||||
end
|
||||
HERE
|
||||
@expect = [[Virtual::MethodEnter,LoadConstant, GetSlot] , [Virtual::MethodReturn]]
|
||||
@expect = [[Virtual::MethodEnter,LoadConstant, SetSlot,GetSlot] , [Virtual::MethodReturn]]
|
||||
check
|
||||
end
|
||||
|
||||
|
@ -2,4 +2,4 @@ require_relative "expressions/test_all"
|
||||
|
||||
require_relative "statements/test_all"
|
||||
|
||||
require_relative "fragments/test_all"
|
||||
#require_relative "fragments/test_all"
|
||||
|
Loading…
Reference in New Issue
Block a user