IPoolManager

- Updated API to take in a `DNodeGenerator` as the first argument to `pool(..., ...)`
This commit is contained in:
Tristan B. Velloza Kildaire 2023-12-06 11:24:27 +02:00
parent bb1d5f45c8
commit 4f92a29da2
1 changed files with 3 additions and 2 deletions

View File

@ -1,6 +1,6 @@
module tlang.compiler.typecheck.dependency.pool.interfaces;
import tlang.compiler.typecheck.dependency.core : DNode;
import tlang.compiler.typecheck.dependency.core : DNode, DNodeGenerator;
import tlang.compiler.symbols.data : Statement;
/**
@ -18,8 +18,9 @@ public interface IPoolManager
* to a dependency node
*
* Params:
* generator = the `DNodeGenerator`
* statement = the AST node
* Returns: the pooled `DNode`
*/
public DNode pool(Statement statement);
public DNode pool(DNodeGenerator generator, Statement statement);
}