Package org.ek9lang.compiler.phase8
Class TemplateGeneration
java.lang.Object
org.ek9lang.compiler.CompilerPhase
org.ek9lang.compiler.phase8.TemplateGeneration
- All Implemented Interfaces:
BiFunction<Workspace,
CompilerFlags, CompilationPhaseResult>
SINGLE THREADED
Now just create all the nodes that are generated from generic types
So these will be the set of concrete template classes we are using throughout the program all
modules!
TODO need to think about where the concrete templates should be recorded.
They will be recorded in the same module as their generic type - clearly we will need to
add functionality to detect this and generate, as the generic type might be an 'extern'.
The generic base they are created from has to be revisited which means we need the right
parsed module.
-
Field Summary
Fields inherited from class org.ek9lang.compiler.CompilerPhase
compilableProgramAccess, listener, reporter
-
Constructor Summary
ConstructorDescriptionTemplateGeneration
(SharedThreadContext<CompilableProgram> compilableProgramAccess, Consumer<CompilationEvent> listener, CompilerReporter reporter) -
Method Summary
Modifier and TypeMethodDescriptionboolean
doApply
(Workspace workspace, CompilerFlags compilerFlags) Do the compilation phase.Methods inherited from class org.ek9lang.compiler.CompilerPhase
apply
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface java.util.function.BiFunction
andThen
-
Constructor Details
-
Method Details
-
doApply
Description copied from class:CompilerPhase
Do the compilation phase.- Specified by:
doApply
in classCompilerPhase
-