FileRootModule

(Engine-Level Function)

Description: Parses the document file that contains the given module to find the root module in that file. Returns the module value of the root module.
Returns: Pointer
Usage: Script Only.
Function Groups: Compilation and On-Line Modifications,  Advanced Module, File I/O
Related to: SystemSelf
Format: FileRootModule(Module)
Parameters:  
Module
Required. Any expression for the module.
Comments: The returned module value from this statement may be the parent or some ancestor of Module.

This function is session non-aware, meaning it works on the server's file system even with an active remote connection established. This function is also blocking, all concurrent thread operations will be paused until its execution has concluded.

Example:

    ModRoot = FileRootModule(Self());

This function returns a pointer to the root module of the current module.