move type resolution to compiler

from risc_value.
also unite mock compilers
This commit is contained in:
Torsten Ruger
2018-07-16 11:46:18 +03:00
parent e3673e579c
commit 3343017dba
12 changed files with 43 additions and 56 deletions

View File

@ -5,7 +5,7 @@ module Mom
class TestSlotDefinitionConstant < MiniTest::Test
def setup
Parfait.boot!
@compiler = CompilerMock.new
@compiler = Risc::FakeCompiler.new
@definition = SlotDefinition.new(StringConstant.new("hi") , [])
@instruction = @definition.to_register(@compiler , InstructionMock.new)
end