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 165b68faffb15894f1ad067ef6ef62b5efb21028
Author: chaokunyang <[email protected]>
AuthorDate: Thu Apr 23 11:04:02 2026 +0000

    🔄 synced local 'docs/compiler/' with remote 'docs/compiler/'
---
 docs/compiler/generated-code.md | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/docs/compiler/generated-code.md b/docs/compiler/generated-code.md
index 87ea18cf4..6dd2ff6df 100644
--- a/docs/compiler/generated-code.md
+++ b/docs/compiler/generated-code.md
@@ -962,10 +962,13 @@ Map<String, Node> byName = <String, Node>{};
 
 ### Registration
 
-Each schema includes a registration helper that handles all types in the file 
and transitively registers imported types:
+Each generated Dart library includes a registration helper named after the 
input
+file, such as `AddressbookFory` for `addressbook.dart`. The helper handles all
+generated types in that file and transitively registers imported generated
+types:
 
 ```dart
-abstract final class ForyRegistration {
+abstract final class AddressbookFory {
   static void register(
     Fory fory,
     Type type, {
@@ -990,8 +993,8 @@ import 'generated/addressbook/addressbook.dart';
 
 void main() {
   final fory = Fory();
-  ForyRegistration.register(fory, Person, id: 100);
-  ForyRegistration.register(fory, Dog, id: 104);
+  AddressbookFory.register(fory, Person, id: 100);
+  AddressbookFory.register(fory, Dog, id: 104);
   // ...
 
   final person = Person()


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to