We can invoke a (global) function from a file, like this:
The MM has to support this, and maybe it means things like
file --|> namedEntity.
file --|> #TFile.
file --|> #TWithStatements. "TypeScript files can contain statements directly."
There may also be issues with Invocations, since a File is a sender (?)