Skip to content

Conversation

@iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jul 22, 2024

This moves the calculation of the start location of a module to compiler_codegen, which is the entry point, from compiler_body, which is also called recursively. The former will be a "compiler" function and the latter a "codegen" function once the #121404 refactor is complete.


if (u->u_scope_type == COMPILER_SCOPE_MODULE) {
loc.lineno = -1;
}
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not doing anything - loc is a local variable and we're exiting the function.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants