enterScope

fun enterScope(): Int

Enter scope

Enters a new scope. This is usually called when a new code block is entered such as an if statement or function body. This will add a new child scope to the current scope as a child and updates the current scope to the newly added child scope. Additionally this appends the scope onto the end of the scopes list which is also assigned an Id representing its position in that list.

Return