This is an automated email from the ASF dual-hosted git repository. chaokunyang pushed a commit to branch main in repository https://gitbox.apache.org/repos/asf/fory-site.git
commit 4fba54a3848bb26c3bbcb2009e3c1fa32d2eaf08 Author: chaokunyang <[email protected]> AuthorDate: Wed May 27 07:22:55 2026 +0000 🔄 synced local 'docs/compiler/' with remote 'docs/compiler/' --- docs/compiler/generated-code.md | 7 ++++--- docs/compiler/index.md | 4 ++-- docs/compiler/schema-idl.md | 4 ++-- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/docs/compiler/generated-code.md b/docs/compiler/generated-code.md index ed2d02c05e..3c9d8899fb 100644 --- a/docs/compiler/generated-code.md +++ b/docs/compiler/generated-code.md @@ -771,10 +771,10 @@ C# output is one `.cs` file per schema, for example: ### Type Generation -Messages generate `[ForyObject]` classes with C# properties and byte helpers: +Messages generate `[ForyStruct]` classes with C# properties and byte helpers: ```csharp -[ForyObject] +[ForyStruct] public sealed partial class Person { public string Name { get; set; } = string.Empty; @@ -787,9 +787,10 @@ public sealed partial class Person } ``` -Unions generate `Union` subclasses with typed case helpers: +Unions generate `[ForyUnion]` `Union` subclasses with typed case helpers: ```csharp +[ForyUnion] public sealed class Animal : Union { public static Animal Dog(Dog value) { ... } diff --git a/docs/compiler/index.md b/docs/compiler/index.md index b61f499171..5d97bb2d91 100644 --- a/docs/compiler/index.md +++ b/docs/compiler/index.md @@ -126,9 +126,9 @@ Generated code uses native language constructs: - Java: Plain POJOs with `@ForyField` annotations - Python: Dataclasses with type hints - Go: Structs with struct tags -- Rust: Structs with `#[derive(ForyObject)]` +- Rust: Structs with `#[derive(ForyStruct)]` - C++: Structs with `FORY_STRUCT` macros -- C#: Classes with `[ForyObject]` and registration helpers +- C#: `[ForyStruct]` classes, `[ForyEnum]` enums, `[ForyUnion]` unions, and registration helpers - JavaScript/TypeScript: Interfaces with registration function - Swift: Fory model macros with field/case metadata and registration helpers - Dart: `@ForyStruct` classes with `@ForyField` annotations and registration helpers diff --git a/docs/compiler/schema-idl.md b/docs/compiler/schema-idl.md index f5cd9da4c0..e7f59e2034 100644 --- a/docs/compiler/schema-idl.md +++ b/docs/compiler/schema-idl.md @@ -714,9 +714,9 @@ message Person { // Auto-generated when enable_auto_type_id = true | Java | POJO class with getters/setters | | Python | `@dataclass` class | | Go | Struct with exported fields | -| Rust | Struct with `#[derive(ForyObject)]` | +| Rust | Struct with `#[derive(ForyStruct)]` | | C++ | Struct with `FORY_STRUCT` macro | -| C# | `[ForyObject]` class | +| C# | `[ForyStruct]` class | | JavaScript/TypeScript | `export interface` declaration | | Swift | `@ForyStruct` struct or class | | Dart | `@ForyStruct` `final class` | --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
