Not clear how hoisting is related to parsing really ...
Compiler builds table of variables (registers map) of the function to generate proper bytecodes to access registers.
At this point hoisting has some effect. But it has nothing with parse/AST phase.
Compiler builds table of variables (registers map) of the function to generate proper bytecodes to access registers. At this point hoisting has some effect. But it has nothing with parse/AST phase.