Skip to content

Commit

Permalink
FuncDefStore
Browse files Browse the repository at this point in the history
- Added a TODO + some code for a future naming setup I want to se
  • Loading branch information
deavmi committed Dec 8, 2023
1 parent ba980fe commit c76513f
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions source/tlang/compiler/typecheck/dependency/store/impls.d
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,13 @@ public final class FuncDefStore : IFuncDefStore
private TypeChecker tc;

/**
*
* Constructs a new function
* definition store with
* the provided type
* checking instance
*
* Params:
* typeChecker =
* typeChecker = the `TypeChecker`
*/
this(TypeChecker typeChecker)
{
Expand Down Expand Up @@ -55,6 +59,10 @@ public final class FuncDefStore : IFuncDefStore
*/
FunctionData funcData;
funcData.ownGenerator = new DFunctionInnerGenerator(tc, func);
// TODO: Should we not generate a HELLA long name rather, to avoid duplication problems and overwrites of key values

funcData.name = tc.getResolver().generateName(tc.getModule(), func);

funcData.name = func.getName();
funcData.func = func;

Expand Down

0 comments on commit c76513f

Please sign in to comment.