feat(compiler): pass compilation unit to the parser

changed the type of the location var in ASTWithSource