JasonSteving99 / claro-lang

Claro Lang

Home Page:https://docs.clarolang.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Make All Defined Functions Available w/o Regard to Definition Order

JasonSteving99 opened this issue · comments

Currently functions are only accessible on lines following their declaration. Somehow add another new preprocessing compiler phase (which runs before the current type-checking phase) that finds all functions so that they're defined before type-checking happens regardless of what order the calls come in the linear source (and honestly it should store this signature metadata somewhere outside the current ScopedHeap because we might also want to track this signature info for things like named params).

I fixed this in this commit 5f49114