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 just an 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