From 0366ff08f58e5b554aed840b952cc3f7637347a3 Mon Sep 17 00:00:00 2001 From: Mateusz Kowalski Date: Mon, 30 Sep 2024 15:08:12 +0200 Subject: [PATCH] Use compiler's paths directly / remove workaround code (#1609) [This](https://github.com/starkware-libs/cairo/pull/6409) needs to be merged inside the compiler before we merge it. --- extensions/scarb-doc/src/types.rs | 153 ++------- .../src/hello_world-Circle.md | 4 + .../src/hello_world-CircleShape.md | 4 +- .../src/hello_world-Shape.md | 4 +- .../src/hello_world.md | 3 + .../src/hello_world_sub_package.md | 3 + .../src/hello_world_sub_package.md | 3 + .../src/hello_world-Circle.md | 4 + .../src/hello_world-CircleShape.md | 4 +- .../src/hello_world-Shape.md | 4 +- .../src/hello_world.md | 3 + .../tests/data/json_output_test_data.json | 18 +- .../data/json_private_items_excluded.json | 42 +-- .../data/json_private_items_included.json | 312 +++++++++--------- 14 files changed, 248 insertions(+), 313 deletions(-) diff --git a/extensions/scarb-doc/src/types.rs b/extensions/scarb-doc/src/types.rs index 178309ae0..6fefc37f8 100644 --- a/extensions/scarb-doc/src/types.rs +++ b/extensions/scarb-doc/src/types.rs @@ -1,17 +1,15 @@ use cairo_lang_semantic::items::visibility; use cairo_lang_syntax::node::helpers::QueryAttrs; use cairo_lang_utils::Upcast; -use itertools::Itertools; use serde::Serialize; use cairo_lang_defs::db::DefsGroup; -use cairo_lang_defs::diagnostic_utils::StableLocation; use cairo_lang_defs::ids::{ ConstantId, EnumId, ExternFunctionId, ExternTypeId, FreeFunctionId, ImplAliasId, ImplConstantDefId, ImplDefId, ImplFunctionId, ImplItemId, ImplTypeDefId, LanguageElementId, - LookupItemId, MemberId, ModuleId, ModuleItemId, ModuleTypeAliasId, NamedLanguageElementId, - StructId, TopLevelLanguageElementId, TraitConstantId, TraitFunctionId, TraitId, TraitItemId, - TraitTypeId, VariantId, + LookupItemId, MemberId, ModuleId, ModuleItemId, ModuleTypeAliasId, StructId, + TopLevelLanguageElementId, TraitConstantId, TraitFunctionId, TraitId, TraitItemId, TraitTypeId, + VariantId, }; use cairo_lang_doc::db::DocGroup; use cairo_lang_doc::documentable_item::DocumentableItemId; @@ -81,11 +79,10 @@ impl Module { module_id: ModuleId, include_private_items: bool, ) -> Self { - // FIXME(#1438): compiler doesn't support fetching root crate doc let item_data = match module_id { ModuleId::CrateRoot(crate_id) => ItemData { name: crate_id.name(db).to_string(), - doc: None, + doc: db.get_item_documentation(DocumentableItemId::Crate(crate_id)), signature: None, full_path: module_id.full_path(db), }, @@ -332,9 +329,7 @@ impl Struct { || is_visible_in_module(db, root_module_id, &semantic_member.id)) && !is_doc_hidden_attr(db, syntax_node) }) - .map(|(_name, semantic_member)| { - Member::new(db, semantic_member.id, item_data.full_path.clone()) - }) + .map(|(_name, semantic_member)| Member::new(db, semantic_member.id)) .collect::>(); let node = id.stable_ptr(db); @@ -358,25 +353,13 @@ pub struct Member { } impl Member { - pub fn new(db: &ScarbDocDatabase, id: MemberId, struct_full_path: String) -> Self { + pub fn new(db: &ScarbDocDatabase, id: MemberId) -> Self { let node = id.stable_ptr(db); - let stable_location = StableLocation::new(node.0); - - let name = id.name(db).into(); - // TODO(#1438): Replace with `id.full_path(db)` after it is fixed in the compiler. - let full_path = format!("{}::{}", struct_full_path, name); - - let item_data = ItemData { - name, - doc: get_item_documentation(db, &stable_location), - signature: None, - full_path, - }; Self { id, node, - item_data, + item_data: ItemData::new(db, id, DocumentableItemId::Member(id)), } } } @@ -404,7 +387,7 @@ impl Enum { let variants = variants .iter() - .map(|(_name, variant_id)| Variant::new(db, *variant_id, item_data.full_path.clone())) + .map(|(_name, variant_id)| Variant::new(db, *variant_id)) .collect::>(); let node = id.stable_ptr(db); @@ -428,25 +411,13 @@ pub struct Variant { } impl Variant { - pub fn new(db: &ScarbDocDatabase, id: VariantId, enum_full_path: String) -> Self { + pub fn new(db: &ScarbDocDatabase, id: VariantId) -> Self { let node = id.stable_ptr(db); - let stable_location = StableLocation::new(node.0); - - let name = id.name(db).into(); - // TODO(#1438): Replace with `id.full_path(db)` after it is fixed in the compiler. - let full_path = format!("{}::{}", enum_full_path, name); - - let item_data = ItemData { - name, - doc: get_item_documentation(db, &stable_location), - signature: None, - full_path, - }; Self { id, node, - item_data, + item_data: ItemData::new(db, id, DocumentableItemId::Variant(id)), } } } @@ -522,26 +493,17 @@ impl Trait { id, LookupItemId::ModuleItem(ModuleItemId::Trait(id)).into(), ); - let full_path_to_trait = item_data - .full_path - .strip_suffix(item_data.name.as_str()) - .unwrap() - .to_string(); let trait_constants = db.trait_constants(id).unwrap(); let trait_constants = trait_constants .iter() - .map(|(_name, trait_constant_id)| { - TraitConstant::new(db, *trait_constant_id, full_path_to_trait.clone()) - }) + .map(|(_name, trait_constant_id)| TraitConstant::new(db, *trait_constant_id)) .collect::>(); let trait_types = db.trait_types(id).unwrap(); let trait_types = trait_types .iter() - .map(|(_name, trait_type_id)| { - TraitType::new(db, *trait_type_id, full_path_to_trait.clone()) - }) + .map(|(_name, trait_type_id)| TraitType::new(db, *trait_type_id)) .collect::>(); let trait_functions = db.trait_functions(id).unwrap(); @@ -573,21 +535,17 @@ pub struct TraitConstant { } impl TraitConstant { - pub fn new(db: &ScarbDocDatabase, id: TraitConstantId, full_path_to_trait: String) -> Self { + pub fn new(db: &ScarbDocDatabase, id: TraitConstantId) -> Self { let node = id.stable_ptr(db); - let mut item_data = ItemData::new( - db, - id, - LookupItemId::TraitItem(TraitItemId::Constant(id)).into(), - ); - // TODO(#1438): introduce proper fix in compiler - item_data.full_path = full_path_to_trait + &item_data.full_path; - Self { id, node, - item_data, + item_data: ItemData::new( + db, + id, + LookupItemId::TraitItem(TraitItemId::Constant(id)).into(), + ), } } } @@ -603,21 +561,17 @@ pub struct TraitType { } impl TraitType { - pub fn new(db: &ScarbDocDatabase, id: TraitTypeId, full_path_to_trait: String) -> Self { + pub fn new(db: &ScarbDocDatabase, id: TraitTypeId) -> Self { let node = id.stable_ptr(db); - let mut item_data = ItemData::new( - db, - id, - LookupItemId::TraitItem(TraitItemId::Type(id)).into(), - ); - // TODO(#1438): introduce proper fix in compiler - item_data.full_path = full_path_to_trait + &item_data.full_path; - Self { id, node, - item_data, + item_data: ItemData::new( + db, + id, + LookupItemId::TraitItem(TraitItemId::Type(id)).into(), + ), } } } @@ -669,22 +623,17 @@ impl Impl { id, LookupItemId::ModuleItem(ModuleItemId::Impl(id)).into(), ); - let full_path_to_impl = item_data - .full_path - .strip_suffix(item_data.name.as_str()) - .unwrap() - .to_string(); let impl_types = db.impl_types(id).unwrap(); let impl_types = impl_types .iter() - .map(|(id, _)| ImplType::new(db, *id, full_path_to_impl.clone())) + .map(|(id, _)| ImplType::new(db, *id)) .collect::>(); let impl_constants = db.impl_constants(id).unwrap(); let impl_constants = impl_constants .iter() - .map(|(id, _)| ImplConstant::new(db, *id, full_path_to_impl.clone())) + .map(|(id, _)| ImplConstant::new(db, *id)) .collect::>(); let impl_functions = db.impl_functions(id).unwrap(); @@ -716,18 +665,13 @@ pub struct ImplType { } impl ImplType { - pub fn new(db: &ScarbDocDatabase, id: ImplTypeDefId, full_path_to_impl: String) -> Self { + pub fn new(db: &ScarbDocDatabase, id: ImplTypeDefId) -> Self { let node = id.stable_ptr(db); - let mut item_data = - ItemData::new(db, id, LookupItemId::ImplItem(ImplItemId::Type(id)).into()); - // TODO(#1438): introduce proper fix in compiler - item_data.full_path = full_path_to_impl + &item_data.full_path; - Self { id, node, - item_data, + item_data: ItemData::new(db, id, LookupItemId::ImplItem(ImplItemId::Type(id)).into()), } } } @@ -743,21 +687,17 @@ pub struct ImplConstant { } impl ImplConstant { - pub fn new(db: &ScarbDocDatabase, id: ImplConstantDefId, full_path_to_impl: String) -> Self { + pub fn new(db: &ScarbDocDatabase, id: ImplConstantDefId) -> Self { let node = id.stable_ptr(db); - let mut item_data = ItemData::new( - db, - id, - LookupItemId::ImplItem(ImplItemId::Constant(id)).into(), - ); - // TODO(#1438): introduce proper fix in compiler - item_data.full_path = full_path_to_impl + &item_data.full_path; - Self { id, node, - item_data, + item_data: ItemData::new( + db, + id, + LookupItemId::ImplItem(ImplItemId::Constant(id)).into(), + ), } } } @@ -837,28 +777,3 @@ impl ExternFunction { } } } - -// TODO(#1428): This function is temporarily copied until further modifications in cairo compiler are done. -fn get_item_documentation(db: &dyn DefsGroup, stable_location: &StableLocation) -> Option { - let doc = stable_location.syntax_node(db).get_text(db.upcast()); - let doc = doc - .lines() - .take_while_ref(|line| { - !line - .trim_start() - .chars() - .next() - .map_or(false, |c| c.is_alphabetic()) - }) - .filter_map(|line| { - let dedent = line.trim_start(); - for prefix in ["///", "//!"] { - if let Some(content) = dedent.strip_prefix(prefix) { - return Some(content.strip_prefix(' ').unwrap_or(content)); - } - } - None - }) - .collect::>(); - (!doc.is_empty()).then(|| doc.join("\n")) -} diff --git a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Circle.md b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Circle.md index 206c8c3a4..0217f7b92 100644 --- a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Circle.md +++ b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Circle.md @@ -12,4 +12,8 @@ Radius of the circle Fully qualified path: `hello_world::Circle::radius` +```rust + radius: u32 +``` + diff --git a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-CircleShape.md b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-CircleShape.md index afc651ed4..5e0a80a28 100644 --- a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-CircleShape.md +++ b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-CircleShape.md @@ -14,7 +14,7 @@ impl CircleShape of Shape Shape constant -Fully qualified path: `hello_world::hello_world::CircleShape::SHAPE_CONST` +Fully qualified path: `hello_world::CircleShape::SHAPE_CONST` ```rust const SHAPE_CONST: felt252 = 'xyz'; @@ -40,7 +40,7 @@ fn area(self: Circle) -> u32 Type alias for a pair of circles -Fully qualified path: `hello_world::hello_world::CircleShape::ShapePair` +Fully qualified path: `hello_world::CircleShape::ShapePair` ```rust type ShapePair = (Circle, Circle); diff --git a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Shape.md b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Shape.md index 9680c4ce9..33e3b8a7d 100644 --- a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Shape.md +++ b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world-Shape.md @@ -14,7 +14,7 @@ trait Shape Constant for the shape type -Fully qualified path: `hello_world::hello_world::Shape::SHAPE_CONST` +Fully qualified path: `hello_world::Shape::SHAPE_CONST` ```rust const SHAPE_CONST: felt252; @@ -40,7 +40,7 @@ fn area(self: T) -> u32 Type alias for a pair of shapes -Fully qualified path: `hello_world::hello_world::Shape::ShapePair` +Fully qualified path: `hello_world::Shape::ShapePair` ```rust type ShapePair; diff --git a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world.md b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world.md index b17728f49..e6cacb9bf 100644 --- a/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world.md +++ b/extensions/scarb-doc/tests/data/hello_world_no_features/src/hello_world.md @@ -1,5 +1,8 @@ # hello_world +Fibonacci sequence calculator + + Fully qualified path: `hello_world` ## Modules diff --git a/extensions/scarb-doc/tests/data/hello_world_sub_package_no_features/src/hello_world_sub_package.md b/extensions/scarb-doc/tests/data/hello_world_sub_package_no_features/src/hello_world_sub_package.md index 298cacd69..4e934703c 100644 --- a/extensions/scarb-doc/tests/data/hello_world_sub_package_no_features/src/hello_world_sub_package.md +++ b/extensions/scarb-doc/tests/data/hello_world_sub_package_no_features/src/hello_world_sub_package.md @@ -1,5 +1,8 @@ # hello_world_sub_package +Sub-package code (without feature) + + Fully qualified path: `hello_world_sub_package` ## Free functions diff --git a/extensions/scarb-doc/tests/data/hello_world_sub_package_with_features/src/hello_world_sub_package.md b/extensions/scarb-doc/tests/data/hello_world_sub_package_with_features/src/hello_world_sub_package.md index 298cacd69..5c0cff0f7 100644 --- a/extensions/scarb-doc/tests/data/hello_world_sub_package_with_features/src/hello_world_sub_package.md +++ b/extensions/scarb-doc/tests/data/hello_world_sub_package_with_features/src/hello_world_sub_package.md @@ -1,5 +1,8 @@ # hello_world_sub_package +Sub-package code (with feature) + + Fully qualified path: `hello_world_sub_package` ## Free functions diff --git a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Circle.md b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Circle.md index 206c8c3a4..0217f7b92 100644 --- a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Circle.md +++ b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Circle.md @@ -12,4 +12,8 @@ Radius of the circle Fully qualified path: `hello_world::Circle::radius` +```rust + radius: u32 +``` + diff --git a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-CircleShape.md b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-CircleShape.md index afc651ed4..5e0a80a28 100644 --- a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-CircleShape.md +++ b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-CircleShape.md @@ -14,7 +14,7 @@ impl CircleShape of Shape Shape constant -Fully qualified path: `hello_world::hello_world::CircleShape::SHAPE_CONST` +Fully qualified path: `hello_world::CircleShape::SHAPE_CONST` ```rust const SHAPE_CONST: felt252 = 'xyz'; @@ -40,7 +40,7 @@ fn area(self: Circle) -> u32 Type alias for a pair of circles -Fully qualified path: `hello_world::hello_world::CircleShape::ShapePair` +Fully qualified path: `hello_world::CircleShape::ShapePair` ```rust type ShapePair = (Circle, Circle); diff --git a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Shape.md b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Shape.md index 9680c4ce9..33e3b8a7d 100644 --- a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Shape.md +++ b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world-Shape.md @@ -14,7 +14,7 @@ trait Shape Constant for the shape type -Fully qualified path: `hello_world::hello_world::Shape::SHAPE_CONST` +Fully qualified path: `hello_world::Shape::SHAPE_CONST` ```rust const SHAPE_CONST: felt252; @@ -40,7 +40,7 @@ fn area(self: T) -> u32 Type alias for a pair of shapes -Fully qualified path: `hello_world::hello_world::Shape::ShapePair` +Fully qualified path: `hello_world::Shape::ShapePair` ```rust type ShapePair; diff --git a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world.md b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world.md index 0dcbc9921..74862f90f 100644 --- a/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world.md +++ b/extensions/scarb-doc/tests/data/hello_world_with_features/src/hello_world.md @@ -1,5 +1,8 @@ # hello_world +Fibonacci sequence calculator + + Fully qualified path: `hello_world` ## Modules diff --git a/extensions/scarb-doc/tests/data/json_output_test_data.json b/extensions/scarb-doc/tests/data/json_output_test_data.json index 7e574ff58..a6d3a0b02 100644 --- a/extensions/scarb-doc/tests/data/json_output_test_data.json +++ b/extensions/scarb-doc/tests/data/json_output_test_data.json @@ -6,7 +6,7 @@ "root_module": { "item_data": { "name": "hello_world", - "doc": null, + "doc": "Fibonacci sequence calculator\n", "signature": null, "full_path": "hello_world" }, @@ -75,7 +75,7 @@ "item_data": { "name": "radius", "doc": "Radius of the circle", - "signature": null, + "signature": " radius: u32", "full_path": "hello_world::Circle::radius" } } @@ -95,7 +95,7 @@ "item_data": { "name": "Red", "doc": "Red color", - "signature": null, + "signature": "", "full_path": "hello_world::Color::Red" } }, @@ -103,7 +103,7 @@ "item_data": { "name": "Green", "doc": "Green color", - "signature": null, + "signature": "", "full_path": "hello_world::Color::Green" } }, @@ -111,7 +111,7 @@ "item_data": { "name": "Blue", "doc": "Blue color", - "signature": null, + "signature": "", "full_path": "hello_world::Color::Blue" } } @@ -143,7 +143,7 @@ "name": "SHAPE_CONST", "doc": "Constant for the shape type", "signature": "const SHAPE_CONST: felt252;", - "full_path": "hello_world::hello_world::Shape::SHAPE_CONST" + "full_path": "hello_world::Shape::SHAPE_CONST" } } ], @@ -153,7 +153,7 @@ "name": "ShapePair", "doc": "Type alias for a pair of shapes", "signature": "type ShapePair;", - "full_path": "hello_world::hello_world::Shape::ShapePair" + "full_path": "hello_world::Shape::ShapePair" } } ], @@ -183,7 +183,7 @@ "name": "ShapePair", "doc": "Type alias for a pair of circles", "signature": "type ShapePair = (Circle, Circle);", - "full_path": "hello_world::hello_world::CircleShape::ShapePair" + "full_path": "hello_world::CircleShape::ShapePair" } } ], @@ -193,7 +193,7 @@ "name": "SHAPE_CONST", "doc": "Shape constant", "signature": "const SHAPE_CONST: felt252 = 'xyz';", - "full_path": "hello_world::hello_world::CircleShape::SHAPE_CONST" + "full_path": "hello_world::CircleShape::SHAPE_CONST" } } ], diff --git a/extensions/scarb-doc/tests/data/json_private_items_excluded.json b/extensions/scarb-doc/tests/data/json_private_items_excluded.json index 43c85fc0b..89efa8732 100644 --- a/extensions/scarb-doc/tests/data/json_private_items_excluded.json +++ b/extensions/scarb-doc/tests/data/json_private_items_excluded.json @@ -73,7 +73,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -91,7 +91,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -165,7 +165,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -183,7 +183,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -250,7 +250,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicParentEnum::PUBLIC_VARIANT" } } @@ -268,7 +268,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateParentEnum::PUBLIC_VARIANT" } } @@ -350,7 +350,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -368,7 +368,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -442,7 +442,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -460,7 +460,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -527,7 +527,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicParentEnum::PUBLIC_VARIANT" } } @@ -545,7 +545,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateParentEnum::PUBLIC_VARIANT" } } @@ -627,7 +627,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -645,7 +645,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -719,7 +719,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -737,7 +737,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -804,7 +804,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicParentEnum::PUBLIC_VARIANT" } } @@ -822,7 +822,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateParentEnum::PUBLIC_VARIANT" } } @@ -914,7 +914,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicEnum::PUBLIC_VARIANT" } } @@ -932,7 +932,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateEnum::PUBLIC_VARIANT" } } @@ -950,7 +950,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateEnum::PRIVATE_VARIANT" } } diff --git a/extensions/scarb-doc/tests/data/json_private_items_included.json b/extensions/scarb-doc/tests/data/json_private_items_included.json index 36b349022..71e862727 100644 --- a/extensions/scarb-doc/tests/data/json_private_items_included.json +++ b/extensions/scarb-doc/tests/data/json_private_items_included.json @@ -61,7 +61,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PublicChildStructure::public_field" } }, @@ -69,7 +69,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PublicChildStructure::public_crate_field" } }, @@ -77,7 +77,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PublicChildStructure::private_field" } } @@ -95,7 +95,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PublicCrateChildStructure::public_field" } }, @@ -103,7 +103,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PublicCrateChildStructure::public_crate_field" } }, @@ -111,7 +111,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PublicCrateChildStructure::private_field" } } @@ -129,7 +129,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PrivateChildStructure::public_field" } }, @@ -137,7 +137,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PrivateChildStructure::public_crate_field" } }, @@ -145,7 +145,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicChild::PrivateChildStructure::private_field" } } @@ -165,7 +165,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -183,7 +183,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -201,7 +201,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -263,7 +263,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicChildStructure::public_field" } }, @@ -271,7 +271,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicChildStructure::public_crate_field" } }, @@ -279,7 +279,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicChildStructure::private_field" } } @@ -297,7 +297,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicCrateChildStructure::public_field" } }, @@ -305,7 +305,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicCrateChildStructure::public_crate_field" } }, @@ -313,7 +313,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicCrateChildStructure::private_field" } } @@ -331,7 +331,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PrivateChildStructure::public_field" } }, @@ -339,7 +339,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PrivateChildStructure::public_crate_field" } }, @@ -347,7 +347,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateChild::PrivateChildStructure::private_field" } } @@ -367,7 +367,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -385,7 +385,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -403,7 +403,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -465,7 +465,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PublicChildStructure::public_field" } }, @@ -473,7 +473,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PublicChildStructure::public_crate_field" } }, @@ -481,7 +481,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PublicChildStructure::private_field" } } @@ -499,7 +499,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PublicCrateChildStructure::public_field" } }, @@ -507,7 +507,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PublicCrateChildStructure::public_crate_field" } }, @@ -515,7 +515,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PublicCrateChildStructure::private_field" } } @@ -533,7 +533,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PrivateChildStructure::public_field" } }, @@ -541,7 +541,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PrivateChildStructure::public_crate_field" } }, @@ -549,7 +549,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PrivateChild::PrivateChildStructure::private_field" } } @@ -569,7 +569,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PrivateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -587,7 +587,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PrivateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -605,7 +605,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PrivateChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -660,7 +660,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicParentStructure::public_field" } }, @@ -668,7 +668,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicParentStructure::public_crate_field" } }, @@ -676,7 +676,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicParentStructure::private_field" } } @@ -694,7 +694,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateParentStructure::public_field" } }, @@ -702,7 +702,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateParentStructure::public_crate_field" } }, @@ -710,7 +710,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PublicCrateParentStructure::private_field" } } @@ -728,7 +728,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicParent::PrivateParentStructure::public_field" } }, @@ -736,7 +736,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicParent::PrivateParentStructure::public_crate_field" } }, @@ -744,7 +744,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicParent::PrivateParentStructure::private_field" } } @@ -764,7 +764,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicParentEnum::PUBLIC_VARIANT" } } @@ -782,7 +782,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PublicCrateParentEnum::PUBLIC_VARIANT" } } @@ -800,7 +800,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicParent::PrivateParentEnum::PRIVATE_VARIANT" } } @@ -870,7 +870,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicChildStructure::public_field" } }, @@ -878,7 +878,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicChildStructure::public_crate_field" } }, @@ -886,7 +886,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicChildStructure::private_field" } } @@ -904,7 +904,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicCrateChildStructure::public_field" } }, @@ -912,7 +912,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicCrateChildStructure::public_crate_field" } }, @@ -920,7 +920,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicCrateChildStructure::private_field" } } @@ -938,7 +938,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PrivateChildStructure::public_field" } }, @@ -946,7 +946,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PrivateChildStructure::public_crate_field" } }, @@ -954,7 +954,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicChild::PrivateChildStructure::private_field" } } @@ -974,7 +974,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -992,7 +992,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -1010,7 +1010,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -1072,7 +1072,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicChildStructure::public_field" } }, @@ -1080,7 +1080,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicChildStructure::public_crate_field" } }, @@ -1088,7 +1088,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicChildStructure::private_field" } } @@ -1106,7 +1106,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicCrateChildStructure::public_field" } }, @@ -1114,7 +1114,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicCrateChildStructure::public_crate_field" } }, @@ -1122,7 +1122,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicCrateChildStructure::private_field" } } @@ -1140,7 +1140,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PrivateChildStructure::public_field" } }, @@ -1148,7 +1148,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PrivateChildStructure::public_crate_field" } }, @@ -1156,7 +1156,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PrivateChildStructure::private_field" } } @@ -1176,7 +1176,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -1194,7 +1194,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -1212,7 +1212,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -1274,7 +1274,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicChildStructure::public_field" } }, @@ -1282,7 +1282,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicChildStructure::public_crate_field" } }, @@ -1290,7 +1290,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicChildStructure::private_field" } } @@ -1308,7 +1308,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicCrateChildStructure::public_field" } }, @@ -1316,7 +1316,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicCrateChildStructure::public_crate_field" } }, @@ -1324,7 +1324,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicCrateChildStructure::private_field" } } @@ -1342,7 +1342,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PrivateChildStructure::public_field" } }, @@ -1350,7 +1350,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PrivateChildStructure::public_crate_field" } }, @@ -1358,7 +1358,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateChild::PrivateChildStructure::private_field" } } @@ -1378,7 +1378,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -1396,7 +1396,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PrivateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -1414,7 +1414,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PrivateChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -1469,7 +1469,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicParentStructure::public_field" } }, @@ -1477,7 +1477,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicParentStructure::public_crate_field" } }, @@ -1485,7 +1485,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicParentStructure::private_field" } } @@ -1503,7 +1503,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateParentStructure::public_field" } }, @@ -1511,7 +1511,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateParentStructure::public_crate_field" } }, @@ -1519,7 +1519,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PublicCrateParentStructure::private_field" } } @@ -1537,7 +1537,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateParentStructure::public_field" } }, @@ -1545,7 +1545,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateParentStructure::public_crate_field" } }, @@ -1553,7 +1553,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateParent::PrivateParentStructure::private_field" } } @@ -1573,7 +1573,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicParentEnum::PUBLIC_VARIANT" } } @@ -1591,7 +1591,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PublicCrateParentEnum::PUBLIC_VARIANT" } } @@ -1609,7 +1609,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateParent::PrivateParentEnum::PRIVATE_VARIANT" } } @@ -1679,7 +1679,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PublicChildStructure::public_field" } }, @@ -1687,7 +1687,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PublicChildStructure::public_crate_field" } }, @@ -1695,7 +1695,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PublicChildStructure::private_field" } } @@ -1713,7 +1713,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PublicCrateChildStructure::public_field" } }, @@ -1721,7 +1721,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PublicCrateChildStructure::public_crate_field" } }, @@ -1729,7 +1729,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PublicCrateChildStructure::private_field" } } @@ -1747,7 +1747,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PrivateChildStructure::public_field" } }, @@ -1755,7 +1755,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PrivateChildStructure::public_crate_field" } }, @@ -1763,7 +1763,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicChild::PrivateChildStructure::private_field" } } @@ -1783,7 +1783,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -1801,7 +1801,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -1819,7 +1819,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -1881,7 +1881,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicChildStructure::public_field" } }, @@ -1889,7 +1889,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicChildStructure::public_crate_field" } }, @@ -1897,7 +1897,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicChildStructure::private_field" } } @@ -1915,7 +1915,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicCrateChildStructure::public_field" } }, @@ -1923,7 +1923,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicCrateChildStructure::public_crate_field" } }, @@ -1931,7 +1931,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicCrateChildStructure::private_field" } } @@ -1949,7 +1949,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PrivateChildStructure::public_field" } }, @@ -1957,7 +1957,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PrivateChildStructure::public_crate_field" } }, @@ -1965,7 +1965,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateChild::PrivateChildStructure::private_field" } } @@ -1985,7 +1985,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -2003,7 +2003,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -2021,7 +2021,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -2083,7 +2083,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PublicChildStructure::public_field" } }, @@ -2091,7 +2091,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PublicChildStructure::public_crate_field" } }, @@ -2099,7 +2099,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PublicChildStructure::private_field" } } @@ -2117,7 +2117,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PublicCrateChildStructure::public_field" } }, @@ -2125,7 +2125,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PublicCrateChildStructure::public_crate_field" } }, @@ -2133,7 +2133,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PublicCrateChildStructure::private_field" } } @@ -2151,7 +2151,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PrivateChildStructure::public_field" } }, @@ -2159,7 +2159,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PrivateChildStructure::public_crate_field" } }, @@ -2167,7 +2167,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PrivateChild::PrivateChildStructure::private_field" } } @@ -2187,7 +2187,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PrivateChild::PublicChildEnum::PUBLIC_VARIANT" } } @@ -2205,7 +2205,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PrivateChild::PublicCrateChildEnum::PUBLIC_VARIANT" } } @@ -2223,7 +2223,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PrivateChild::PrivateChildEnum::PRIVATE_VARIANT" } } @@ -2278,7 +2278,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicParentStructure::public_field" } }, @@ -2286,7 +2286,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicParentStructure::public_crate_field" } }, @@ -2294,7 +2294,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicParentStructure::private_field" } } @@ -2312,7 +2312,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateParentStructure::public_field" } }, @@ -2320,7 +2320,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateParentStructure::public_crate_field" } }, @@ -2328,7 +2328,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PublicCrateParentStructure::private_field" } } @@ -2346,7 +2346,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateParent::PrivateParentStructure::public_field" } }, @@ -2354,7 +2354,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateParent::PrivateParentStructure::public_crate_field" } }, @@ -2362,7 +2362,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateParent::PrivateParentStructure::private_field" } } @@ -2382,7 +2382,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicParentEnum::PUBLIC_VARIANT" } } @@ -2400,7 +2400,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PublicCrateParentEnum::PUBLIC_VARIANT" } } @@ -2418,7 +2418,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateParent::PrivateParentEnum::PRIVATE_VARIANT" } } @@ -2481,7 +2481,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicStructure::public_field" } }, @@ -2489,7 +2489,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicStructure::public_crate_field" } }, @@ -2497,7 +2497,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicStructure::private_field" } } @@ -2515,7 +2515,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PublicCrateStructure::public_field" } }, @@ -2523,7 +2523,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PublicCrateStructure::public_crate_field" } }, @@ -2531,7 +2531,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PublicCrateStructure::private_field" } } @@ -2549,7 +2549,7 @@ "item_data": { "name": "public_field", "doc": "Public struct field", - "signature": null, + "signature": "pub public_field: felt252", "full_path": "hello_world::PrivateStructure::public_field" } }, @@ -2557,7 +2557,7 @@ "item_data": { "name": "public_crate_field", "doc": "Public crate struct field", - "signature": null, + "signature": "pub(crate) public_crate_field: felt252", "full_path": "hello_world::PrivateStructure::public_crate_field" } }, @@ -2565,7 +2565,7 @@ "item_data": { "name": "private_field", "doc": "Private struct field", - "signature": null, + "signature": " private_field: felt252", "full_path": "hello_world::PrivateStructure::private_field" } } @@ -2585,7 +2585,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicEnum::PUBLIC_VARIANT" } } @@ -2603,7 +2603,7 @@ "item_data": { "name": "PUBLIC_VARIANT", "doc": "Public enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PublicCrateEnum::PUBLIC_VARIANT" } } @@ -2621,7 +2621,7 @@ "item_data": { "name": "PRIVATE_VARIANT", "doc": "Private enum variant", - "signature": null, + "signature": "", "full_path": "hello_world::PrivateEnum::PRIVATE_VARIANT" } }