Read-only interface for the loading order context, which is used to determine the order in which script files are loaded in a project.

This interface prevents you from modifying the available files, but allows you to inspect them (which is probably what you want when using the FlowrAnalyzer). If you are a FlowrAnalyzerLoadingOrderPlugin and want to modify the available orders, you can use the FlowrAnalyzerLoadingOrderContext directly.

interface ReadOnlyFlowrAnalyzerLoadingOrderContext {
    currentGuesses(): readonly RParseRequest[][];
    currentKnownOrder(): undefined | readonly RParseRequest[];
    getLoadingOrder(): readonly RParseRequest[];
    getUnorderedRequests(): readonly RParseRequest[];
    name: string;
    peekLoadingOrder(): undefined | readonly RParseRequest[];
}

Implemented by

Properties

name: string

The name of this context.

Methods