diet.input

Contains common definitions and logic to collect input dependencies.

This module is typically only used by generator implementations.

Members

Functions

canFindFile
bool canFindFile(T baseFiles, U file)
Undocumented in source. Be warned that the author may not have intended to support it.
ctExtension
string ctExtension(string file_name)
Undocumented in source. Be warned that the author may not have intended to support it.
rtGetInputs
InputFile[] rtGetInputs(string file, string[] source_directories)

Runtime equivalent of collectFiles. This version uses std.file to read files from the appropriate directory. Note that for collectFiles, the directory to use is passed on the command line, whereas in this case, we must receive the directory containing the files from the caller.

Properties

filesFromGroup
InputFile[] filesFromGroup [@property getter]

Converts a Group with alternating file names and contents to an array of InputFiles.

Structs

InputFile
struct InputFile

Encapsulates a single input file.

Templates

Group
template Group(A...)

Helper template to aggregate a list of compile time values.

collectFiles
template collectFiles(string root_file)
template collectFiles(string root_file, alias root_contents)

Using the file name of a string import Diet file, returns a list of all required files.

localAliasesMixin
template localAliasesMixin(int i, ALIASES...)

Returns a mixin string that makes all passed symbols available in the mixin's scope.

Meta