IFuncDefStore

- Added new interface
This commit is contained in:
Tristan B. Velloza Kildaire 2023-12-08 20:04:27 +02:00
parent 4c3a72b026
commit 1d95c59208
1 changed files with 25 additions and 0 deletions

View File

@ -0,0 +1,25 @@
module tlang.compiler.typecheck.dependency.store.interfaces;
import tlang.compiler.symbols.data : Function;
import tlang.compiler.typecheck.dependency.core : FunctionData;
public interface IFuncDefStore
{
/**
* Adds the function definition
* to the store
*
* Params:
* func = the function to add
*/
public void addFunctionDef(Function func);
/**
* Grabs all of the function
* definitions currently stored
*
* Returns: a `FunctionData[string]`
* map
*/
public FunctionData[string] grabFunctionDefs();
}