Movatterモバイル変換


[0]ホーム

URL:


D Logo
Menu
Search

Library Reference

version 2.112.0

overview

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 usinga local clone.

dmd.json

Code for generating .json descriptions of the module when passing the-X flag to dmd.
Authors:
Walter Bright
License:
Boost License 1.0

Sourcejson.d

Documentationhttps://dlang.org/phobos/dmd_json.html

Coveragehttps://codecov.io/gh/dlang/dmd/src/master/compiler/src/dmd/json.d

voidjson_generate(ref Modulesmodules, ref OutBufferbuf);
Generate json for the modules.
Parameters:
Modulesmodulesarray of Modules
OutBufferbufwrite json output to buf
enum stringjsonFieldNames;
A string listing the name of each JSON field. Useful for errors messages.
JsonFieldFlagstryParseJsonField(const(char)*fieldName);
Parse the givenfieldName and 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-2026 by theD Language Foundation | Page generated byDdoc on Fri Feb 20 17:56:31 2026

[8]ページ先頭

©2009-2026 Movatter.jp