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.

Hierarchy (View Summary)

Implements

Hierarchy-Diagram

UML class diagram of FlowrAnalyzerFilesContext

Constructors

Properties

The linked full project context, allowing plugins to modify and access it.

The loading order context provides access to the loading order of script files in the project.

name: "flowr-analyzer-files-context" = 'flowr-analyzer-files-context'

A human-readable name of the context. Try to make it unique to avoid confusion in the logs.

The plugins registered for this context. These build the foundation for applyPlugins.

Methods

  • Check if a file exists at the given path, optionally ignoring case.

    Parameters

    • p: string
    • ignoreCase: boolean

      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).

    Returns undefined | string

    The actual path of the file if it exists, otherwise undefined.