From 84db8960d60e3bce933656610736c46be23d0c2f Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Mon, 3 Jun 2024 17:00:51 +0300 Subject: [PATCH] docs: Don't generate docs for Builder properties are not writable --- src/codegen/doc/mod.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/codegen/doc/mod.rs b/src/codegen/doc/mod.rs index 82d7717fc..90b3ba2d6 100644 --- a/src/codegen/doc/mod.rs +++ b/src/codegen/doc/mod.rs @@ -405,6 +405,9 @@ fn create_object_doc(w: &mut dyn Write, env: &Env, info: &analysis::object::Info } } for property in &builder_properties { + if !property.writable { + continue; + } let ty = TypeStruct { ty: SType::Fn, name: nameutil::signal_to_snake(&property.name),