Protected ReadonlyctxThe linked full project context, allowing plugins to modify and access it.
ReadonlyloadingThe loading order context provides access to the loading order of script files in the project.
ReadonlynameA human-readable name of the context. Try to make it unique to avoid confusion in the logs.
Protected ReadonlypluginsThe plugins registered for this context. These build the foundation for applyPlugins.
Record that a file has been considered during dataflow analysis.
Add a file to the context. If the file has a special role, it will be added to the corresponding list of special files. This method also applies any registered FlowrAnalyzerFilePlugins to the file before adding it to the context.
Optionalrole: FileRoleAdd multiple files to the context. This is just a convenience method that calls addFile for each file.
Add multiple requests to the context. This is just a convenience method that calls addRequest for each request.
ProtectedapplyRun all registered plugins on the given args, please be aware that if they are async, it is up to you to await them.
Get all requests that have been added to this context. This is a convenience method that calls FlowrAnalyzerLoadingOrderContext.getLoadingOrder.
Get all files that have been considered during dataflow analysis.
Check if a file exists at the given path, optionally ignoring case.
Whether to ignore case when checking for the file.
Please note that this method checks the file system based on the configuration (see FlowrConfigOptions.project.resolveUnknownPathsOnDisk).
The actual path of the file if it exists, otherwise undefined.
Returns the project context this sub-context is attached to
Get all requests that have been added to this context.
Check if the context has a file with the given path. Please note, that this may also check the file system, depending on the configuration (see FlowrConfigOptions.project.resolveUnknownPathsOnDisk).
The path to the file.
If you do not know the exact path or, e.g., casing of the file, use exists instead.
Reset the context to its initial state.
Until parsers support multiple request types from the virtual context system, we resolve their contents.
This is the analyzer file context to be modified by all plugins that affect the files. If you are interested in inspecting these files, refer to ReadOnlyFlowrAnalyzerFilesContext. Plugins, however, can use this context directly to modify files.