grain-lang / grain

The Grain compiler toolchain and CLI. Home of the modern web staple. 🌾
https://grain-lang.org/
GNU Lesser General Public License v3.0
3.28k stars 113 forks source link

Update debug location of grain_main #2174

Open ospencer opened 3 weeks ago

ospencer commented 3 weeks ago
          Should the location for this be the top of the file instead of a `dummy_loc`?

_Originally posted by @spotandjake in https://github.com/grain-lang/grain/pull/2104#discussion_r1770643849_

spotandjake commented 3 weeks ago

Alternatively if we want to be really literal about the modules are not files thing we could have the location be the location of the module header