|
|
|
|
@ -11,7 +11,6 @@ import std.range : walkLength;
|
|
|
|
|
import gogga;
|
|
|
|
|
import std.conv : to;
|
|
|
|
|
import tlang.compiler.configuration : CompilerConfiguration;
|
|
|
|
|
import tlang.compiler.codegen.mapper.core : SymbolMapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* TODO: Perhaps have an interface that can emit(Context/Parent, Statement)
|
|
|
|
|
@ -24,7 +23,6 @@ public abstract class CodeEmitter
|
|
|
|
|
protected TypeChecker typeChecker;
|
|
|
|
|
protected File file;
|
|
|
|
|
protected CompilerConfiguration config;
|
|
|
|
|
protected SymbolMapper mapper;
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* The selected queue is the queue to be used
|
|
|
|
|
@ -134,12 +132,11 @@ public abstract class CodeEmitter
|
|
|
|
|
return functionBodyInstrs.keys();
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
this(TypeChecker typeChecker, File file, CompilerConfiguration config, SymbolMapper mapper)
|
|
|
|
|
this(TypeChecker typeChecker, File file, CompilerConfiguration config)
|
|
|
|
|
{
|
|
|
|
|
this.typeChecker = typeChecker;
|
|
|
|
|
this.file = file;
|
|
|
|
|
this.config = config;
|
|
|
|
|
this.mapper = mapper;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
|