refactor a bit for upcoming delegations

must get method to be private
more tell, not ask
This commit is contained in:
Torsten Ruger
2018-07-09 18:16:51 +03:00
parent 06e78a7326
commit 63b55f2aa4
3 changed files with 27 additions and 2 deletions

View File

@ -2,6 +2,11 @@ require_relative '../helper'
module Mom
class CompilerMock
# resolve a symbol to a type. Allowed symbols are :frame , :receiver and arguments
# which return the respective types, otherwise nil
def resolve_type( name )
return nil
end
def use_reg( type )
Risc.tmp_reg(type , nil)
end