checks a script's AST for any errors
Arguments: node is the ScriptNode for the script scriptFunctions is the array to put data about script defined functions in
errors in CompileError[], or empty array if there were no errors
See Implementation
checks a script's AST for any errors
Arguments: node is the ScriptNode for the script scriptFunctions is the array to put data about script defined functions in