Protected
Readonly
ctxThe linked full project context, allowing plugins to modify and access it.
Readonly
loadingThe loading order context provides access to the loading order of script files in the project.
Readonly
nameA human-readable name of the context. Try to make it unique to avoid confusion in the logs.
Protected
Readonly
pluginsThe plugins registered for this context. These build the foundation for applyPlugins.
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.
Optional
role: SpecialFileRoleAdd multiple files to the context. This is just a convenience method that calls addFile for each file.
Add a request to the context. If the request is of type project
, it will be expanded using the registered FlowrAnalyzerProjectDiscoveryPlugins.
Add multiple requests to the context. This is just a convenience method that calls addRequest for each request.
Protected
applyRun 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.
Returns the project context this sub-context is attached to
Get all requests that have been added to this context.
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.