dart-lang / dart-lang/native

Generate `toString` for Structs and Unions

Open
#319 0 comments 0 reactions 0 assignees View on GitHub
package:ffigen type-enhancement
Dominant language
Dart
Stars
275
Forks
144
Avg merge
2d 10h
Merged PRs (30d)
47

Description

We should consider generating `toString` methods in `Struct` and `Union`s for convenient access.

We already have one code generator for generating `toString` methods. It is in the FFI test generator:

* generator: https://github.com/dart-lang/sdk/tree/master/tests/ffi/generator
* generated Dart toString methods: https://github.com/dart-lang/sdk/blob/master/tests/ffi/function_structs_by_value_generated_test.dart

Context: https://github.com/dart-lang/sdk/issues/46266#issuecomment-855704722

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.