stil4m / elm-syntax / Elm.Processing

Processing raw files with the context of other files and dependencies.

Types


type ProcessContext

Opaque type to hold context for the processing

Functions

init : ProcessContext

Initialise an empty context

addFile : Elm.RawFile.RawFile -> ProcessContext -> ProcessContext

Add a file to the context that may be a dependency for the file that will be processed.

addDependency : Elm.Dependency.Dependency -> ProcessContext -> ProcessContext

Add a whole dependency with its modules to the context.

process : ProcessContext -> Elm.RawFile.RawFile -> Elm.Syntax.File.File

Process a rawfile with a context. Operator precedence and documentation will be fixed.