跳转至

FIDL JSON intermediate representation

For all backends (except C), the FIDL compiler operates in two phases. A first phase parses the FIDL file(s) and produces a JSON-based Intermediate Representation (IR). A second phase takes the IR as input, and produces the appropriate language-specific output.

The shape of the JSON IR is described in the [schema][json-schema]. All JSON IR files that are produced during compilation using fx build are validated using this schema.

If you are interested in the JSON IR, you can generate it by [running the FIDL compiler][fidl-cli].

json-schemafidl-cli


最后更新: 2022 年 12 月 31 日(Saturday) 21:07 CST