dmd.json
Code for generating .json descriptions of the module when passing the -X flag to dmd.
License
Source: json.d
Documentation: https://dlang.org/phobos/dmd_json.html
-
Declaration
voidjson_generate(ref Modulesmodules, ref OutBufferbuf);Generate json for the
modules.Parameters
Modulesmodulesarray of Modules
OutBufferbufwrite json output to
buf -
Declaration
enum stringjsonFieldNames;A string listing the name of each JSON field. Useful for errors messages.
-
Declaration
JsonFieldFlagstryParseJsonField(const(char)*fieldName);Parse the given
and return its corresponding JsonFieldFlags value.fieldNameParameters
const(char)*fieldNamethe field name to parse
Return Value
JsonFieldFlags.none on error, otherwise the JsonFieldFlags value corresponding to the given
fieldName.