tree: c3c66843b1d6de43613145ab184bc74c26b6101f [path history] [tgz]
  1. cpp/
  2. csharp/
  3. dart/
  4. go/
  5. java/
  6. kotlin/
  7. lobster/
  8. lua/
  9. nim/
  10. php/
  11. py/
  12. rust/
  13. schema/
  14. swift/
  15. ts/
  16. generate_goldens.py
  17. golden_utils.py
  18. README.md
goldens/README.md

Golden Generated Files

This directory is a repository for the generated files of flatc.

We check in the generated code so we can see, during a PR review, how the changes affect the generated output. Its also useful as a reference to point too as how things work across various languages.

These files are NOT intended to be depended on by any code, such as tests or or compiled examples.

Languages Specifics

Each language should keep their generated code in their respective directories. However, the parent schemas can, and should, be shared so we have a consistent view of things across languages. These are kept in the schema/ directory.

Some languages may not support every generation feature, so each language is required to specify the flatc arguments individually.

  • Try to avoid includes and nested directories, preferring it as flat as possible.

Updating

Just run the generate_goldens.py script and it should generate them all.