Get Scripted Functions Metadata from AST

Use AST::iter_functions to iterate through all the script-defined functions in an AST.

ScriptFnMetadata

The type returned from the iterator is ScriptFnMetadata with the following fields:

FieldRequiresTypeDescription
name&strName of function
paramsVec<&str>Number of parameters
accessFnAccessFnAccess::Public (public)
FnAccess::Private (private)
commentsmetadataVec<&str>Doc-comments, if any, one per line