Report a bug
If you spot a problem with this page, click here to create a Bugzilla issue.
Improve this page
Quickly fork, edit online, and submit a pull request for this page.
Requires a signed-in GitHub account. This works well for small changes.
If you'd like to make larger changes you may want to consider using
a local clone.
dmd.json
Code for generating .json descriptions of the module when passing the -X flag to dmd.
Authors:
License:
Source json.d
Documentation https://dlang.org/phobos/dmd_json.html
- void
json_generate(ref Modulesmodules, ref OutBufferbuf); - Generate json for the modules.Parameters:
Modules modulesarray of Modules OutBuffer bufwrite json output to buf - enum string
jsonFieldNames; - A string listing the name of each JSON field. Useful for errors messages.
- JsonFieldFlags
tryParseJsonField(const(char)*fieldName); - Parse the given
fieldNameand return its corresponding JsonFieldFlags value.Parameters:const(char)* fieldNamethe field name to parse Returns:JsonFieldFlags.none on error, otherwise the JsonFieldFlags value corresponding to the given fieldName.
Copyright © 1999-2025 by the D Language Foundation | Page generated by
Ddoc on Mon Mar 31 10:27:58 2025