mirror of https://github.com/tbklang/tlang.git
🧹️🧼 Cleanup: Remove root from DNodeGenerator #175
Labels
No Label
dependency
emit
hashmapper
lebanonmapper
lexer
meta
needsfix
parser
qol
question
resolution
typing
No Milestone
No project
No Assignees
1 Participants
Notifications
Total Time Spent: 9 minutes 46 seconds
Due Date
deavmi
9 minutes 46 seconds
Dependencies
No dependencies set.
Reference: tlang/tlang#175
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Purpose ✍️
There is a
root
variable which is set when we rungeneralPass(...)
on either aModule
orFunction
but it is only actually used when we are callingaddFunctionDef
to theIFuncDefStore
, something of this kind can be derived right there as it is in theFunction
's module-container resolution stage that setsroot
in the first place.Remove root from DNodeGeneratorto 🧹️🧼 Cleanup: Remove root from DNodeGeneratorDNodeGenerator
root
It gets
pooled
ONLY for the reason to call.entity
on it, so it has nothing to do with dependency nodes per say, just theModule
itself of which access to is wanted.DNodeGenerator
Function
(a function definition) discover theModule
by which it is contained in on the spotDNodeGenerator
generalPass(...)
which tried to set theroot
DNodeTesting now
Works. Now to check the Github.
CI/CD passes ✅