🔍 [RUST] Starting directory analysis: src 📁 [RUST] File discovery took: 0.094s, found 106 files ⚡ [RUST] Starting PARALLEL analysis (parallel=true) 🔧 [RUST] Creating 106 spawn_blocking tasks for parallel processing 🔄 [RUST] Processing file 1/106 on thread ThreadId(18): src/ast.rs 🔄 [RUST] Processing file 101/106 on thread ThreadId(209): src/stdlib/mod.rs 🚀 [RUST] Spawned 106 blocking tasks, waiting for completion... 🔄 [RUST] Processing file 106/106 on thread ThreadId(145): src/value.rs 🔄 [RUST] File analysis took: 1.543s (106 files) 📊 [RUST] Summary generation took: 0.000s 🏁 [RUST] Total directory analysis took: 1.638s { "directory_path": "src", "files": [ { "file_info": { "name": "ast.rs", "path": "src/ast.rs", "size_bytes": 0, "total_lines": 1006, "code_lines": 825, "comment_lines": 89, "empty_lines": 92, "code_ratio": 0.820079522862823, "analyzed_at": "2025-08-15T16:19:40.592377601Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "Span", "parent_class": null, "start_line": 14, "end_line": 19, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "Span", "parent_class": null, "start_line": 21, "end_line": 79, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "Span", "parent_class": null, "start_line": 81, "end_line": 85, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "ASTNodeType", "parent_class": null, "start_line": 92, "end_line": 96, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "StructureNode", "parent_class": null, "start_line": 100, "end_line": 144, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "ExpressionNode", "parent_class": null, "start_line": 148, "end_line": 197, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "StatementNode", "parent_class": null, "start_line": 201, "end_line": 235, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "CatchClause", "parent_class": null, "start_line": 239, "end_line": 244, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "LiteralValue", "parent_class": null, "start_line": 248, "end_line": 255, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "LiteralValue", "parent_class": null, "start_line": 257, "end_line": 296, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "LiteralValue", "parent_class": null, "start_line": 298, "end_line": 309, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } }, { "name": "UnaryOperator", "parent_class": null, "start_line": 313, "end_line": 316, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "BinaryOperator", "parent_class": null, "start_line": 320, "end_line": 334, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "UnaryOperator", "parent_class": null, "start_line": 336, "end_line": 344, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "BinaryOperator", "parent_class": null, "start_line": 346, "end_line": 365, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "ASTNode", "parent_class": null, "start_line": 369, "end_line": 605, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "ASTNode", "parent_class": null, "start_line": 607, "end_line": 862, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ASTNode", "parent_class": null, "start_line": 864, "end_line": 868, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } }, { "name": "ASTNode", "parent_class": null, "start_line": 870, "end_line": 878, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 23, "end_line": 25, "parameters": [ "start: usize", "end: usize", "line: usize", "column: usize" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "unknown", "start_line": 28, "end_line": 30, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "merge", "start_line": 33, "end_line": 40, "parameters": [ "&self", "other: Span" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "error_context", "start_line": 43, "end_line": 73, "parameters": [ "&self", "source: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "location_string", "start_line": 76, "end_line": 78, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 82, "end_line": 84, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_nyash_box", "start_line": 259, "end_line": 271, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "from_nyash_box", "start_line": 274, "end_line": 295, "parameters": [ "box_val: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 299, "end_line": 308, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 337, "end_line": 343, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 347, "end_line": 364, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "node_type", "start_line": 609, "end_line": 644, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "classify", "start_line": 648, "end_line": 688, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_structure", "start_line": 691, "end_line": 693, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_expression", "start_line": 696, "end_line": 698, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_statement", "start_line": 701, "end_line": 703, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "info", "start_line": 706, "end_line": 823, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "span", "start_line": 826, "end_line": 861, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 865, "end_line": 867, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_param_count", "start_line": 872, "end_line": 877, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_ast_node_creation", "start_line": 888, "end_line": 918, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_binary_operator", "start_line": 921, "end_line": 930, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_complex_ast", "start_line": 933, "end_line": 974, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_method_call", "start_line": 977, "end_line": 990, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_binary_operation", "start_line": 993, "end_line": 1005, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::NyashBox", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 260, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 261, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 276, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 277, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 278, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 884, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 885, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 19, "function_count": 25, "import_count": 10, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Span", "full_name": "", "start_line": 14, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Span", "full_name": "", "start_line": 21, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 23, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "unknown", "full_name": "", "start_line": 28, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "merge", "full_name": "", "start_line": 33, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "error_context", "full_name": "", "start_line": 43, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<&str>", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 45, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 50, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 56, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 58, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 61, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 61, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 66, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "location_string", "full_name": "", "start_line": 76, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Span", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNodeType", "full_name": "", "start_line": 92, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StructureNode", "full_name": "", "start_line": 100, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExpressionNode", "full_name": "", "start_line": 148, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StatementNode", "full_name": "", "start_line": 201, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CatchClause", "full_name": "", "start_line": 239, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LiteralValue", "full_name": "", "start_line": 248, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LiteralValue", "full_name": "", "start_line": 257, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_nyash_box", "full_name": "", "start_line": 259, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 261, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_nyash_box", "full_name": "", "start_line": 274, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 276, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 277, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 278, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 280, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 282, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 286, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 288, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 290, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LiteralValue", "full_name": "", "start_line": 298, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 299, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "UnaryOperator", "full_name": "", "start_line": 313, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOperator", "full_name": "", "start_line": 320, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "UnaryOperator", "full_name": "", "start_line": 336, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 337, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 338, "end_line": 341, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOperator", "full_name": "", "start_line": 346, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 347, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 348, "end_line": 362, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 369, "end_line": 605, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 607, "end_line": 862, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "node_type", "full_name": "", "start_line": 609, "end_line": 644, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "classify", "full_name": "", "start_line": 648, "end_line": 688, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_structure", "full_name": "", "start_line": 691, "end_line": 693, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_expression", "full_name": "", "start_line": 696, "end_line": 698, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_statement", "full_name": "", "start_line": 701, "end_line": 703, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "info", "full_name": "", "start_line": 706, "end_line": 823, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 720, "end_line": 724, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 731, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 731, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 737, "end_line": 739, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 741, "end_line": 743, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 749, "end_line": 749, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 749, "end_line": 749, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 750, "end_line": 750, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 750, "end_line": 750, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 774, "end_line": 778, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 810, "end_line": 811, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 812, "end_line": 814, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "span", "full_name": "", "start_line": 826, "end_line": 861, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 864, "end_line": 868, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 865, "end_line": 867, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 870, "end_line": 878, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_param_count", "full_name": "", "start_line": 872, "end_line": 877, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 884, "end_line": 884, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 885, "end_line": 885, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ast_node_creation", "full_name": "", "start_line": 888, "end_line": 918, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 890, "end_line": 893, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 898, "end_line": 901, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 907, "end_line": 914, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_binary_operator", "full_name": "", "start_line": 921, "end_line": 930, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 922, "end_line": 922, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 925, "end_line": 925, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 928, "end_line": 928, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_complex_ast", "full_name": "", "start_line": 933, "end_line": 974, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 935, "end_line": 935, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 954, "end_line": 968, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_method_call", "full_name": "", "start_line": 977, "end_line": 990, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 979, "end_line": 984, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_binary_operation", "full_name": "", "start_line": 993, "end_line": 1005, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 995, "end_line": 1000, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 94, "max_depth": 16, "node_type_counts": { "function": 25, "file_root": 1, "if_statement": 17, "import": 10, "class": 19, "variable": 20, "for_loop": 2 }, "classes": 19, "functions": 25, "methods": 0, "variables": 20, "control_structures": 19 }, "generated_at": "2025-08-15T16:19:40.592488213Z" }, { "file_info": { "name": "compiler.rs", "path": "src/backend/aot/compiler.rs", "size_bytes": 0, "total_lines": 223, "code_lines": 154, "comment_lines": 31, "empty_lines": 38, "code_ratio": 0.6905829596412556, "analyzed_at": "2025-08-15T16:19:40.592511013Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "AotCompiler", "parent_class": null, "start_line": 14, "end_line": 18, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "AotCompiler", "parent_class": null, "start_line": 20, "end_line": 152, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 22, "end_line": 42, "parameters": [ "config: &AotConfig" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 25, "end_line": 25, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "compile_mir_to_wasm", "start_line": 45, "end_line": 62, "parameters": [ "&mut self", "mir_module: MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 50, "end_line": 56, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "precompile_wasm", "start_line": 65, "end_line": 80, "parameters": [ "&mut self", "wasm_bytes: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 70, "end_line": 70, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 74, "end_line": 74, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "compile_mir_to_native", "start_line": 83, "end_line": 86, "parameters": [ "&mut self", "mir_module: MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "execute_precompiled", "start_line": 89, "end_line": 113, "parameters": [ "&self", "precompiled_bytes: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 93, "end_line": 93, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 99, "end_line": 99, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 104, "end_line": 104, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 105, "end_line": 105, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 106, "end_line": 106, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 110, "end_line": 110, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "validate_wasm", "start_line": 116, "end_line": 120, "parameters": [ "&self", "wasm_bytes: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 118, "end_line": 118, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_stats", "start_line": 123, "end_line": 125, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "reset_stats", "start_line": 128, "end_line": 135, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "compression_ratio", "start_line": 138, "end_line": 143, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "engine_info", "start_line": 146, "end_line": 151, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_compiler_creation", "start_line": 160, "end_line": 165, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_empty_module_compilation", "start_line": 168, "end_line": 181, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_stats_tracking", "start_line": 184, "end_line": 193, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_wasm_validation", "start_line": 196, "end_line": 203, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_compression_ratio", "start_line": 206, "end_line": 212, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_engine_info", "start_line": 215, "end_line": 222, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{AotError, AotConfig, AotStats}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::MirModule", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::backend::wasm::{WasmBackend, WasmError}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "wasmtime::{Engine, Module}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::time::Instant", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 156, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::MirModule", "imported_names": [], "alias": null, "line_number": 157, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 2, "function_count": 27, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotCompiler", "full_name": "", "start_line": 14, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotCompiler", "full_name": "", "start_line": 20, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 22, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 24, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 28, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 30, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_mir_to_wasm", "full_name": "", "start_line": 45, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 49, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "precompile_wasm", "full_name": "", "start_line": 65, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 69, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 73, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_mir_to_native", "full_name": "", "start_line": 83, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 84, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_precompiled", "full_name": "", "start_line": 89, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 91, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 98, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 102, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "validate_wasm", "full_name": "", "start_line": 116, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_stats", "full_name": "", "start_line": 123, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset_stats", "full_name": "", "start_line": 128, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compression_ratio", "full_name": "", "start_line": 138, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 139, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "engine_info", "full_name": "", "start_line": 146, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 156, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 157, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_compiler_creation", "full_name": "", "start_line": 160, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 161, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 162, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_empty_module_compilation", "full_name": "", "start_line": 168, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 169, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 170, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_stats_tracking", "full_name": "", "start_line": 184, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 185, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 186, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_wasm_validation", "full_name": "", "start_line": 196, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 198, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_compression_ratio", "full_name": "", "start_line": 206, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 208, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_engine_info", "full_name": "", "start_line": 215, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 216, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 217, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 218, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 58, "max_depth": 6, "node_type_counts": { "if_statement": 1, "function": 16, "class": 2, "file_root": 1, "import": 7, "variable": 31 }, "classes": 2, "functions": 16, "methods": 0, "variables": 31, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.592524190Z" }, { "file_info": { "name": "config.rs", "path": "src/backend/aot/config.rs", "size_bytes": 0, "total_lines": 256, "code_lines": 185, "comment_lines": 29, "empty_lines": 42, "code_ratio": 0.72265625, "analyzed_at": "2025-08-15T16:19:40.592512827Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "AotConfig", "parent_class": null, "start_line": 12, "end_line": 19, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "AotConfig", "parent_class": null, "start_line": 21, "end_line": 203, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "AotConfig", "parent_class": null, "start_line": 205, "end_line": 209, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } } ], "functions": [ { "name": "new", "start_line": 23, "end_line": 62, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "debug", "start_line": 65, "end_line": 88, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "for_target", "start_line": 91, "end_line": 121, "parameters": [ "target: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "wasmtime_config", "start_line": 124, "end_line": 126, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "optimization_level", "start_line": 129, "end_line": 131, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "target_arch", "start_line": 134, "end_line": 136, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "simd_enabled", "start_line": 139, "end_line": 141, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "compatibility_key", "start_line": 144, "end_line": 154, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "rebuild_wasmtime_config", "start_line": 157, "end_line": 186, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "set_optimization_level", "start_line": 189, "end_line": 196, "parameters": [ "&mut self", "level: u8" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_simd", "start_line": 199, "end_line": 202, "parameters": [ "&mut self", "enabled: bool" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 206, "end_line": 208, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_default_config", "start_line": 216, "end_line": 220, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_debug_config", "start_line": 223, "end_line": 227, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_compatibility_key", "start_line": 230, "end_line": 235, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_target_config", "start_line": 238, "end_line": 242, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_optimization_level_setting", "start_line": 245, "end_line": 249, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_invalid_optimization_level", "start_line": 252, "end_line": 255, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::AotError", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "wasmtime::{Config, OptLevel, Strategy}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 213, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 3, "function_count": 18, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotConfig", "full_name": "", "start_line": 12, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotConfig", "full_name": "", "start_line": 21, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 23, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 24, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 44, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 44, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 46, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 48, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "debug", "full_name": "", "start_line": 65, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "for_target", "full_name": "", "start_line": 91, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "wasmtime_config", "full_name": "", "start_line": 124, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "optimization_level", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "target_arch", "full_name": "", "start_line": 134, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "simd_enabled", "full_name": "", "start_line": 139, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compatibility_key", "full_name": "", "start_line": 144, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "rebuild_wasmtime_config", "full_name": "", "start_line": 157, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 158, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 162, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 178, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_optimization_level", "full_name": "", "start_line": 189, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 190, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_simd", "full_name": "", "start_line": 199, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotConfig", "full_name": "", "start_line": 205, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 206, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 213, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_default_config", "full_name": "", "start_line": 216, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 217, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_debug_config", "full_name": "", "start_line": 223, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 224, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_compatibility_key", "full_name": "", "start_line": 230, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 231, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 232, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_target_config", "full_name": "", "start_line": 238, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_optimization_level_setting", "full_name": "", "start_line": 245, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 246, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_invalid_optimization_level", "full_name": "", "start_line": 252, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 253, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 44, "max_depth": 12, "node_type_counts": { "variable": 14, "function": 18, "import": 3, "file_root": 1, "class": 3, "if_statement": 5 }, "classes": 3, "functions": 18, "methods": 0, "variables": 14, "control_structures": 5 }, "generated_at": "2025-08-15T16:19:40.592530783Z" }, { "file_info": { "name": "executable.rs", "path": "src/backend/aot/executable.rs", "size_bytes": 0, "total_lines": 280, "code_lines": 192, "comment_lines": 35, "empty_lines": 53, "code_ratio": 0.6857142857142857, "analyzed_at": "2025-08-15T16:19:40.592288560Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ExecutableBuilder", "parent_class": null, "start_line": 12, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } } ], "functions": [ { "name": "new", "start_line": 20, "end_line": 26, "parameters": [ "config: &'a AotConfig" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "embed_precompiled_module", "start_line": 29, "end_line": 32, "parameters": [ "&mut self", "module_data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_executable", "start_line": 35, "end_line": 58, "parameters": [ "&self", "output_path: P" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 37, "end_line": 37, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "generate_runtime_code", "start_line": 61, "end_line": 73, "parameters": [ "&self", "module_data: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "format_module_bytes", "start_line": 76, "end_line": 89, "parameters": [ "&self", "data: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_cargo_toml", "start_line": 92, "end_line": 112, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "compile_rust_executable", "start_line": 115, "end_line": 148, "parameters": [ "&self", "temp_dir: P", "output_path: Q" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 125, "end_line": 125, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 145, "end_line": 145, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_executable_builder_creation", "start_line": 228, "end_line": 233, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_embed_module", "start_line": 236, "end_line": 243, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_format_module_bytes", "start_line": 246, "end_line": 256, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_cargo_toml_generation", "start_line": 259, "end_line": 267, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_runtime_code_generation", "start_line": 270, "end_line": 279, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{AotError, AotConfig}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::path::Path", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 225, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 15, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExecutableBuilder", "full_name": "", "start_line": 12, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExecutableBuilder<'a>", "full_name": "", "start_line": 18, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 20, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "embed_precompiled_module", "full_name": "", "start_line": 29, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_executable", "full_name": "", "start_line": 35, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 45, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_runtime_code", "full_name": "", "start_line": 61, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 62, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "format_module_bytes", "full_name": "", "start_line": 76, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 80, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_cargo_toml", "full_name": "", "start_line": 92, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_rust_executable", "full_name": "", "start_line": 115, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 116, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 117, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 120, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 124, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 127, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 128, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 133, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 134, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 134, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "RUNTIME_TEMPLATE", "full_name": "", "start_line": 152, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 225, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_executable_builder_creation", "full_name": "", "start_line": 228, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 230, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_embed_module", "full_name": "", "start_line": 236, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 237, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 238, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_format_module_bytes", "full_name": "", "start_line": 246, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 247, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 248, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 249, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_cargo_toml_generation", "full_name": "", "start_line": 259, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 261, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 262, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_runtime_code_generation", "full_name": "", "start_line": 270, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 271, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 272, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 273, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 59, "max_depth": 9, "node_type_counts": { "variable": 35, "import": 4, "for_loop": 1, "class": 2, "if_statement": 4, "file_root": 1, "function": 12 }, "classes": 2, "functions": 12, "methods": 0, "variables": 35, "control_structures": 5 }, "generated_at": "2025-08-15T16:19:40.592305169Z" }, { "file_info": { "name": "mod.rs", "path": "src/backend/aot/mod.rs", "size_bytes": 0, "total_lines": 151, "code_lines": 107, "comment_lines": 20, "empty_lines": 24, "code_ratio": 0.7086092715231788, "analyzed_at": "2025-08-15T16:19:40.592274809Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "AotError", "parent_class": null, "start_line": 21, "end_line": 27, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "AotError", "parent_class": null, "start_line": 29, "end_line": 39, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "AotError", "parent_class": null, "start_line": 41, "end_line": 41, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::error::Error", "type": "impl" } }, { "name": "AotError", "parent_class": null, "start_line": 43, "end_line": 47, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "From" } }, { "name": "AotError", "parent_class": null, "start_line": 49, "end_line": 53, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "From" } }, { "name": "AotBackend", "parent_class": null, "start_line": 56, "end_line": 59, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "AotBackend", "parent_class": null, "start_line": 61, "end_line": 117, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "AotBackend", "parent_class": null, "start_line": 119, "end_line": 123, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } }, { "name": "AotStats", "parent_class": null, "start_line": 127, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } } ], "functions": [ { "name": "fmt", "start_line": 30, "end_line": 38, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "from", "start_line": 44, "end_line": 46, "parameters": [ "error" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "from", "start_line": 50, "end_line": 52, "parameters": [ "error" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 63, "end_line": 71, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "with_config", "start_line": 74, "end_line": 81, "parameters": [ "config: AotConfig" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "compile_to_executable", "start_line": 84, "end_line": 93, "parameters": [ "&mut self", "mir_module: MirModule", "output_path: P" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "compile_to_precompiled", "start_line": 96, "end_line": 111, "parameters": [ "&mut self", "mir_module: MirModule", "output_path: P" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_stats", "start_line": 114, "end_line": 116, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "default", "start_line": 120, "end_line": 122, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_aot_backend_creation", "start_line": 140, "end_line": 144, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_default_config", "start_line": 147, "end_line": 150, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "compiler::AotCompiler", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "executable::ExecutableBuilder", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "config::AotConfig", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::MirModule", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "std::path::Path", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 136, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::MirModule", "imported_names": [], "alias": null, "line_number": 137, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 9, "function_count": 11, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 17, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotError", "full_name": "", "start_line": 21, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotError", "full_name": "", "start_line": 29, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 30, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotError", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotError", "full_name": "", "start_line": 43, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from", "full_name": "", "start_line": 44, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotError", "full_name": "", "start_line": 49, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from", "full_name": "", "start_line": 50, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotBackend", "full_name": "", "start_line": 56, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotBackend", "full_name": "", "start_line": 61, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 63, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "with_config", "full_name": "", "start_line": 74, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_to_executable", "full_name": "", "start_line": 84, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 91, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_to_precompiled", "full_name": "", "start_line": 96, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 102, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 105, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_stats", "full_name": "", "start_line": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotBackend", "full_name": "", "start_line": 119, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 120, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AotStats", "full_name": "", "start_line": 127, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 137, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_aot_backend_creation", "full_name": "", "start_line": 140, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_default_config", "full_name": "", "start_line": 147, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 148, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 36, "max_depth": 5, "node_type_counts": { "file_root": 1, "function": 11, "variable": 8, "class": 9, "import": 7 }, "classes": 9, "functions": 11, "methods": 0, "variables": 8, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.592286649Z" }, { "file_info": { "name": "mod.rs", "path": "src/backend/mod.rs", "size_bytes": 0, "total_lines": 11, "code_lines": 6, "comment_lines": 3, "empty_lines": 2, "code_ratio": 0.5454545454545454, "analyzed_at": "2025-08-15T16:19:40.592524375Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "vm::{VM, VMError, VMValue}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "wasm::{WasmBackend, WasmError}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "aot::{AotBackend, AotError, AotConfig, AotStats}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 0, "function_count": 0, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 4, "max_depth": 1, "node_type_counts": { "import": 3, "file_root": 1 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.592526352Z" }, { "file_info": { "name": "vm.rs", "path": "src/backend/vm.rs", "size_bytes": 0, "total_lines": 852, "code_lines": 624, "comment_lines": 124, "empty_lines": 104, "code_ratio": 0.7323943661971831, "analyzed_at": "2025-08-15T16:19:40.592322246Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "VMError", "parent_class": null, "start_line": 13, "end_line": 20, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "VMError", "parent_class": null, "start_line": 22, "end_line": 33, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "VMError", "parent_class": null, "start_line": 35, "end_line": 35, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::error::Error", "type": "impl" } }, { "name": "VMValue", "parent_class": null, "start_line": 39, "end_line": 46, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "VMValue", "parent_class": null, "start_line": 48, "end_line": 106, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "VMValue", "parent_class": null, "start_line": 108, "end_line": 119, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "From<&ConstValue>" } }, { "name": "VM", "parent_class": null, "start_line": 122, "end_line": 135, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "VM", "parent_class": null, "start_line": 137, "end_line": 793, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ControlFlow", "parent_class": null, "start_line": 796, "end_line": 800, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum" } }, { "name": "VM", "parent_class": null, "start_line": 802, "end_line": 806, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } } ], "functions": [ { "name": "fmt", "start_line": 23, "end_line": 32, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_nyash_box", "start_line": 50, "end_line": 59, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_string", "start_line": 62, "end_line": 71, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "as_integer", "start_line": 74, "end_line": 79, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "as_bool", "start_line": 82, "end_line": 88, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "from_nyash_box", "start_line": 91, "end_line": 105, "parameters": [ "nyash_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "from", "start_line": 109, "end_line": 118, "parameters": [ "const_val: &ConstValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 139, "end_line": 148, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute_module", "start_line": 151, "end_line": 161, "parameters": [ "&mut self", "module: &MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 154, "end_line": 154, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_function", "start_line": 164, "end_line": 213, "parameters": [ "&mut self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 172, "end_line": 172, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_instruction", "start_line": 216, "end_line": 588, "parameters": [ "&mut self", "instruction: &MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 561, "end_line": 561, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_value", "start_line": 591, "end_line": 595, "parameters": [ "&self", "value_id: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 594, "end_line": 594, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_binary_op", "start_line": 598, "end_line": 634, "parameters": [ "&self", "op: &BinaryOp", "left: &VMValue", "right: &VMValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_unary_op", "start_line": 637, "end_line": 643, "parameters": [ "&self", "op: &UnaryOp", "operand: &VMValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_compare_op", "start_line": 646, "end_line": 674, "parameters": [ "&self", "op: &CompareOp", "left: &VMValue", "right: &VMValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "call_box_method", "start_line": 677, "end_line": 792, "parameters": [ "&self", "box_value", "method: &str", "_args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "default", "start_line": 803, "end_line": 805, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_basic_vm_execution", "start_line": 814, "end_line": 828, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_binary_operations", "start_line": 831, "end_line": 851, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, MirInstruction, ConstValue, BinaryOp, CompareOp, UnaryOp, ValueId, BasicBlockId}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 810, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}", "imported_names": [], "alias": null, "line_number": 811, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 10, "function_count": 23, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMError", "full_name": "", "start_line": 13, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMError", "full_name": "", "start_line": 22, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 23, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMError", "full_name": "", "start_line": 35, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMValue", "full_name": "", "start_line": 39, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMValue", "full_name": "", "start_line": 48, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_nyash_box", "full_name": "", "start_line": 50, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string", "full_name": "", "start_line": 62, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_integer", "full_name": "", "start_line": 74, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_bool", "full_name": "", "start_line": 82, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_nyash_box", "full_name": "", "start_line": 91, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 93, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 95, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 97, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMValue", "full_name": "", "start_line": 108, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from", "full_name": "", "start_line": 109, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VM", "full_name": "", "start_line": 122, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VM", "full_name": "", "start_line": 137, "end_line": 793, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 139, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_module", "full_name": "", "start_line": 151, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 153, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 157, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_function", "full_name": "", "start_line": 164, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 168, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 170, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 177, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 181, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 183, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 205, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_instruction", "full_name": "", "start_line": 216, "end_line": 588, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 220, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 226, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 227, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 228, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 235, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 241, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 242, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 243, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 249, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 255, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 256, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 271, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 272, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 274, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 294, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 301, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 309, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 317, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 318, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 321, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 322, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 323, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 328, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 331, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 332, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 340, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 343, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 348, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 353, "end_line": 353, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 358, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 381, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 401, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 408, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 420, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 444, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 451, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 451, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 452, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 469, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 472, "end_line": 474, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 477, "end_line": 479, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 487, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 495, "end_line": 495, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 514, "end_line": 514, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 516, "end_line": 516, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 518, "end_line": 518, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 527, "end_line": 527, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 528, "end_line": 528, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 530, "end_line": 535, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 539, "end_line": 539, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 542, "end_line": 554, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 544, "end_line": 544, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 548, "end_line": 548, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Result, _>", "full_name": "", "start_line": 561, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 562, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 567, "end_line": 573, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 568, "end_line": 572, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 569, "end_line": 571, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 576, "end_line": 578, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 581, "end_line": 583, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_value", "full_name": "", "start_line": 591, "end_line": 595, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_binary_op", "full_name": "", "start_line": 598, "end_line": 634, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 601, "end_line": 612, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 606, "end_line": 608, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_unary_op", "full_name": "", "start_line": 637, "end_line": 643, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_compare_op", "full_name": "", "start_line": 646, "end_line": 674, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 649, "end_line": 656, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 661, "end_line": 668, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "call_box_method", "full_name": "", "start_line": 677, "end_line": 792, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 682, "end_line": 725, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 692, "end_line": 711, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 693, "end_line": 710, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 694, "end_line": 709, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 698, "end_line": 698, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 699, "end_line": 699, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 700, "end_line": 700, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 702, "end_line": 708, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 703, "end_line": 703, "start_column": 0, "end_column": 0, "depth": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 704, "end_line": 707, "start_column": 0, "end_column": 0, "depth": 26, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 705, "end_line": 705, "start_column": 0, "end_column": 0, "depth": 28, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 716, "end_line": 720, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 717, "end_line": 717, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 718, "end_line": 718, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 728, "end_line": 738, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 741, "end_line": 748, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 751, "end_line": 788, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 754, "end_line": 754, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 759, "end_line": 767, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 760, "end_line": 766, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 761, "end_line": 761, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 762, "end_line": 762, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 763, "end_line": 765, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ControlFlow", "full_name": "", "start_line": 796, "end_line": 800, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VM", "full_name": "", "start_line": 802, "end_line": 806, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 803, "end_line": 805, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 810, "end_line": 810, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 811, "end_line": 811, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_basic_vm_execution", "full_name": "", "start_line": 814, "end_line": 828, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 815, "end_line": 815, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 818, "end_line": 821, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 823, "end_line": 823, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 826, "end_line": 826, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_binary_operations", "full_name": "", "start_line": 831, "end_line": 851, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 832, "end_line": 832, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 839, "end_line": 844, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 846, "end_line": 846, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 849, "end_line": 849, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 149, "max_depth": 28, "node_type_counts": { "class": 10, "function": 19, "if_statement": 35, "import": 5, "variable": 75, "file_root": 1, "for_loop": 4 }, "classes": 10, "functions": 19, "methods": 0, "variables": 75, "control_structures": 39 }, "generated_at": "2025-08-15T16:19:40.592375483Z" }, { "file_info": { "name": "codegen.rs", "path": "src/backend/wasm/codegen.rs", "size_bytes": 0, "total_lines": 600, "code_lines": 415, "comment_lines": 96, "empty_lines": 89, "code_ratio": 0.6916666666666667, "analyzed_at": "2025-08-15T16:19:40.592422473Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WasmModule", "parent_class": null, "start_line": 13, "end_line": 20, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "WasmModule", "parent_class": null, "start_line": 22, "end_line": 72, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "WasmCodegen", "parent_class": null, "start_line": 75, "end_line": 82, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "WasmCodegen", "parent_class": null, "start_line": 84, "end_line": 573, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 23, "end_line": 32, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_wat", "start_line": 35, "end_line": 71, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new", "start_line": 85, "end_line": 92, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "generate_module", "start_line": 95, "end_line": 138, "parameters": [ "&mut self", "mir_module: MirModule", "memory_manager: &MemoryManager", "runtime: &RuntimeImports" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "generate_function", "start_line": 141, "end_line": 178, "parameters": [ "&mut self", "name: &str", "mir_function: MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "count_locals", "start_line": 181, "end_line": 203, "parameters": [ "&mut self", "mir_function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_basic_block", "start_line": 206, "end_line": 225, "parameters": [ "&mut self", "mir_function: &MirFunction", "block_id: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 208, "end_line": 208, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "generate_instruction", "start_line": 228, "end_line": 411, "parameters": [ "&mut self", "instruction: &MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_const", "start_line": 414, "end_line": 437, "parameters": [ "&mut self", "dst: ValueId", "value: &ConstValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_binop", "start_line": 440, "end_line": 459, "parameters": [ "&self", "dst: ValueId", "op: BinaryOp", "lhs: ValueId", "rhs: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_compare", "start_line": 462, "end_line": 478, "parameters": [ "&self", "dst: ValueId", "op: CompareOp", "lhs: ValueId", "rhs: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_return", "start_line": 481, "end_line": 490, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_string_box_const", "start_line": 493, "end_line": 519, "parameters": [ "&self", "dst: ValueId", "data_offset: u32", "string_len: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_print", "start_line": 522, "end_line": 527, "parameters": [ "&self", "value: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "register_string_literal", "start_line": 530, "end_line": 541, "parameters": [ "&mut self", "string: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "generate_data_segments", "start_line": 544, "end_line": 565, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 552, "end_line": 552, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_local_index", "start_line": 568, "end_line": 572, "parameters": [ "&self", "value_id: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 571, "end_line": 571, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_wasm_module_wat_generation", "start_line": 581, "end_line": 590, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_constant_generation", "start_line": 593, "end_line": 599, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, MirInstruction, ConstValue, BinaryOp, CompareOp, UnaryOp, ValueId, BasicBlockId}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::{WasmError, MemoryManager, RuntimeImports}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 577, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock, BasicBlockId, ValueId}", "imported_names": [], "alias": null, "line_number": 578, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 22, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmModule", "full_name": "", "start_line": 13, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmModule", "full_name": "", "start_line": 22, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 23, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_wat", "full_name": "", "start_line": 35, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 40, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 45, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 50, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 55, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 60, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmCodegen", "full_name": "", "start_line": 75, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmCodegen", "full_name": "", "start_line": 84, "end_line": 573, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 85, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_module", "full_name": "", "start_line": 95, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 101, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 117, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 118, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 124, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 133, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_function", "full_name": "", "start_line": 141, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 161, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 163, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 172, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "count_locals", "full_name": "", "start_line": 181, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 182, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 184, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 185, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 189, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 196, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_basic_block", "full_name": "", "start_line": 206, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 210, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 213, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 214, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 219, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 220, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_instruction", "full_name": "", "start_line": 228, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 294, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 300, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 377, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 386, "end_line": 386, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 389, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 397, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_const", "full_name": "", "start_line": 414, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 415, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 421, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 422, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_binop", "full_name": "", "start_line": 440, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 441, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_compare", "full_name": "", "start_line": 462, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 463, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_return", "full_name": "", "start_line": 481, "end_line": 490, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 482, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_string_box_const", "full_name": "", "start_line": 493, "end_line": 519, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_print", "full_name": "", "start_line": 522, "end_line": 527, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_string_literal", "full_name": "", "start_line": 530, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 531, "end_line": 533, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 535, "end_line": 535, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 536, "end_line": 536, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_data_segments", "full_name": "", "start_line": 544, "end_line": 565, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 545, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 547, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 548, "end_line": 548, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 551, "end_line": 553, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 555, "end_line": 559, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_local_index", "full_name": "", "start_line": 568, "end_line": 572, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 577, "end_line": 577, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 578, "end_line": 578, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_wasm_module_wat_generation", "full_name": "", "start_line": 581, "end_line": 590, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 582, "end_line": 582, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 586, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_constant_generation", "full_name": "", "start_line": 593, "end_line": 599, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 594, "end_line": 594, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 595, "end_line": 595, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 597, "end_line": 597, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 86, "max_depth": 16, "node_type_counts": { "for_loop": 17, "if_statement": 9, "file_root": 1, "import": 5, "variable": 31, "function": 19, "class": 4 }, "classes": 4, "functions": 19, "methods": 0, "variables": 31, "control_structures": 26 }, "generated_at": "2025-08-15T16:19:40.592470909Z" }, { "file_info": { "name": "memory.rs", "path": "src/backend/wasm/memory.rs", "size_bytes": 0, "total_lines": 406, "code_lines": 314, "comment_lines": 30, "empty_lines": 62, "code_ratio": 0.7733990147783252, "analyzed_at": "2025-08-15T16:19:40.592388038Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxLayout", "parent_class": null, "start_line": 13, "end_line": 17, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BoxLayout", "parent_class": null, "start_line": 19, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MemoryManager", "parent_class": null, "start_line": 53, "end_line": 58, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MemoryManager", "parent_class": null, "start_line": 60, "end_line": 321, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 20, "end_line": 39, "parameters": [ "type_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 30, "end_line": 30, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "add_field", "start_line": 41, "end_line": 45, "parameters": [ "&mut self", "field_name: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_field_offset", "start_line": 47, "end_line": 49, "parameters": [ "&self", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 61, "end_line": 70, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "register_standard_box_types", "start_line": 73, "end_line": 85, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "register_box_type", "start_line": 88, "end_line": 96, "parameters": [ "&mut self", "type_name: String", "fields" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_box_layout", "start_line": 99, "end_line": 101, "parameters": [ "&self", "type_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_globals", "start_line": 104, "end_line": 108, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_malloc_function", "start_line": 111, "end_line": 139, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_box_alloc_function", "start_line": 142, "end_line": 182, "parameters": [ "&self", "type_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 144, "end_line": 144, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_field_get_function", "start_line": 185, "end_line": 215, "parameters": [ "&self", "type_name: &str", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 187, "end_line": 187, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 190, "end_line": 190, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_field_set_function", "start_line": 218, "end_line": 248, "parameters": [ "&self", "type_name: &str", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 220, "end_line": 220, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 223, "end_line": 223, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_memory_layout_info", "start_line": 251, "end_line": 270, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_type_id", "start_line": 273, "end_line": 275, "parameters": [ "&self", "type_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 274, "end_line": 274, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_generic_box_alloc_function", "start_line": 278, "end_line": 320, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_box_layout_creation", "start_line": 328, "end_line": 333, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_box_layout_field_addition", "start_line": 336, "end_line": 344, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_memory_manager_standard_types", "start_line": 347, "end_line": 360, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_memory_manager_registration", "start_line": 363, "end_line": 372, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_malloc_function_generation", "start_line": 375, "end_line": 383, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_box_alloc_function_generation", "start_line": 386, "end_line": 394, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_generic_box_alloc_function", "start_line": 397, "end_line": 405, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::WasmError", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 325, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 29, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxLayout", "full_name": "", "start_line": 13, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxLayout", "full_name": "", "start_line": 19, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 20, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 22, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_field", "full_name": "", "start_line": 41, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field_offset", "full_name": "", "start_line": 47, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MemoryManager", "full_name": "", "start_line": 53, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MemoryManager", "full_name": "", "start_line": 60, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 61, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 62, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_standard_box_types", "full_name": "", "start_line": 73, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_box_type", "full_name": "", "start_line": 88, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 89, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 91, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_box_layout", "full_name": "", "start_line": 99, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_globals", "full_name": "", "start_line": 104, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_malloc_function", "full_name": "", "start_line": 111, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_box_alloc_function", "full_name": "", "start_line": 142, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 143, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field_get_function", "full_name": "", "start_line": 185, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 186, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 189, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field_set_function", "full_name": "", "start_line": 218, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 219, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 222, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_memory_layout_info", "full_name": "", "start_line": 251, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_type_id", "full_name": "", "start_line": 273, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_generic_box_alloc_function", "full_name": "", "start_line": 278, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 325, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_box_layout_creation", "full_name": "", "start_line": 328, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 329, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_box_layout_field_addition", "full_name": "", "start_line": 336, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 337, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_memory_manager_standard_types", "full_name": "", "start_line": 347, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 348, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_memory_manager_registration", "full_name": "", "start_line": 363, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 364, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_malloc_function_generation", "full_name": "", "start_line": 375, "end_line": 383, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 376, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 377, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_box_alloc_function_generation", "full_name": "", "start_line": 386, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 387, "end_line": 387, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 388, "end_line": 388, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_generic_box_alloc_function", "full_name": "", "start_line": 397, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 398, "end_line": 398, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 399, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 51, "max_depth": 6, "node_type_counts": { "import": 3, "for_loop": 1, "variable": 20, "file_root": 1, "class": 4, "function": 22 }, "classes": 4, "functions": 22, "methods": 0, "variables": 20, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.592410448Z" }, { "file_info": { "name": "mod.rs", "path": "src/backend/wasm/mod.rs", "size_bytes": 0, "total_lines": 155, "code_lines": 109, "comment_lines": 19, "empty_lines": 27, "code_ratio": 0.7032258064516129, "analyzed_at": "2025-08-15T16:19:40.592404540Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WasmError", "parent_class": null, "start_line": 21, "end_line": 27, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "WasmError", "parent_class": null, "start_line": 29, "end_line": 39, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "WasmError", "parent_class": null, "start_line": 41, "end_line": 41, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::error::Error" } }, { "name": "WasmBackend", "parent_class": null, "start_line": 44, "end_line": 48, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "WasmBackend", "parent_class": null, "start_line": 50, "end_line": 126, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "WasmBackend", "parent_class": null, "start_line": 128, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } } ], "functions": [ { "name": "fmt", "start_line": 30, "end_line": 38, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 52, "end_line": 58, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "compile_module", "start_line": 61, "end_line": 68, "parameters": [ "&mut self", "mir_module: MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 67, "end_line": 67, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "compile_to_wat", "start_line": 71, "end_line": 74, "parameters": [ "&mut self", "mir_module: MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute_wasm", "start_line": 77, "end_line": 125, "parameters": [ "&self", "wasm_bytes: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 80, "end_line": 80, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 85, "end_line": 87, "parameters": [ "value: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 90, "end_line": 111, "parameters": [ "caller", "ptr: i32", "len: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 92, "end_line": 92, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 93, "end_line": 93, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 115, "end_line": 115, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 119, "end_line": 119, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 122, "end_line": 122, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "default", "start_line": 129, "end_line": 131, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_backend_creation", "start_line": 140, "end_line": 144, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_empty_module_compilation", "start_line": 147, "end_line": 154, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "codegen::{WasmCodegen, WasmModule}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "memory::{MemoryManager, BoxLayout}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "runtime::RuntimeImports", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction}", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 136, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::MirModule", "imported_names": [], "alias": null, "line_number": 137, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 17, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 17, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmError", "full_name": "", "start_line": 21, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmError", "full_name": "", "start_line": 29, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 30, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmError", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmBackend", "full_name": "", "start_line": 44, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmBackend", "full_name": "", "start_line": 50, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 52, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_module", "full_name": "", "start_line": 61, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile_to_wat", "full_name": "", "start_line": 71, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_wasm", "full_name": "", "start_line": 77, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 79, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 85, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 91, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 95, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 101, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 114, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 118, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 121, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WasmBackend", "full_name": "", "start_line": 128, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 137, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_backend_creation", "full_name": "", "start_line": 140, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_empty_module_compilation", "full_name": "", "start_line": 147, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 148, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 152, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 44, "max_depth": 14, "node_type_counts": { "import": 7, "function": 8, "variable": 20, "if_statement": 2, "class": 6, "file_root": 1 }, "classes": 6, "functions": 8, "methods": 0, "variables": 20, "control_structures": 2 }, "generated_at": "2025-08-15T16:19:40.592414968Z" }, { "file_info": { "name": "runtime.rs", "path": "src/backend/wasm/runtime.rs", "size_bytes": 0, "total_lines": 309, "code_lines": 243, "comment_lines": 29, "empty_lines": 37, "code_ratio": 0.7864077669902912, "analyzed_at": "2025-08-15T16:19:40.592460064Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "RuntimeImports", "parent_class": null, "start_line": 11, "end_line": 14, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ImportFunction", "parent_class": null, "start_line": 18, "end_line": 23, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "RuntimeImports", "parent_class": null, "start_line": 25, "end_line": 248, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 26, "end_line": 34, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_standard_imports", "start_line": 37, "end_line": 94, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_imports", "start_line": 97, "end_line": 120, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 98, "end_line": 119, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "add_import", "start_line": 123, "end_line": 130, "parameters": [ "&mut self", "module: String", "name: String", "params", "result" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "has_import", "start_line": 133, "end_line": 135, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 134, "end_line": 134, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_import", "start_line": 138, "end_line": 140, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 139, "end_line": 139, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_js_import_object", "start_line": 143, "end_line": 216, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_wasmtime_imports", "start_line": 219, "end_line": 247, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_runtime_imports_creation", "start_line": 255, "end_line": 259, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_import_wat_generation", "start_line": 262, "end_line": 270, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_custom_import_addition", "start_line": 273, "end_line": 287, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_js_import_object_generation", "start_line": 290, "end_line": 298, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_wasmtime_imports_generation", "start_line": 301, "end_line": 308, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::WasmError", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 252, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 3, "function_count": 16, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RuntimeImports", "full_name": "", "start_line": 11, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ImportFunction", "full_name": "", "start_line": 18, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RuntimeImports", "full_name": "", "start_line": 25, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 26, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_standard_imports", "full_name": "", "start_line": 37, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_imports", "full_name": "", "start_line": 97, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_import", "full_name": "", "start_line": 123, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has_import", "full_name": "", "start_line": 133, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_import", "full_name": "", "start_line": 138, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_js_import_object", "full_name": "", "start_line": 143, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "std::collections::HashMap>", "full_name": "", "start_line": 148, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 153, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 156, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_wasmtime_imports", "full_name": "", "start_line": 219, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 220, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 224, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_runtime_imports_creation", "full_name": "", "start_line": 255, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 256, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_import_wat_generation", "full_name": "", "start_line": 262, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 263, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 264, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_custom_import_addition", "full_name": "", "start_line": 273, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 274, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 283, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_js_import_object_generation", "full_name": "", "start_line": 290, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 291, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 292, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_wasmtime_imports_generation", "full_name": "", "start_line": 301, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 302, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 303, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 40, "max_depth": 12, "node_type_counts": { "class": 3, "for_loop": 4, "file_root": 1, "import": 2, "function": 13, "if_statement": 2, "variable": 15 }, "classes": 3, "functions": 13, "methods": 0, "variables": 15, "control_structures": 6 }, "generated_at": "2025-08-15T16:19:40.592481583Z" }, { "file_info": { "name": "benchmarks.rs", "path": "src/benchmarks.rs", "size_bytes": 0, "total_lines": 236, "code_lines": 168, "comment_lines": 25, "empty_lines": 43, "code_ratio": 0.711864406779661, "analyzed_at": "2025-08-15T16:19:40.592256179Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BenchmarkResult", "parent_class": null, "start_line": 18, "end_line": 24, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BenchmarkSuite", "parent_class": null, "start_line": 26, "end_line": 28, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BenchmarkSuite", "parent_class": null, "start_line": 30, "end_line": 220, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 31, "end_line": 33, "parameters": [ "iterations: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "run_all", "start_line": 36, "end_line": 68, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "run_interpreter_benchmark", "start_line": 71, "end_line": 97, "parameters": [ "&self", "name: &str", "source: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "run_vm_benchmark", "start_line": 100, "end_line": 128, "parameters": [ "&self", "name: &str", "source: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "run_wasm_benchmark", "start_line": 131, "end_line": 163, "parameters": [ "&self", "name: &str", "source: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "print_results", "start_line": 166, "end_line": 219, "parameters": [ "&self", "results: &[BenchmarkResult]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 184, "end_line": 184, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 201, "end_line": 201, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 202, "end_line": 202, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 203, "end_line": 203, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 206, "end_line": 206, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 207, "end_line": 207, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 208, "end_line": 208, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 211, "end_line": 211, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 212, "end_line": 212, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 213, "end_line": 213, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_benchmark_light", "start_line": 227, "end_line": 235, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::time::Instant", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::parser::NyashParser", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::interpreter::NyashInterpreter", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::MirCompiler", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::backend::{VM, WasmBackend}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 224, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 3, "function_count": 17, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BenchmarkResult", "full_name": "", "start_line": 18, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BenchmarkSuite", "full_name": "", "start_line": 26, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BenchmarkSuite", "full_name": "", "start_line": 30, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 31, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run_all", "full_name": "", "start_line": 36, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 39, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 45, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 49, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 51, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 55, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 59, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run_interpreter_benchmark", "full_name": "", "start_line": 71, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 74, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 79, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 80, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 85, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run_vm_benchmark", "full_name": "", "start_line": 100, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 101, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 103, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 108, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 110, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 116, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run_wasm_benchmark", "full_name": "", "start_line": 131, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 132, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 134, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 135, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 138, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 139, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 143, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 148, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 151, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "print_results", "full_name": "", "start_line": 166, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "std::collections::HashMap>", "full_name": "", "start_line": 173, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 178, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 184, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 186, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "f64", "full_name": "", "start_line": 200, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "f64", "full_name": "", "start_line": 205, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "f64", "full_name": "", "start_line": 210, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 224, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_benchmark_light", "full_name": "", "start_line": 227, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 228, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 64, "max_depth": 12, "node_type_counts": { "if_statement": 7, "function": 7, "variable": 32, "for_loop": 7, "import": 7, "file_root": 1, "class": 3 }, "classes": 3, "functions": 7, "methods": 0, "variables": 32, "control_structures": 14 }, "generated_at": "2025-08-15T16:19:40.592272212Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/array/mod.rs", "size_bytes": 0, "total_lines": 345, "code_lines": 265, "comment_lines": 31, "empty_lines": 49, "code_ratio": 0.7681159420289855, "analyzed_at": "2025-08-15T16:19:40.601350784Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ArrayBox", "parent_class": null, "start_line": 10, "end_line": 13, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 15, "end_line": 236, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 239, "end_line": 252, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 254, "end_line": 278, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 280, "end_line": 284, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 286, "end_line": 334, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 337, "end_line": 345, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Debug", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 17, "end_line": 22, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new_with_elements", "start_line": 25, "end_line": 30, "parameters": [ "elements" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "push", "start_line": 33, "end_line": 36, "parameters": [ "&self", "item" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "pop", "start_line": 39, "end_line": 44, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "length", "start_line": 47, "end_line": 49, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "len", "start_line": 52, "end_line": 54, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get", "start_line": 57, "end_line": 68, "parameters": [ "&self", "index" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set", "start_line": 71, "end_line": 84, "parameters": [ "&self", "index", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "remove", "start_line": 87, "end_line": 99, "parameters": [ "&self", "index" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "indexOf", "start_line": 102, "end_line": 110, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "contains", "start_line": 113, "end_line": 121, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 124, "end_line": 127, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "join", "start_line": 130, "end_line": 141, "parameters": [ "&self", "delimiter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 135, "end_line": 135, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "sort", "start_line": 144, "end_line": 189, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 148, "end_line": 186, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "reverse", "start_line": 192, "end_line": 196, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "slice", "start_line": 199, "end_line": 235, "parameters": [ "&self", "start", "end" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 231, "end_line": 231, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "clone", "start_line": 240, "end_line": 251, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 244, "end_line": 244, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "box_id", "start_line": 255, "end_line": 257, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 259, "end_line": 261, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 263, "end_line": 269, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 266, "end_line": 266, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "as_any", "start_line": 271, "end_line": 273, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 275, "end_line": 277, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 281, "end_line": 283, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 287, "end_line": 289, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 292, "end_line": 298, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 300, "end_line": 306, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 303, "end_line": 303, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "type_name", "start_line": 309, "end_line": 311, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 314, "end_line": 333, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 338, "end_line": 344, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, IntegerBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, RwLock}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Display", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::cmp::Ordering", "imported_names": [], "alias": null, "line_number": 149, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 35, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 10, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 15, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 17, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_with_elements", "full_name": "", "start_line": 25, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "push", "full_name": "", "start_line": 33, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "pop", "full_name": "", "start_line": 39, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "length", "full_name": "", "start_line": 47, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "len", "full_name": "", "start_line": 52, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 57, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 58, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 60, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 71, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 72, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 73, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 74, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 75, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "remove", "full_name": "", "start_line": 87, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 89, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 91, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "indexOf", "full_name": "", "start_line": 102, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 103, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 104, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains", "full_name": "", "start_line": 113, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 114, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 115, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 116, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 124, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "join", "full_name": "", "start_line": 130, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 131, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 132, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 133, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sort", "full_name": "", "start_line": 144, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 152, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 168, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 175, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 183, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 184, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reverse", "full_name": "", "start_line": 192, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 193, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "slice", "full_name": "", "start_line": 199, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 203, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 213, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 213, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 214, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 224, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 229, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 239, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 240, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 242, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 243, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 254, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 255, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 259, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 263, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 264, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 265, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 271, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 275, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 280, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 281, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 286, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 287, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 292, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 293, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 300, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 301, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 302, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 309, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 314, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 315, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 316, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 317, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 319, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 323, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 324, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 337, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 338, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 339, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 93, "max_depth": 12, "node_type_counts": { "import": 5, "function": 29, "variable": 28, "file_root": 1, "for_loop": 3, "if_statement": 20, "class": 7 }, "classes": 7, "functions": 29, "methods": 0, "variables": 28, "control_structures": 23 }, "generated_at": "2025-08-15T16:19:40.601374269Z" }, { "file_info": { "name": "audio_box.rs", "path": "src/boxes/audio_box.rs", "size_bytes": 0, "total_lines": 336, "code_lines": 217, "comment_lines": 73, "empty_lines": 46, "code_ratio": 0.6458333333333334, "analyzed_at": "2025-08-15T16:19:40.592475341Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "AudioBox", "parent_class": null, "start_line": 67, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "AudioBox", "parent_class": null, "start_line": 79, "end_line": 281, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "AudioBox", "parent_class": null, "start_line": 283, "end_line": 303, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "AudioBox", "parent_class": null, "start_line": 305, "end_line": 330, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "AudioBox", "parent_class": null, "start_line": 332, "end_line": 336, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 80, "end_line": 104, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_volume", "start_line": 107, "end_line": 116, "parameters": [ "&mut self", "volume: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_volume", "start_line": 119, "end_line": 121, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_tone", "start_line": 125, "end_line": 151, "parameters": [ "&self", "frequency: f64", "duration_ms: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_beep", "start_line": 155, "end_line": 157, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "create_noise", "start_line": 161, "end_line": 190, "parameters": [ "&self", "duration_ms: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_frequency_data", "start_line": 194, "end_line": 204, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_waveform_data", "start_line": 208, "end_line": 218, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_playing", "start_line": 221, "end_line": 223, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_tone", "start_line": 227, "end_line": 230, "parameters": [ "&self", "frequency: f64", "duration: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_beep", "start_line": 233, "end_line": 236, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "create_noise", "start_line": 239, "end_line": 242, "parameters": [ "&self", "duration: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_frequency_data", "start_line": 245, "end_line": 248, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 247, "end_line": 247, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_waveform_data", "start_line": 251, "end_line": 254, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 253, "end_line": 253, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "is_context_running", "start_line": 257, "end_line": 265, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "resume_context", "start_line": 269, "end_line": 275, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "resume_context", "start_line": 278, "end_line": 280, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 284, "end_line": 286, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 288, "end_line": 290, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 292, "end_line": 294, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 296, "end_line": 298, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 300, "end_line": 302, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 306, "end_line": 308, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 311, "end_line": 313, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 315, "end_line": 317, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 319, "end_line": 321, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 323, "end_line": 329, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 333, "end_line": 335, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 53, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 54, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 57, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{\n AudioContext, AudioBuffer, AudioBufferSourceNode, GainNode,\n AnalyserNode, AudioDestinationNode, PeriodicWave, OscillatorNode\n}", "imported_names": [], "alias": null, "line_number": 60, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 30, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 60, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AudioBox", "full_name": "", "start_line": 67, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AudioBox", "full_name": "", "start_line": 79, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 80, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 85, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 85, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_volume", "full_name": "", "start_line": 107, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 112, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_volume", "full_name": "", "start_line": 119, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_tone", "full_name": "", "start_line": 125, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 126, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 127, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 128, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_beep", "full_name": "", "start_line": 155, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_noise", "full_name": "", "start_line": 161, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 162, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 163, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 166, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 167, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 169, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 170, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 174, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 177, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_frequency_data", "full_name": "", "start_line": 194, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 195, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_waveform_data", "full_name": "", "start_line": 208, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 210, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 211, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_playing", "full_name": "", "start_line": 221, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_tone", "full_name": "", "start_line": 227, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_beep", "full_name": "", "start_line": 233, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_noise", "full_name": "", "start_line": 239, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_frequency_data", "full_name": "", "start_line": 245, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_waveform_data", "full_name": "", "start_line": 251, "end_line": 254, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_context_running", "full_name": "", "start_line": 257, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 260, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resume_context", "full_name": "", "start_line": 269, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 270, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 271, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 272, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resume_context", "full_name": "", "start_line": 278, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AudioBox", "full_name": "", "start_line": 283, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 284, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 288, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 292, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 296, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 300, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AudioBox", "full_name": "", "start_line": 305, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 306, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 311, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 315, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 319, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 323, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 324, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AudioBox", "full_name": "", "start_line": 332, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 333, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 69, "max_depth": 18, "node_type_counts": { "for_loop": 1, "variable": 14, "file_root": 1, "class": 5, "if_statement": 16, "function": 28, "import": 4 }, "classes": 5, "functions": 28, "methods": 0, "variables": 14, "control_structures": 17 }, "generated_at": "2025-08-15T16:19:40.592495795Z" }, { "file_info": { "name": "bool_box.rs", "path": "src/boxes/bool_box.rs", "size_bytes": 0, "total_lines": 123, "code_lines": 65, "comment_lines": 41, "empty_lines": 17, "code_ratio": 0.5284552845528455, "analyzed_at": "2025-08-15T16:19:40.592439767Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoolBox", "parent_class": null, "start_line": 47, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoolBox", "parent_class": null, "start_line": 52, "end_line": 67, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 69, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "BoolBox", "parent_class": null, "start_line": 97, "end_line": 117, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 119, "end_line": 123, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 53, "end_line": 58, "parameters": [ "value: bool" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "true_box", "start_line": 60, "end_line": 62, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "false_box", "start_line": 64, "end_line": 66, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_string_box", "start_line": 70, "end_line": 72, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 74, "end_line": 80, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 82, "end_line": 84, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 87, "end_line": 89, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 92, "end_line": 94, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 98, "end_line": 100, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 102, "end_line": 104, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 106, "end_line": 108, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 110, "end_line": 112, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 114, "end_line": 116, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 120, "end_line": 122, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 41, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 42, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Display", "imported_names": [], "alias": null, "line_number": 43, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 14, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 47, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 52, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 53, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "true_box", "full_name": "", "start_line": 60, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "false_box", "full_name": "", "start_line": 64, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 69, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 70, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 74, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 75, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 87, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 92, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 97, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 106, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 110, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 119, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 120, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 25, "max_depth": 7, "node_type_counts": { "if_statement": 2, "import": 3, "class": 5, "file_root": 1, "function": 14 }, "classes": 5, "functions": 14, "methods": 0, "variables": 0, "control_structures": 2 }, "generated_at": "2025-08-15T16:19:40.592448402Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/buffer/mod.rs", "size_bytes": 0, "total_lines": 271, "code_lines": 189, "comment_lines": 50, "empty_lines": 32, "code_ratio": 0.6974169741697417, "analyzed_at": "2025-08-15T16:19:40.600831654Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BufferBox", "parent_class": null, "start_line": 37, "end_line": 40, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BufferBox", "parent_class": null, "start_line": 42, "end_line": 182, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BufferBox", "parent_class": null, "start_line": 185, "end_line": 194, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "BufferBox", "parent_class": null, "start_line": 196, "end_line": 217, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "BufferBox", "parent_class": null, "start_line": 219, "end_line": 223, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "BufferBox", "parent_class": null, "start_line": 225, "end_line": 260, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "BufferBox", "parent_class": null, "start_line": 263, "end_line": 271, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Debug", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 43, "end_line": 48, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "len", "start_line": 51, "end_line": 53, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "from_vec", "start_line": 55, "end_line": 60, "parameters": [ "data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "write", "start_line": 63, "end_line": 80, "parameters": [ "&self", "data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "readAll", "start_line": 83, "end_line": 90, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "read", "start_line": 93, "end_line": 108, "parameters": [ "&self", "count" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 111, "end_line": 114, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "length", "start_line": 117, "end_line": 119, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "append", "start_line": 122, "end_line": 131, "parameters": [ "&self", "other" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "slice", "start_line": 134, "end_line": 152, "parameters": [ "&self", "start", "end" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_shared_with", "start_line": 155, "end_line": 164, "parameters": [ "&self", "other" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "share_reference", "start_line": 167, "end_line": 174, "parameters": [ "&self", "_data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "memory_footprint", "start_line": 177, "end_line": 181, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clone", "start_line": 186, "end_line": 193, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 197, "end_line": 199, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 201, "end_line": 203, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 205, "end_line": 208, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 210, "end_line": 212, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 214, "end_line": 216, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 220, "end_line": 222, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 226, "end_line": 228, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 231, "end_line": 237, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 239, "end_line": 242, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 245, "end_line": 247, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 250, "end_line": 259, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 264, "end_line": 270, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, IntegerBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 31, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 32, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 33, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, RwLock}", "imported_names": [], "alias": null, "line_number": 34, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 35, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 26, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 31, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 32, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 33, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 34, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 35, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 37, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 42, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 43, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "len", "full_name": "", "start_line": 51, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_vec", "full_name": "", "start_line": 55, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 63, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 65, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 68, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 69, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 70, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "readAll", "full_name": "", "start_line": 83, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 84, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 85, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 86, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 93, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 94, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 95, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 111, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "length", "full_name": "", "start_line": 117, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "append", "full_name": "", "start_line": 122, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 123, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 124, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "slice", "full_name": "", "start_line": 134, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 135, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 139, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 143, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_shared_with", "full_name": "", "start_line": 155, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 156, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 158, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_reference", "full_name": "", "start_line": 167, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 169, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "memory_footprint", "full_name": "", "start_line": 177, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 179, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 185, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 186, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 188, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 196, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 197, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 201, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 205, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 206, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 210, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 214, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 219, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 220, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 225, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 226, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 231, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 232, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 239, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 240, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 245, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 250, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 251, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 253, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 254, "end_line": 254, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 263, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 264, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 265, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 77, "max_depth": 15, "node_type_counts": { "file_root": 1, "function": 26, "variable": 26, "import": 5, "class": 7, "for_loop": 3, "if_statement": 9 }, "classes": 7, "functions": 26, "methods": 0, "variables": 26, "control_structures": 12 }, "generated_at": "2025-08-15T16:19:40.600845830Z" }, { "file_info": { "name": "canvas_event_box.rs", "path": "src/boxes/canvas_event_box.rs", "size_bytes": 0, "total_lines": 304, "code_lines": 188, "comment_lines": 77, "empty_lines": 39, "code_ratio": 0.618421052631579, "analyzed_at": "2025-08-15T16:19:40.593561335Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "CanvasEventBox", "parent_class": null, "start_line": 78, "end_line": 84, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "CanvasEventBox", "parent_class": null, "start_line": 86, "end_line": 249, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "CanvasEventBox", "parent_class": null, "start_line": 251, "end_line": 271, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "CanvasEventBox", "parent_class": null, "start_line": 273, "end_line": 298, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "CanvasEventBox", "parent_class": null, "start_line": 300, "end_line": 304, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 87, "end_line": 95, "parameters": [ "canvas_id: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_canvas_element", "start_line": 99, "end_line": 104, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_mouse_x", "start_line": 107, "end_line": 109, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_mouse_y", "start_line": 112, "end_line": 114, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_pressed", "start_line": 117, "end_line": 119, "parameters": [ "&self", "button: i16" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_canvas_coordinates", "start_line": 123, "end_line": 132, "parameters": [ "&self", "event: &MouseEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "on_mouse_down", "start_line": 136, "end_line": 147, "parameters": [ "&self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 138, "end_line": 141, "parameters": [ "event: MouseEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "on_mouse_up", "start_line": 151, "end_line": 161, "parameters": [ "&self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 153, "end_line": 155, "parameters": [ "event: MouseEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "on_mouse_move", "start_line": 165, "end_line": 175, "parameters": [ "&self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 167, "end_line": 169, "parameters": [ "event: MouseEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "on_mouse_click", "start_line": 179, "end_line": 189, "parameters": [ "&self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 181, "end_line": 183, "parameters": [ "event: MouseEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "on_touch_start", "start_line": 193, "end_line": 203, "parameters": [ "&self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 195, "end_line": 197, "parameters": [ "event: TouchEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "on_key_down", "start_line": 207, "end_line": 217, "parameters": [ "&self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 209, "end_line": 211, "parameters": [ "event: KeyboardEvent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "on_mouse_down", "start_line": 221, "end_line": 223, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "on_mouse_up", "start_line": 226, "end_line": 228, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "on_mouse_move", "start_line": 231, "end_line": 233, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "on_mouse_click", "start_line": 236, "end_line": 238, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "on_touch_start", "start_line": 241, "end_line": 243, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "on_key_down", "start_line": 246, "end_line": 248, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 252, "end_line": 254, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 256, "end_line": 258, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 260, "end_line": 262, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 264, "end_line": 266, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 268, "end_line": 270, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 274, "end_line": 276, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 279, "end_line": 281, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 283, "end_line": 285, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 287, "end_line": 289, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 291, "end_line": 297, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 301, "end_line": 303, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 64, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 65, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 68, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{\n HtmlCanvasElement, MouseEvent, TouchEvent, KeyboardEvent,\n EventTarget, Element\n}", "imported_names": [], "alias": null, "line_number": 71, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 35, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 68, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 71, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasEventBox", "full_name": "", "start_line": 78, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasEventBox", "full_name": "", "start_line": 86, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 87, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_canvas_element", "full_name": "", "start_line": 99, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 101, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 102, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_mouse_x", "full_name": "", "start_line": 107, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_mouse_y", "full_name": "", "start_line": 112, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_pressed", "full_name": "", "start_line": 117, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_canvas_coordinates", "full_name": "", "start_line": 123, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 124, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 126, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_down", "full_name": "", "start_line": 136, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 137, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 138, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_up", "full_name": "", "start_line": 151, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 152, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 153, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_move", "full_name": "", "start_line": 165, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 166, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 167, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_click", "full_name": "", "start_line": 179, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 180, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 181, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_touch_start", "full_name": "", "start_line": 193, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 194, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_key_down", "full_name": "", "start_line": 207, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 209, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_down", "full_name": "", "start_line": 221, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_up", "full_name": "", "start_line": 226, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_move", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_mouse_click", "full_name": "", "start_line": 236, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_touch_start", "full_name": "", "start_line": 241, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_key_down", "full_name": "", "start_line": 246, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasEventBox", "full_name": "", "start_line": 251, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 252, "end_line": 254, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 256, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 260, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 264, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 268, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasEventBox", "full_name": "", "start_line": 273, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 279, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 283, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 287, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 291, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 292, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasEventBox", "full_name": "", "start_line": 300, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 301, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 59, "max_depth": 8, "node_type_counts": { "class": 5, "file_root": 1, "variable": 12, "function": 29, "import": 4, "if_statement": 8 }, "classes": 5, "functions": 29, "methods": 0, "variables": 12, "control_structures": 8 }, "generated_at": "2025-08-15T16:19:40.593579139Z" }, { "file_info": { "name": "canvas_loop_box.rs", "path": "src/boxes/canvas_loop_box.rs", "size_bytes": 0, "total_lines": 314, "code_lines": 201, "comment_lines": 68, "empty_lines": 45, "code_ratio": 0.6401273885350318, "analyzed_at": "2025-08-15T16:19:40.593044492Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "CanvasLoopBox", "parent_class": null, "start_line": 59, "end_line": 72, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "CanvasLoopBox", "parent_class": null, "start_line": 74, "end_line": 259, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "CanvasLoopBox", "parent_class": null, "start_line": 261, "end_line": 281, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "CanvasLoopBox", "parent_class": null, "start_line": 283, "end_line": 308, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "CanvasLoopBox", "parent_class": null, "start_line": 310, "end_line": 314, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 75, "end_line": 93, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "start", "start_line": 97, "end_line": 118, "parameters": [ "&mut self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 109, "end_line": 112, "parameters": [ "time: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "start", "start_line": 122, "end_line": 125, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "stop", "start_line": 128, "end_line": 143, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "pause", "start_line": 146, "end_line": 160, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "resume", "start_line": 164, "end_line": 180, "parameters": [ "&mut self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 172, "end_line": 174, "parameters": [ "time: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "resume", "start_line": 183, "end_line": 186, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "update_frame", "start_line": 189, "end_line": 205, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_fps", "start_line": 208, "end_line": 210, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_frame_count", "start_line": 213, "end_line": 215, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_delta_time", "start_line": 218, "end_line": 220, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_elapsed_time", "start_line": 223, "end_line": 229, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_target_fps", "start_line": 232, "end_line": 238, "parameters": [ "&mut self", "fps: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_running", "start_line": 241, "end_line": 243, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_paused", "start_line": 246, "end_line": 248, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "reset", "start_line": 251, "end_line": 258, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 262, "end_line": 264, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 266, "end_line": 268, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 270, "end_line": 272, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 274, "end_line": 276, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 278, "end_line": 280, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 284, "end_line": 286, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 289, "end_line": 291, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 293, "end_line": 295, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 297, "end_line": 299, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 301, "end_line": 307, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 311, "end_line": 313, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 50, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::TimerBox", "imported_names": [], "alias": null, "line_number": 51, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 52, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 55, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 29, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 50, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 51, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasLoopBox", "full_name": "", "start_line": 59, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasLoopBox", "full_name": "", "start_line": 74, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 75, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 76, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "start", "full_name": "", "start_line": 97, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 114, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "start", "full_name": "", "start_line": 122, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stop", "full_name": "", "start_line": 128, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 138, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "pause", "full_name": "", "start_line": 146, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 147, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 155, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resume", "full_name": "", "start_line": 164, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 165, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 172, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 176, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resume", "full_name": "", "start_line": 183, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "update_frame", "full_name": "", "start_line": 189, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 190, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 194, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 200, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_fps", "full_name": "", "start_line": 208, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_frame_count", "full_name": "", "start_line": 213, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_delta_time", "full_name": "", "start_line": 218, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_elapsed_time", "full_name": "", "start_line": 223, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 224, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_target_fps", "full_name": "", "start_line": 232, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 233, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_running", "full_name": "", "start_line": 241, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_paused", "full_name": "", "start_line": 246, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 251, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasLoopBox", "full_name": "", "start_line": 261, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 262, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 266, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 270, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 278, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasLoopBox", "full_name": "", "start_line": 283, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 284, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 289, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 293, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 297, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 301, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 302, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasLoopBox", "full_name": "", "start_line": 310, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 311, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 57, "max_depth": 8, "node_type_counts": { "file_root": 1, "import": 4, "class": 5, "variable": 9, "if_statement": 11, "function": 27 }, "classes": 5, "functions": 27, "methods": 0, "variables": 9, "control_structures": 11 }, "generated_at": "2025-08-15T16:19:40.593061036Z" }, { "file_info": { "name": "console_box.rs", "path": "src/boxes/console_box.rs", "size_bytes": 0, "total_lines": 227, "code_lines": 133, "comment_lines": 56, "empty_lines": 38, "code_ratio": 0.5859030837004405, "analyzed_at": "2025-08-15T16:19:40.592494373Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ConsoleBox", "parent_class": null, "start_line": 55, "end_line": 57, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 60, "end_line": 84, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 87, "end_line": 107, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 110, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 137, "end_line": 139, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 142, "end_line": 163, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 166, "end_line": 186, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 189, "end_line": 211, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 216, "end_line": 220, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 223, "end_line": 227, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 61, "end_line": 63, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "log", "start_line": 66, "end_line": 68, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "warn", "start_line": 71, "end_line": 73, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "error", "start_line": 76, "end_line": 78, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 81, "end_line": 83, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 88, "end_line": 90, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 92, "end_line": 94, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 96, "end_line": 98, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 100, "end_line": 102, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 104, "end_line": 106, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 111, "end_line": 113, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 115, "end_line": 117, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 119, "end_line": 121, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 123, "end_line": 125, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 128, "end_line": 130, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 143, "end_line": 145, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "log", "start_line": 148, "end_line": 150, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "warn", "start_line": 152, "end_line": 154, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "error", "start_line": 156, "end_line": 158, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 160, "end_line": 162, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 167, "end_line": 169, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 171, "end_line": 173, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 175, "end_line": 177, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 179, "end_line": 181, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 183, "end_line": 185, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 190, "end_line": 192, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 194, "end_line": 196, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 198, "end_line": 200, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 202, "end_line": 204, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 207, "end_line": 209, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 217, "end_line": 219, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 224, "end_line": 226, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 48, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 49, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Display", "imported_names": [], "alias": null, "line_number": 50, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 10, "function_count": 32, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 48, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 50, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 55, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 60, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 61, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "log", "full_name": "", "start_line": 66, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "warn", "full_name": "", "start_line": 71, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "error", "full_name": "", "start_line": 76, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 87, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 88, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 92, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 96, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 100, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 104, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 110, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 111, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 119, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 123, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 128, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 137, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 142, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 143, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "log", "full_name": "", "start_line": 148, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "warn", "full_name": "", "start_line": 152, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "error", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 160, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 166, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 167, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 171, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 175, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 179, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 183, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 189, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 190, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 194, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 198, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 202, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 207, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 216, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 217, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 223, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 224, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 46, "max_depth": 3, "node_type_counts": { "import": 3, "class": 10, "function": 32, "file_root": 1 }, "classes": 10, "functions": 32, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.592507082Z" }, { "file_info": { "name": "debug_box.rs", "path": "src/boxes/debug_box.rs", "size_bytes": 0, "total_lines": 389, "code_lines": 224, "comment_lines": 113, "empty_lines": 52, "code_ratio": 0.5758354755784062, "analyzed_at": "2025-08-15T16:19:40.592303269Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "DebugBox", "parent_class": null, "start_line": 111, "end_line": 117, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TrackedBoxInfo", "parent_class": null, "start_line": 120, "end_line": 125, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct" } }, { "name": "CallInfo", "parent_class": null, "start_line": 128, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct" } }, { "name": "DebugBox", "parent_class": null, "start_line": 134, "end_line": 309, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "DebugBox", "parent_class": null, "start_line": 312, "end_line": 327, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "DebugBox", "parent_class": null, "start_line": 330, "end_line": 351, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "DebugBox", "parent_class": null, "start_line": 354, "end_line": 358, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "DebugBox", "parent_class": null, "start_line": 361, "end_line": 389, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } } ], "functions": [ { "name": "new", "start_line": 135, "end_line": 143, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "start_tracking", "start_line": 145, "end_line": 150, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "stop_tracking", "start_line": 152, "end_line": 157, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "track_box", "start_line": 159, "end_line": 177, "parameters": [ "&self", "box_value: &dyn NyashBox", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_box_fields", "start_line": 179, "end_line": 188, "parameters": [ "&self", "box_value: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "dump_all", "start_line": 190, "end_line": 206, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "save_to_file", "start_line": 208, "end_line": 220, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 214, "end_line": 216, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "watch", "start_line": 222, "end_line": 228, "parameters": [ "&self", "box_value: &dyn NyashBox", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "memory_report", "start_line": 230, "end_line": 247, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_breakpoint", "start_line": 250, "end_line": 255, "parameters": [ "&self", "function_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "trace_call", "start_line": 257, "end_line": 271, "parameters": [ "&self", "function_name: &str", "args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "show_call_stack", "start_line": 273, "end_line": 287, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 289, "end_line": 298, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_tracking", "start_line": 300, "end_line": 303, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_tracked_count", "start_line": 305, "end_line": 308, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clone", "start_line": 313, "end_line": 326, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 331, "end_line": 333, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 335, "end_line": 337, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 339, "end_line": 342, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 344, "end_line": 346, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 348, "end_line": 350, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 355, "end_line": 357, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 362, "end_line": 365, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 367, "end_line": 373, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 375, "end_line": 377, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 379, "end_line": 381, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 384, "end_line": 386, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 102, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 103, "metadata": {} }, { "type": "rust_use", "module_path": "chrono::Local", "imported_names": [], "alias": null, "line_number": 104, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{BoxCore, BoxBase, NyashBox, StringBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 105, "metadata": {} }, { "type": "rust_use", "module_path": "crate::interpreter::RuntimeError", "imported_names": [], "alias": null, "line_number": 106, "metadata": {} }, { "type": "rust_use", "module_path": "crate::instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 107, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 108, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 8, "function_count": 28, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 102, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 103, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 105, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 106, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 108, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 111, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TrackedBoxInfo", "full_name": "", "start_line": 120, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CallInfo", "full_name": "", "start_line": 128, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 134, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 135, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "start_tracking", "full_name": "", "start_line": 145, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stop_tracking", "full_name": "", "start_line": 152, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 153, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "track_box", "full_name": "", "start_line": 159, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 161, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 167, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_box_fields", "full_name": "", "start_line": 179, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 181, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 182, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 183, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dump_all", "full_name": "", "start_line": 190, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 191, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 196, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "save_to_file", "full_name": "", "start_line": 208, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 209, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 210, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "watch", "full_name": "", "start_line": 222, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 224, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "memory_report", "full_name": "", "start_line": 230, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 231, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 232, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap", "full_name": "", "start_line": 236, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 237, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 242, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_breakpoint", "full_name": "", "start_line": 250, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "trace_call", "full_name": "", "start_line": 257, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 258, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 266, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "show_call_stack", "full_name": "", "start_line": 273, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 274, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 277, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 289, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 290, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 293, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_tracking", "full_name": "", "start_line": 300, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 301, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_tracked_count", "full_name": "", "start_line": 305, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 306, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 312, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 313, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 314, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 315, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 316, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 317, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 330, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 331, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 335, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 339, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 340, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 344, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 348, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 354, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 355, "end_line": 357, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 361, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 362, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 363, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 367, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 368, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 375, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 379, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 384, "end_line": 386, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 81, "max_depth": 8, "node_type_counts": { "variable": 30, "if_statement": 4, "import": 7, "class": 8, "for_loop": 4, "function": 27, "file_root": 1 }, "classes": 8, "functions": 27, "methods": 0, "variables": 30, "control_structures": 8 }, "generated_at": "2025-08-15T16:19:40.592326569Z" }, { "file_info": { "name": "egui_box.rs", "path": "src/boxes/egui_box.rs", "size_bytes": 0, "total_lines": 238, "code_lines": 153, "comment_lines": 53, "empty_lines": 32, "code_ratio": 0.6428571428571429, "analyzed_at": "2025-08-15T16:19:40.592343537Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "EguiBox", "parent_class": null, "start_line": 51, "end_line": 57, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "EguiBox", "parent_class": null, "start_line": 59, "end_line": 66, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Debug", "type": "impl" } }, { "name": "EguiBox", "parent_class": null, "start_line": 68, "end_line": 80, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "EguiBox", "parent_class": null, "start_line": 82, "end_line": 105, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashApp", "parent_class": null, "start_line": 108, "end_line": 111, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct" } }, { "name": "NyashApp", "parent_class": null, "start_line": 113, "end_line": 119, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "eframe::App" } }, { "name": "EguiBox", "parent_class": null, "start_line": 121, "end_line": 141, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "EguiBox", "parent_class": null, "start_line": 143, "end_line": 147, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "EguiBox", "parent_class": null, "start_line": 149, "end_line": 178, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "EguiBox", "parent_class": null, "start_line": 181, "end_line": 219, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "fmt", "start_line": 60, "end_line": 65, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone", "start_line": 69, "end_line": 79, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 83, "end_line": 91, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_app_state", "start_line": 94, "end_line": 96, "parameters": [ "&mut self", "state: T" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_update_fn", "start_line": 99, "end_line": 104, "parameters": [ "&mut self", "f: F" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "update", "start_line": 114, "end_line": 118, "parameters": [ "&mut self", "ctx: &egui::Context", "_frame: &mut eframe::Frame" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 122, "end_line": 124, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 126, "end_line": 128, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 130, "end_line": 132, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 134, "end_line": 136, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 138, "end_line": 140, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 144, "end_line": 146, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 150, "end_line": 154, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 156, "end_line": 158, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 161, "end_line": 163, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 166, "end_line": 172, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 174, "end_line": 176, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "run_gui", "start_line": 182, "end_line": 218, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 209, "end_line": 209, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_egui_box_creation", "start_line": 226, "end_line": 230, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_egui_box_to_string", "start_line": 233, "end_line": 237, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 36, "metadata": {} }, { "type": "rust_use", "module_path": "crate::interpreter::RuntimeError", "imported_names": [], "alias": null, "line_number": 37, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 38, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 39, "metadata": {} }, { "type": "rust_use", "module_path": "eframe::{self, epaint::Vec2}", "imported_names": [], "alias": null, "line_number": 40, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 223, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 10, "function_count": 21, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 36, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 38, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 39, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 51, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 59, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 60, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 68, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 69, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 82, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 83, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_app_state", "full_name": "", "start_line": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_update_fn", "full_name": "", "start_line": 99, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashApp", "full_name": "", "start_line": 108, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashApp", "full_name": "", "start_line": 113, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "update", "full_name": "", "start_line": 114, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 121, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 126, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 134, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 138, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 143, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 144, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 149, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 150, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 161, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 166, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 167, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 181, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run_gui", "full_name": "", "start_line": 182, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 185, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 188, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 191, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 193, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 206, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_egui_box_creation", "full_name": "", "start_line": 226, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 227, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_egui_box_to_string", "full_name": "", "start_line": 233, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 235, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 49, "max_depth": 8, "node_type_counts": { "if_statement": 3, "file_root": 1, "variable": 9, "function": 20, "import": 6, "class": 10 }, "classes": 10, "functions": 20, "methods": 0, "variables": 9, "control_structures": 3 }, "generated_at": "2025-08-15T16:19:40.592360254Z" }, { "file_info": { "name": "extern_box.rs", "path": "src/boxes/extern_box.rs", "size_bytes": 0, "total_lines": 148, "code_lines": 123, "comment_lines": 5, "empty_lines": 20, "code_ratio": 0.831081081081081, "analyzed_at": "2025-08-15T16:19:40.592281359Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ExternBox", "parent_class": null, "start_line": 9, "end_line": 12, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ExternBox", "parent_class": null, "start_line": 14, "end_line": 28, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ExternBox", "parent_class": null, "start_line": 30, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ExternBox", "parent_class": null, "start_line": 52, "end_line": 148, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } } ], "functions": [ { "name": "new_console", "start_line": 15, "end_line": 20, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_canvas", "start_line": 22, "end_line": 27, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 31, "end_line": 33, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 35, "end_line": 37, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 39, "end_line": 41, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 43, "end_line": 45, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 47, "end_line": 49, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 53, "end_line": 55, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 57, "end_line": 63, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 65, "end_line": 67, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 69, "end_line": 74, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 76, "end_line": 79, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "call_method", "start_line": 81, "end_line": 127, "parameters": [ "&mut self", "method: &str", "args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_field", "start_line": 129, "end_line": 131, "parameters": [ "&self", "_field: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "set_field", "start_line": 133, "end_line": 135, "parameters": [ "&mut self", "_field: &str", "_value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "list_methods", "start_line": 137, "end_line": 143, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "list_fields", "start_line": 145, "end_line": 147, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, VoidBox, IntegerBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 17, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExternBox", "full_name": "", "start_line": 9, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExternBox", "full_name": "", "start_line": 14, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_console", "full_name": "", "start_line": 15, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_canvas", "full_name": "", "start_line": 22, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExternBox", "full_name": "", "start_line": 30, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 31, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 35, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 39, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 43, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 47, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ExternBox", "full_name": "", "start_line": 52, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 53, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 57, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 58, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 69, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 76, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "call_method", "full_name": "", "start_line": 81, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 87, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 95, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 109, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_field", "full_name": "", "start_line": 133, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "list_methods", "full_name": "", "start_line": 137, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "list_fields", "full_name": "", "start_line": 145, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 29, "max_depth": 14, "node_type_counts": { "file_root": 1, "if_statement": 4, "import": 2, "function": 17, "for_loop": 1, "class": 4 }, "classes": 4, "functions": 17, "methods": 0, "variables": 0, "control_structures": 5 }, "generated_at": "2025-08-15T16:19:40.592290168Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/file/mod.rs", "size_bytes": 0, "total_lines": 172, "code_lines": 132, "comment_lines": 15, "empty_lines": 25, "code_ratio": 0.7674418604651163, "analyzed_at": "2025-08-15T16:19:40.603976997Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "FileBox", "parent_class": null, "start_line": 12, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "FileBox", "parent_class": null, "start_line": 18, "end_line": 29, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "FileBox", "parent_class": null, "start_line": 31, "end_line": 111, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FileBox", "parent_class": null, "start_line": 113, "end_line": 133, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "FileBox", "parent_class": null, "start_line": 135, "end_line": 166, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "FileBox", "parent_class": null, "start_line": 168, "end_line": 172, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "clone", "start_line": 19, "end_line": 28, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 32, "end_line": 50, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 42, "end_line": 42, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "open", "start_line": 52, "end_line": 59, "parameters": [ "path: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "read_to_string", "start_line": 61, "end_line": 66, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "write_all", "start_line": 68, "end_line": 71, "parameters": [ "&self", "buf: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "read", "start_line": 74, "end_line": 79, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "write", "start_line": 82, "end_line": 88, "parameters": [ "&self", "content" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "exists", "start_line": 91, "end_line": 94, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "delete", "start_line": 97, "end_line": 102, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "copy", "start_line": 105, "end_line": 110, "parameters": [ "&self", "dest: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 114, "end_line": 116, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 118, "end_line": 120, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 122, "end_line": 124, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 126, "end_line": 128, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 130, "end_line": 132, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 136, "end_line": 142, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 145, "end_line": 147, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 149, "end_line": 151, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 154, "end_line": 156, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 159, "end_line": 165, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 169, "end_line": 171, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs::{File, OpenOptions}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::{Read, Write, Result}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs::OpenOptions", "imported_names": [], "alias": null, "line_number": 40, "metadata": {} }, { "type": "rust_use", "module_path": "std::path::Path", "imported_names": [], "alias": null, "line_number": 92, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 22, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 12, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 18, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 19, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 31, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 32, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 35, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 41, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "open", "full_name": "", "start_line": 52, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read_to_string", "full_name": "", "start_line": 61, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 62, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write_all", "full_name": "", "start_line": 68, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 69, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 74, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 82, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 83, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exists", "full_name": "", "start_line": 91, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 97, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "copy", "full_name": "", "start_line": 105, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 113, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 118, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 126, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 135, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 136, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 145, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 159, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 168, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 169, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 43, "max_depth": 10, "node_type_counts": { "if_statement": 1, "file_root": 1, "variable": 7, "import": 7, "class": 6, "function": 21 }, "classes": 6, "functions": 21, "methods": 0, "variables": 7, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.603986914Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/future/mod.rs", "size_bytes": 0, "total_lines": 159, "code_lines": 122, "comment_lines": 13, "empty_lines": 24, "code_ratio": 0.7672955974842768, "analyzed_at": "2025-08-15T16:19:40.612325044Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashFutureBox", "parent_class": null, "start_line": 12, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 18, "end_line": 33, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 35, "end_line": 72, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 74, "end_line": 111, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 113, "end_line": 143, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 145, "end_line": 149, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "FutureBox", "parent_class": null, "start_line": 154, "end_line": 159, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "clone", "start_line": 19, "end_line": 32, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 36, "end_line": 42, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_result", "start_line": 45, "end_line": 50, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get", "start_line": 53, "end_line": 66, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "ready", "start_line": 69, "end_line": 71, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 75, "end_line": 77, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 80, "end_line": 82, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 84, "end_line": 96, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 99, "end_line": 101, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 104, "end_line": 110, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 114, "end_line": 116, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 118, "end_line": 120, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 122, "end_line": 134, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 136, "end_line": 138, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 140, "end_line": 142, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 146, "end_line": 148, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "wait_and_get", "start_line": 156, "end_line": 158, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "std::future::Future", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::pin::Pin", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 17, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 12, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 18, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 19, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 20, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 21, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 25, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 35, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 36, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_result", "full_name": "", "start_line": 45, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 48, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 53, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 55, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 56, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 57, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ready", "full_name": "", "start_line": 69, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 74, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 75, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 80, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 84, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 85, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 86, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 99, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 104, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 113, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 118, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 122, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 123, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 124, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 126, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 136, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 145, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 146, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 154, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "wait_and_get", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 48, "max_depth": 9, "node_type_counts": { "if_statement": 6, "function": 17, "file_root": 1, "for_loop": 1, "class": 7, "import": 5, "variable": 11 }, "classes": 7, "functions": 17, "methods": 0, "variables": 11, "control_structures": 7 }, "generated_at": "2025-08-15T16:19:40.612333680Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/http/mod.rs", "size_bytes": 0, "total_lines": 105, "code_lines": 72, "comment_lines": 12, "empty_lines": 21, "code_ratio": 0.6857142857142857, "analyzed_at": "2025-08-15T16:19:40.606754219Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "HttpClientBox", "parent_class": null, "start_line": 13, "end_line": 15, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 17, "end_line": 48, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 50, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 79, "end_line": 99, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 101, "end_line": 105, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 18, "end_line": 22, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "http_get", "start_line": 25, "end_line": 27, "parameters": [ "&self", "url" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "post", "start_line": 30, "end_line": 32, "parameters": [ "&self", "url", "body" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "put", "start_line": 35, "end_line": 37, "parameters": [ "&self", "url", "body" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "delete", "start_line": 40, "end_line": 42, "parameters": [ "&self", "url" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "request", "start_line": 45, "end_line": 47, "parameters": [ "&self", "method", "url", "options" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clone_box", "start_line": 51, "end_line": 53, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 56, "end_line": 58, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 60, "end_line": 62, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 65, "end_line": 67, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 70, "end_line": 76, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 80, "end_line": 82, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 84, "end_line": 86, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 88, "end_line": 90, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 92, "end_line": 94, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 96, "end_line": 98, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 102, "end_line": 104, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::map_box::MapBox", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 17, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 13, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 17, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 18, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "http_get", "full_name": "", "start_line": 25, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "post", "full_name": "", "start_line": 30, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "put", "full_name": "", "start_line": 35, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 40, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "request", "full_name": "", "start_line": 45, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 50, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 51, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 56, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 60, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 70, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 79, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 80, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 84, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 88, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 92, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 96, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 101, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 27, "max_depth": 6, "node_type_counts": { "function": 17, "import": 3, "if_statement": 1, "class": 5, "file_root": 1 }, "classes": 5, "functions": 17, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.606759715Z" }, { "file_info": { "name": "http_message_box.rs", "path": "src/boxes/http_message_box.rs", "size_bytes": 0, "total_lines": 432, "code_lines": 281, "comment_lines": 87, "empty_lines": 64, "code_ratio": 0.6504629629629629, "analyzed_at": "2025-08-15T16:19:40.592334249Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "HTTPRequestBox", "parent_class": null, "start_line": 58, "end_line": 66, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "HTTPRequestBox", "parent_class": null, "start_line": 68, "end_line": 192, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "HTTPRequestBox", "parent_class": null, "start_line": 194, "end_line": 220, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "HTTPRequestBox", "parent_class": null, "start_line": 222, "end_line": 243, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "HTTPRequestBox", "parent_class": null, "start_line": 245, "end_line": 249, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "HTTPResponseBox", "parent_class": null, "start_line": 253, "end_line": 260, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "HTTPResponseBox", "parent_class": null, "start_line": 262, "end_line": 375, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "HTTPResponseBox", "parent_class": null, "start_line": 377, "end_line": 403, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "HTTPResponseBox", "parent_class": null, "start_line": 405, "end_line": 426, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "HTTPResponseBox", "parent_class": null, "start_line": 428, "end_line": 432, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 69, "end_line": 79, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "parse", "start_line": 82, "end_line": 127, "parameters": [ "raw_request" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_method", "start_line": 130, "end_line": 132, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_path", "start_line": 135, "end_line": 137, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_query_string", "start_line": 140, "end_line": 142, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_header", "start_line": 145, "end_line": 151, "parameters": [ "&self", "name" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_all_headers", "start_line": 154, "end_line": 162, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "has_header", "start_line": 165, "end_line": 168, "parameters": [ "&self", "name" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_body", "start_line": 171, "end_line": 173, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_content_type", "start_line": 176, "end_line": 178, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_content_length", "start_line": 181, "end_line": 191, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clone_box", "start_line": 195, "end_line": 197, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 200, "end_line": 202, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 204, "end_line": 207, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 209, "end_line": 211, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 213, "end_line": 219, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 223, "end_line": 225, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 227, "end_line": 229, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 231, "end_line": 234, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 236, "end_line": 238, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 240, "end_line": 242, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 246, "end_line": 248, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 263, "end_line": 272, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_status", "start_line": 275, "end_line": 283, "parameters": [ "&self", "code", "message" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_header", "start_line": 286, "end_line": 292, "parameters": [ "&self", "name", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_content_type", "start_line": 295, "end_line": 301, "parameters": [ "&self", "content_type" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_body", "start_line": 304, "end_line": 309, "parameters": [ "&self", "content" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "append_body", "start_line": 312, "end_line": 317, "parameters": [ "&self", "content" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_http_string", "start_line": 320, "end_line": 344, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "create_html_response", "start_line": 347, "end_line": 354, "parameters": [ "content" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_json_response", "start_line": 357, "end_line": 364, "parameters": [ "content" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "create_404_response", "start_line": 367, "end_line": 374, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 378, "end_line": 380, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 383, "end_line": 385, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 387, "end_line": 390, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 392, "end_line": 394, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 396, "end_line": 402, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 406, "end_line": 408, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 410, "end_line": 412, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 414, "end_line": 417, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 419, "end_line": 421, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 423, "end_line": 425, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 429, "end_line": 431, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 51, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::MapBox", "imported_names": [], "alias": null, "line_number": 52, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 53, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 54, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 10, "function_count": 43, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 51, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPRequestBox", "full_name": "", "start_line": 58, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPRequestBox", "full_name": "", "start_line": 68, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 69, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "full_name": "", "start_line": 82, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 83, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 84, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<&str>", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 87, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<&str>", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 93, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<&str>", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 108, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 109, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 114, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 115, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 116, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_method", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_path", "full_name": "", "start_line": 135, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_query_string", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_header", "full_name": "", "start_line": 145, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_all_headers", "full_name": "", "start_line": 154, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 155, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 156, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 157, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 158, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has_header", "full_name": "", "start_line": 165, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 166, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_body", "full_name": "", "start_line": 171, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_content_type", "full_name": "", "start_line": 176, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_content_length", "full_name": "", "start_line": 181, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPRequestBox", "full_name": "", "start_line": 194, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 200, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 204, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 209, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 213, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 214, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPRequestBox", "full_name": "", "start_line": 222, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 223, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 227, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 231, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 236, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 240, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPRequestBox", "full_name": "", "start_line": 245, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 246, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPResponseBox", "full_name": "", "start_line": 253, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPResponseBox", "full_name": "", "start_line": 262, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 263, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_status", "full_name": "", "start_line": 275, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 278, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 279, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_header", "full_name": "", "start_line": 286, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 287, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 288, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_content_type", "full_name": "", "start_line": 295, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 296, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_body", "full_name": "", "start_line": 304, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 305, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "append_body", "full_name": "", "start_line": 312, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 313, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_http_string", "full_name": "", "start_line": 320, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 321, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 328, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 333, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_html_response", "full_name": "", "start_line": 347, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 348, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_json_response", "full_name": "", "start_line": 357, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 358, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_404_response", "full_name": "", "start_line": 367, "end_line": 374, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 368, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPResponseBox", "full_name": "", "start_line": 377, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 378, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 383, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 387, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 392, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 396, "end_line": 402, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 397, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPResponseBox", "full_name": "", "start_line": 405, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 406, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 410, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 414, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 419, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 423, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPResponseBox", "full_name": "", "start_line": 428, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 429, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 94, "max_depth": 11, "node_type_counts": { "function": 43, "import": 4, "if_statement": 9, "for_loop": 3, "variable": 24, "class": 10, "file_root": 1 }, "classes": 10, "functions": 43, "methods": 0, "variables": 24, "control_structures": 12 }, "generated_at": "2025-08-15T16:19:40.592358287Z" }, { "file_info": { "name": "http_server_box.rs", "path": "src/boxes/http_server_box.rs", "size_bytes": 0, "total_lines": 439, "code_lines": 285, "comment_lines": 89, "empty_lines": 65, "code_ratio": 0.6492027334851936, "analyzed_at": "2025-08-15T16:19:40.597352836Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "HTTPServerBox", "parent_class": null, "start_line": 53, "end_line": 62, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "HTTPServerBox", "parent_class": null, "start_line": 64, "end_line": 100, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "HTTPServerBox", "parent_class": null, "start_line": 102, "end_line": 364, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "HTTPServerBox", "parent_class": null, "start_line": 366, "end_line": 398, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "HTTPServerBox", "parent_class": null, "start_line": 400, "end_line": 425, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "HTTPServerBox", "parent_class": null, "start_line": 427, "end_line": 431, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "HTTPServerBox", "parent_class": null, "start_line": 434, "end_line": 439, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Drop" } } ], "functions": [ { "name": "clone", "start_line": 65, "end_line": 99, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 68, "end_line": 68, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 72, "end_line": 72, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 77, "end_line": 77, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 86, "end_line": 86, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "new", "start_line": 103, "end_line": 114, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "bind", "start_line": 117, "end_line": 134, "parameters": [ "&self", "address", "port" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "listen", "start_line": 137, "end_line": 154, "parameters": [ "&self", "backlog" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "start", "start_line": 157, "end_line": 224, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 207, "end_line": 207, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 214, "end_line": 217, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "stop", "start_line": 227, "end_line": 246, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "route", "start_line": 249, "end_line": 255, "parameters": [ "&self", "path", "handler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get", "start_line": 258, "end_line": 264, "parameters": [ "&self", "path", "handler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "post", "start_line": 267, "end_line": 273, "parameters": [ "&self", "path", "handler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "put", "start_line": 276, "end_line": 282, "parameters": [ "&self", "path", "handler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "delete", "start_line": 285, "end_line": 291, "parameters": [ "&self", "path", "handler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_static_path", "start_line": 294, "end_line": 298, "parameters": [ "&self", "path" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_timeout", "start_line": 301, "end_line": 305, "parameters": [ "&self", "seconds" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "handle_client_request_with_routes", "start_line": 308, "end_line": 352, "parameters": [ "client_socket: SocketBox", "routes" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_active_connections", "start_line": 355, "end_line": 358, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_running", "start_line": 361, "end_line": 363, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clone_box", "start_line": 367, "end_line": 369, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 372, "end_line": 374, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 376, "end_line": 385, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 387, "end_line": 389, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 391, "end_line": 397, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 401, "end_line": 403, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 405, "end_line": 407, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 409, "end_line": 416, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 418, "end_line": 420, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 422, "end_line": 424, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 428, "end_line": 430, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "drop", "start_line": 435, "end_line": 438, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 43, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::SocketBox", "imported_names": [], "alias": null, "line_number": 44, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::http_message_box::{HTTPRequestBox, HTTPResponseBox}", "imported_names": [], "alias": null, "line_number": 45, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 46, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 47, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 48, "metadata": {} }, { "type": "rust_use", "module_path": "std::thread", "imported_names": [], "alias": null, "line_number": 49, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 34, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 45, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 47, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 48, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 53, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 64, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 65, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 68, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 70, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap>", "full_name": "", "start_line": 71, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 76, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 80, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 81, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 84, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 85, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 102, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 103, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bind", "full_name": "", "start_line": 117, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 118, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 119, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 121, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "listen", "full_name": "", "start_line": 137, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 138, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 143, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "start", "full_name": "", "start_line": 157, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 177, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 179, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 184, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 189, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 198, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 204, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap>", "full_name": "", "start_line": 206, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stop", "full_name": "", "start_line": 227, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 231, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 232, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 233, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 240, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 241, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "route", "full_name": "", "start_line": 249, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 250, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 258, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 259, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "post", "full_name": "", "start_line": 267, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 268, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 269, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "put", "full_name": "", "start_line": 276, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 277, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 278, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 285, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 286, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 287, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_static_path", "full_name": "", "start_line": 294, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 295, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_timeout", "full_name": "", "start_line": 301, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 302, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "handle_client_request_with_routes", "full_name": "", "start_line": 308, "end_line": 352, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 313, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 314, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 316, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 317, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 322, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 323, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 324, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 329, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 330, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 332, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 332, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 338, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 349, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 350, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 351, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_active_connections", "full_name": "", "start_line": 355, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 356, "end_line": 356, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_running", "full_name": "", "start_line": 361, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 366, "end_line": 398, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 367, "end_line": 369, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 372, "end_line": 374, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 376, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 377, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 378, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 379, "end_line": 379, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 387, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 391, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 392, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 400, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 401, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 405, "end_line": 407, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 409, "end_line": 416, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 410, "end_line": 410, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 411, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 412, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 418, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 422, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 427, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 428, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HTTPServerBox", "full_name": "", "start_line": 434, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "drop", "full_name": "", "start_line": 435, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 112, "max_depth": 16, "node_type_counts": { "variable": 56, "if_statement": 11, "import": 7, "for_loop": 2, "file_root": 1, "class": 7, "function": 28 }, "classes": 7, "functions": 28, "methods": 0, "variables": 56, "control_structures": 13 }, "generated_at": "2025-08-15T16:19:40.597376929Z" }, { "file_info": { "name": "integer_box.rs", "path": "src/boxes/integer_box.rs", "size_bytes": 0, "total_lines": 119, "code_lines": 63, "comment_lines": 40, "empty_lines": 16, "code_ratio": 0.5294117647058824, "analyzed_at": "2025-08-15T16:19:40.597211156Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntegerBox", "parent_class": null, "start_line": 46, "end_line": 49, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 51, "end_line": 62, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 64, "end_line": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 93, "end_line": 113, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 115, "end_line": 119, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 52, "end_line": 57, "parameters": [ "value: i64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "zero", "start_line": 59, "end_line": 61, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_string_box", "start_line": 65, "end_line": 67, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 69, "end_line": 76, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 78, "end_line": 80, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 83, "end_line": 85, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 88, "end_line": 90, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 94, "end_line": 96, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 98, "end_line": 100, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 102, "end_line": 104, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 106, "end_line": 108, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 110, "end_line": 112, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 116, "end_line": 118, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 40, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 41, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Display", "imported_names": [], "alias": null, "line_number": 42, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::BoolBox", "imported_names": [], "alias": null, "line_number": 70, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 13, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 46, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 51, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 52, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "zero", "full_name": "", "start_line": 59, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 64, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 69, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 70, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 78, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 83, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 88, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 93, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 106, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 110, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 115, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 116, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 24, "max_depth": 6, "node_type_counts": { "if_statement": 1, "class": 5, "file_root": 1, "import": 4, "function": 13 }, "classes": 5, "functions": 13, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.597217522Z" }, { "file_info": { "name": "intent_box.rs", "path": "src/boxes/intent_box.rs", "size_bytes": 0, "total_lines": 154, "code_lines": 92, "comment_lines": 42, "empty_lines": 20, "code_ratio": 0.5974025974025974, "analyzed_at": "2025-08-15T16:19:40.599052815Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntentBox", "parent_class": null, "start_line": 42, "end_line": 48, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "IntentBox", "parent_class": null, "start_line": 50, "end_line": 61, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "IntentBox", "parent_class": null, "start_line": 63, "end_line": 96, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "IntentBox", "parent_class": null, "start_line": 98, "end_line": 124, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "IntentBox", "parent_class": null, "start_line": 126, "end_line": 147, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "IntentBox", "parent_class": null, "start_line": 149, "end_line": 153, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "clone", "start_line": 51, "end_line": 60, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 65, "end_line": 71, "parameters": [ "name: String", "payload" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_name", "start_line": 74, "end_line": 77, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_payload", "start_line": 80, "end_line": 83, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_payload", "start_line": 86, "end_line": 95, "parameters": [ "&self", "payload" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 99, "end_line": 101, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 104, "end_line": 106, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 108, "end_line": 111, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 113, "end_line": 119, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 121, "end_line": 123, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 127, "end_line": 129, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 131, "end_line": 133, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 135, "end_line": 138, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 140, "end_line": 142, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 144, "end_line": 146, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 150, "end_line": 152, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 35, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 36, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 37, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{self, Debug}", "imported_names": [], "alias": null, "line_number": 38, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 16, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 35, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 36, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 38, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 42, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 50, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 51, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 63, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 65, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_name", "full_name": "", "start_line": 74, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_payload", "full_name": "", "start_line": 80, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 81, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_payload", "full_name": "", "start_line": 86, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 98, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 99, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 104, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 108, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 113, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 114, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 121, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 126, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 127, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 131, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 135, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 144, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 149, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 150, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 35, "max_depth": 6, "node_type_counts": { "class": 6, "file_root": 1, "function": 16, "variable": 7, "import": 4, "if_statement": 1 }, "classes": 6, "functions": 16, "methods": 0, "variables": 7, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.599062320Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/json/mod.rs", "size_bytes": 0, "total_lines": 278, "code_lines": 221, "comment_lines": 23, "empty_lines": 34, "code_ratio": 0.7949640287769785, "analyzed_at": "2025-08-15T16:19:40.612362803Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "JSONBox", "parent_class": null, "start_line": 13, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "JSONBox", "parent_class": null, "start_line": 18, "end_line": 27, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "JSONBox", "parent_class": null, "start_line": 29, "end_line": 131, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "JSONBox", "parent_class": null, "start_line": 133, "end_line": 166, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "JSONBox", "parent_class": null, "start_line": 168, "end_line": 172, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "JSONBox", "parent_class": null, "start_line": 174, "end_line": 204, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } } ], "functions": [ { "name": "clone", "start_line": 19, "end_line": 26, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "from_str", "start_line": 30, "end_line": 36, "parameters": [ "s: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new", "start_line": 38, "end_line": 43, "parameters": [ "value: Value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_string", "start_line": 45, "end_line": 48, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "parse", "start_line": 51, "end_line": 57, "parameters": [ "data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "stringify", "start_line": 60, "end_line": 62, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get", "start_line": 65, "end_line": 88, "parameters": [ "&self", "key" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set", "start_line": 91, "end_line": 103, "parameters": [ "&self", "key", "new_value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "has", "start_line": 106, "end_line": 115, "parameters": [ "&self", "key" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "keys", "start_line": 118, "end_line": 130, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 134, "end_line": 136, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 138, "end_line": 140, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 142, "end_line": 157, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 159, "end_line": 161, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 163, "end_line": 165, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 169, "end_line": 171, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 175, "end_line": 177, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 180, "end_line": 182, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 184, "end_line": 187, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 190, "end_line": 192, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 195, "end_line": 203, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "json_value_to_nyash_box", "start_line": 207, "end_line": 241, "parameters": [ "value: &Value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "nyash_box_to_json_value", "start_line": 244, "end_line": 278, "parameters": [ "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 263, "end_line": 263, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, BoxCore, BoxBase, StringBox, BoolBox, IntegerBox}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::map_box::MapBox", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "serde_json::{Value, Error}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 24, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 13, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 18, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 19, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 20, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 29, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_str", "full_name": "", "start_line": 30, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 31, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 38, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string", "full_name": "", "start_line": 45, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "full_name": "", "start_line": 51, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stringify", "full_name": "", "start_line": 60, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 65, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 69, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 70, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 75, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 76, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 77, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 91, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 93, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 95, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 97, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has", "full_name": "", "start_line": 106, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 108, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 110, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "keys", "full_name": "", "start_line": 118, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 119, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 120, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 122, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 123, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 133, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 134, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 138, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 142, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 143, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 144, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 159, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 163, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 168, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 169, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 174, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 175, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 180, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 184, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 185, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 190, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 195, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 196, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 198, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "json_value_to_nyash_box", "full_name": "", "start_line": 207, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 212, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 214, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 224, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 225, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 231, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 232, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "nyash_box_to_json_value", "full_name": "", "start_line": 244, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 245, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 247, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 249, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 258, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 260, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 261, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 262, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 266, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 267, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 268, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 269, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 270, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 83, "max_depth": 17, "node_type_counts": { "function": 23, "file_root": 1, "import": 6, "variable": 26, "if_statement": 17, "for_loop": 4, "class": 6 }, "classes": 6, "functions": 23, "methods": 0, "variables": 26, "control_structures": 21 }, "generated_at": "2025-08-15T16:19:40.612379868Z" }, { "file_info": { "name": "map_box.rs", "path": "src/boxes/map_box.rs", "size_bytes": 0, "total_lines": 313, "code_lines": 160, "comment_lines": 122, "empty_lines": 31, "code_ratio": 0.5111821086261981, "analyzed_at": "2025-08-15T16:19:40.597578993Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MapBox", "parent_class": null, "start_line": 114, "end_line": 117, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MapBox", "parent_class": null, "start_line": 119, "end_line": 223, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MapBox", "parent_class": null, "start_line": 226, "end_line": 238, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "MapBox", "parent_class": null, "start_line": 240, "end_line": 261, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "MapBox", "parent_class": null, "start_line": 263, "end_line": 296, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "MapBox", "parent_class": null, "start_line": 298, "end_line": 302, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "MapBox", "parent_class": null, "start_line": 304, "end_line": 313, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 120, "end_line": 125, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set", "start_line": 128, "end_line": 132, "parameters": [ "&self", "key", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get", "start_line": 135, "end_line": 141, "parameters": [ "&self", "key" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "has", "start_line": 144, "end_line": 147, "parameters": [ "&self", "key" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "delete", "start_line": 150, "end_line": 156, "parameters": [ "&self", "key" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "keys", "start_line": 159, "end_line": 166, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "values", "start_line": 169, "end_line": 179, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 172, "end_line": 172, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "size", "start_line": 182, "end_line": 184, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 187, "end_line": 190, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "forEach", "start_line": 193, "end_line": 197, "parameters": [ "&self", "_callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "toJSON", "start_line": 200, "end_line": 217, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_data", "start_line": 220, "end_line": 222, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone", "start_line": 227, "end_line": 237, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 231, "end_line": 231, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "box_id", "start_line": 241, "end_line": 243, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 245, "end_line": 247, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 249, "end_line": 252, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 254, "end_line": 256, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 258, "end_line": 260, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 264, "end_line": 266, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 268, "end_line": 271, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 274, "end_line": 276, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 279, "end_line": 285, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 287, "end_line": 294, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 299, "end_line": 301, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 305, "end_line": 312, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{BoxCore, BoxBase, NyashBox, StringBox, IntegerBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 106, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::ArrayBox", "imported_names": [], "alias": null, "line_number": 107, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 108, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 109, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 110, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, RwLock}", "imported_names": [], "alias": null, "line_number": 111, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 27, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 106, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 108, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 110, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 114, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 119, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 120, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 128, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 129, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 135, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has", "full_name": "", "start_line": 144, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 150, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 151, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "keys", "full_name": "", "start_line": 159, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 161, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 162, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "values", "full_name": "", "start_line": 169, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 170, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 175, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "size", "full_name": "", "start_line": 182, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 187, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "forEach", "full_name": "", "start_line": 193, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 195, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "toJSON", "full_name": "", "start_line": 200, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 202, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 204, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 205, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 207, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_data", "full_name": "", "start_line": 220, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 226, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 227, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap>", "full_name": "", "start_line": 230, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 240, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 241, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 245, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 249, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 250, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 254, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 258, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 263, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 264, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 268, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 269, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 279, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 280, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 287, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 288, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 298, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 299, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 304, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 305, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 306, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 63, "max_depth": 9, "node_type_counts": { "variable": 19, "class": 7, "function": 25, "import": 6, "for_loop": 3, "file_root": 1, "if_statement": 2 }, "classes": 7, "functions": 25, "methods": 0, "variables": 19, "control_structures": 5 }, "generated_at": "2025-08-15T16:19:40.597595993Z" }, { "file_info": { "name": "math_box.rs", "path": "src/boxes/math_box.rs", "size_bytes": 0, "total_lines": 513, "code_lines": 371, "comment_lines": 80, "empty_lines": 62, "code_ratio": 0.723196881091618, "analyzed_at": "2025-08-15T16:19:40.597617262Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MathBox", "parent_class": null, "start_line": 65, "end_line": 67, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MathBox", "parent_class": null, "start_line": 69, "end_line": 283, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MathBox", "parent_class": null, "start_line": 285, "end_line": 305, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "MathBox", "parent_class": null, "start_line": 307, "end_line": 333, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "MathBox", "parent_class": null, "start_line": 335, "end_line": 339, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "FloatBox", "parent_class": null, "start_line": 343, "end_line": 346, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "FloatBox", "parent_class": null, "start_line": 348, "end_line": 355, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 357, "end_line": 377, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "FloatBox", "parent_class": null, "start_line": 379, "end_line": 407, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "FloatBox", "parent_class": null, "start_line": 409, "end_line": 413, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "RangeBox", "parent_class": null, "start_line": 417, "end_line": 422, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "RangeBox", "parent_class": null, "start_line": 424, "end_line": 453, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "RangeBox", "parent_class": null, "start_line": 455, "end_line": 475, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "RangeBox", "parent_class": null, "start_line": 477, "end_line": 507, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "RangeBox", "parent_class": null, "start_line": 509, "end_line": 513, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 70, "end_line": 74, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "abs", "start_line": 77, "end_line": 85, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "max", "start_line": 88, "end_line": 102, "parameters": [ "&self", "a", "b" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "min", "start_line": 105, "end_line": 119, "parameters": [ "&self", "a", "b" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "pow", "start_line": 122, "end_line": 136, "parameters": [ "&self", "base", "exp" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "sqrt", "start_line": 139, "end_line": 155, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "getPi", "start_line": 159, "end_line": 161, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "getE", "start_line": 165, "end_line": 167, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "sin", "start_line": 170, "end_line": 178, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "cos", "start_line": 181, "end_line": 189, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "tan", "start_line": 192, "end_line": 200, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "log", "start_line": 203, "end_line": 219, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "log10", "start_line": 222, "end_line": 238, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "exp", "start_line": 241, "end_line": 249, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "floor", "start_line": 252, "end_line": 260, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "ceil", "start_line": 263, "end_line": 271, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "round", "start_line": 274, "end_line": 282, "parameters": [ "&self", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 286, "end_line": 288, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 290, "end_line": 292, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 294, "end_line": 296, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 298, "end_line": 300, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 302, "end_line": 304, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 308, "end_line": 310, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 312, "end_line": 314, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 316, "end_line": 318, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 321, "end_line": 323, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 325, "end_line": 331, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 336, "end_line": 338, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 349, "end_line": 354, "parameters": [ "value: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 358, "end_line": 360, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 362, "end_line": 364, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 366, "end_line": 368, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 370, "end_line": 372, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 374, "end_line": 376, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 380, "end_line": 382, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 384, "end_line": 386, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 388, "end_line": 390, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 393, "end_line": 395, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 397, "end_line": 405, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 410, "end_line": 412, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 425, "end_line": 432, "parameters": [ "start: i64", "end: i64", "step: i64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "iter", "start_line": 435, "end_line": 452, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 456, "end_line": 458, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 460, "end_line": 462, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 464, "end_line": 466, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 468, "end_line": 470, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 472, "end_line": 474, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 478, "end_line": 480, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 482, "end_line": 484, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 486, "end_line": 488, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 491, "end_line": 493, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 495, "end_line": 505, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 510, "end_line": 512, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, BoxCore, BoxBase, next_box_id}", "imported_names": [], "alias": null, "line_number": 59, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 60, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 61, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 15, "function_count": 53, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 60, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MathBox", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MathBox", "full_name": "", "start_line": 69, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 70, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "abs", "full_name": "", "start_line": 77, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 78, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 80, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "max", "full_name": "", "start_line": 88, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 89, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 94, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "min", "full_name": "", "start_line": 105, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 106, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 111, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "pow", "full_name": "", "start_line": 122, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 123, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 127, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 128, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sqrt", "full_name": "", "start_line": 139, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 141, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 146, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 147, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "getPi", "full_name": "", "start_line": 159, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "getE", "full_name": "", "start_line": 165, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sin", "full_name": "", "start_line": 170, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 171, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 173, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "cos", "full_name": "", "start_line": 181, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 182, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 184, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "tan", "full_name": "", "start_line": 192, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 193, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 195, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "log", "full_name": "", "start_line": 203, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 205, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 210, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 211, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "log10", "full_name": "", "start_line": 222, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 223, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 224, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 229, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 230, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exp", "full_name": "", "start_line": 241, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 242, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 244, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "floor", "full_name": "", "start_line": 252, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 253, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ceil", "full_name": "", "start_line": 263, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 264, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 266, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "round", "full_name": "", "start_line": 274, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 275, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 277, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MathBox", "full_name": "", "start_line": 285, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 286, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 290, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 294, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 298, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 302, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MathBox", "full_name": "", "start_line": 307, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 308, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 312, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 316, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 321, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 325, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 326, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MathBox", "full_name": "", "start_line": 335, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 336, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 343, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 348, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 349, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 357, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 358, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 362, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 366, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 370, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 374, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 379, "end_line": 407, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 380, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 384, "end_line": 386, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 388, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 393, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 397, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 398, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 400, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 409, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 410, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 417, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 424, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 425, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "iter", "full_name": "", "start_line": 435, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 436, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 439, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 440, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 444, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 445, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 455, "end_line": 475, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 456, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 460, "end_line": 462, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 464, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 468, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 472, "end_line": 474, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 477, "end_line": 507, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 478, "end_line": 480, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 482, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 486, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 491, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 495, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 496, "end_line": 504, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 509, "end_line": 513, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 510, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 117, "max_depth": 11, "node_type_counts": { "function": 53, "variable": 3, "for_loop": 2, "class": 15, "file_root": 1, "if_statement": 40, "import": 3 }, "classes": 15, "functions": 53, "methods": 0, "variables": 3, "control_structures": 42 }, "generated_at": "2025-08-15T16:19:40.597642082Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/mod.rs", "size_bytes": 0, "total_lines": 146, "code_lines": 67, "comment_lines": 66, "empty_lines": 13, "code_ratio": 0.4589041095890411, "analyzed_at": "2025-08-15T16:19:40.598839660Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "string_box::StringBox", "imported_names": [], "alias": null, "line_number": 81, "metadata": {} }, { "type": "rust_use", "module_path": "integer_box::IntegerBox", "imported_names": [], "alias": null, "line_number": 82, "metadata": {} }, { "type": "rust_use", "module_path": "bool_box::BoolBox", "imported_names": [], "alias": null, "line_number": 83, "metadata": {} }, { "type": "rust_use", "module_path": "math_box::{MathBox, FloatBox}", "imported_names": [], "alias": null, "line_number": 84, "metadata": {} }, { "type": "rust_use", "module_path": "time_box::{TimeBox, DateTimeBox}", "imported_names": [], "alias": null, "line_number": 85, "metadata": {} }, { "type": "rust_use", "module_path": "debug_box::DebugBox", "imported_names": [], "alias": null, "line_number": 86, "metadata": {} }, { "type": "rust_use", "module_path": "random_box::RandomBox", "imported_names": [], "alias": null, "line_number": 87, "metadata": {} }, { "type": "rust_use", "module_path": "timer_box::TimerBox", "imported_names": [], "alias": null, "line_number": 88, "metadata": {} }, { "type": "rust_use", "module_path": "canvas_event_box::CanvasEventBox", "imported_names": [], "alias": null, "line_number": 89, "metadata": {} }, { "type": "rust_use", "module_path": "canvas_loop_box::CanvasLoopBox", "imported_names": [], "alias": null, "line_number": 90, "metadata": {} }, { "type": "rust_use", "module_path": "audio_box::AudioBox", "imported_names": [], "alias": null, "line_number": 91, "metadata": {} }, { "type": "rust_use", "module_path": "qr_box::QRBox", "imported_names": [], "alias": null, "line_number": 92, "metadata": {} }, { "type": "rust_use", "module_path": "sound_box::SoundBox", "imported_names": [], "alias": null, "line_number": 93, "metadata": {} }, { "type": "rust_use", "module_path": "map_box::MapBox", "imported_names": [], "alias": null, "line_number": 94, "metadata": {} }, { "type": "rust_use", "module_path": "console_box::ConsoleBox", "imported_names": [], "alias": null, "line_number": 95, "metadata": {} }, { "type": "rust_use", "module_path": "egui_box::EguiBox", "imported_names": [], "alias": null, "line_number": 99, "metadata": {} }, { "type": "rust_use", "module_path": "web::{WebDisplayBox, WebConsoleBox, WebCanvasBox}", "imported_names": [], "alias": null, "line_number": 103, "metadata": {} }, { "type": "rust_use", "module_path": "null_box::{NullBox, null}", "imported_names": [], "alias": null, "line_number": 127, "metadata": {} }, { "type": "rust_use", "module_path": "array::ArrayBox", "imported_names": [], "alias": null, "line_number": 130, "metadata": {} }, { "type": "rust_use", "module_path": "buffer::BufferBox", "imported_names": [], "alias": null, "line_number": 131, "metadata": {} }, { "type": "rust_use", "module_path": "file::FileBox", "imported_names": [], "alias": null, "line_number": 132, "metadata": {} }, { "type": "rust_use", "module_path": "future::{NyashFutureBox, FutureBox}", "imported_names": [], "alias": null, "line_number": 133, "metadata": {} }, { "type": "rust_use", "module_path": "json::JSONBox", "imported_names": [], "alias": null, "line_number": 134, "metadata": {} }, { "type": "rust_use", "module_path": "result::{NyashResultBox, ResultBox}", "imported_names": [], "alias": null, "line_number": 135, "metadata": {} }, { "type": "rust_use", "module_path": "http::HttpClientBox", "imported_names": [], "alias": null, "line_number": 136, "metadata": {} }, { "type": "rust_use", "module_path": "stream::{NyashStreamBox, StreamBox}", "imported_names": [], "alias": null, "line_number": 137, "metadata": {} }, { "type": "rust_use", "module_path": "regex::RegexBox", "imported_names": [], "alias": null, "line_number": 138, "metadata": {} }, { "type": "rust_use", "module_path": "socket_box::SocketBox", "imported_names": [], "alias": null, "line_number": 139, "metadata": {} }, { "type": "rust_use", "module_path": "http_message_box::{HTTPRequestBox, HTTPResponseBox}", "imported_names": [], "alias": null, "line_number": 140, "metadata": {} }, { "type": "rust_use", "module_path": "http_server_box::HTTPServerBox", "imported_names": [], "alias": null, "line_number": 141, "metadata": {} }, { "type": "rust_use", "module_path": "intent_box::IntentBox", "imported_names": [], "alias": null, "line_number": 144, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 0, "function_count": 0, "import_count": 31, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 81, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 83, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 84, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 85, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 89, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 91, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 93, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 94, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 95, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 99, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 103, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 130, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 131, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 132, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 133, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 134, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 135, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 137, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 138, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 139, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 32, "max_depth": 1, "node_type_counts": { "file_root": 1, "import": 31 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.598847242Z" }, { "file_info": { "name": "null_box.rs", "path": "src/boxes/null_box.rs", "size_bytes": 0, "total_lines": 244, "code_lines": 117, "comment_lines": 96, "empty_lines": 31, "code_ratio": 0.47950819672131145, "analyzed_at": "2025-08-15T16:19:40.599092235Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NullBox", "parent_class": null, "start_line": 93, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NullBox", "parent_class": null, "start_line": 97, "end_line": 135, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NullBox", "parent_class": null, "start_line": 137, "end_line": 157, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "NullBox", "parent_class": null, "start_line": 159, "end_line": 182, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "NullBox", "parent_class": null, "start_line": 184, "end_line": 188, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 98, "end_line": 102, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_null", "start_line": 105, "end_line": 107, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_not_null", "start_line": 110, "end_line": 112, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "check_null", "start_line": 115, "end_line": 117, "parameters": [ "value: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "check_not_null", "start_line": 120, "end_line": 122, "parameters": [ "value: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_or_default", "start_line": 125, "end_line": 134, "parameters": [ "value: &dyn NyashBox", "default" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 138, "end_line": 140, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 142, "end_line": 144, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 146, "end_line": 148, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 150, "end_line": 152, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 154, "end_line": 156, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 160, "end_line": 162, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 164, "end_line": 166, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 168, "end_line": 170, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 173, "end_line": 175, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 177, "end_line": 180, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 185, "end_line": 187, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "null", "start_line": 191, "end_line": 193, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_null_creation", "start_line": 201, "end_line": 206, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_null_check", "start_line": 209, "end_line": 218, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_null_equality", "start_line": 221, "end_line": 228, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_get_or_default", "start_line": 231, "end_line": 243, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase, next_box_id}", "imported_names": [], "alias": null, "line_number": 87, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 88, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 89, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 197, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::IntegerBox", "imported_names": [], "alias": null, "line_number": 198, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 22, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 89, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NullBox", "full_name": "", "start_line": 93, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NullBox", "full_name": "", "start_line": 97, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 98, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_null", "full_name": "", "start_line": 105, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_not_null", "full_name": "", "start_line": 110, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "check_null", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "check_not_null", "full_name": "", "start_line": 120, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_or_default", "full_name": "", "start_line": 125, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 129, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NullBox", "full_name": "", "start_line": 137, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 138, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 142, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 146, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 150, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NullBox", "full_name": "", "start_line": 159, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 160, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 164, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 168, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 173, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 177, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NullBox", "full_name": "", "start_line": 184, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 185, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "null", "full_name": "", "start_line": 191, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 198, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_null_creation", "full_name": "", "start_line": 201, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 202, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_null_check", "full_name": "", "start_line": 209, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 210, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 211, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_null_equality", "full_name": "", "start_line": 221, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 222, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 224, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_get_or_default", "full_name": "", "start_line": 231, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 232, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 233, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 237, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 241, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 45, "max_depth": 6, "node_type_counts": { "variable": 11, "class": 5, "function": 22, "file_root": 1, "if_statement": 1, "import": 5 }, "classes": 5, "functions": 22, "methods": 0, "variables": 11, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.599104618Z" }, { "file_info": { "name": "p2p_box.rs", "path": "src/boxes/p2p_box.rs", "size_bytes": 0, "total_lines": 211, "code_lines": 133, "comment_lines": 51, "empty_lines": 27, "code_ratio": 0.6303317535545023, "analyzed_at": "2025-08-15T16:19:40.602608508Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "P2PBox", "parent_class": null, "start_line": 48, "end_line": 53, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "P2PBox", "parent_class": null, "start_line": 55, "end_line": 74, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "TransportKind", "parent_class": null, "start_line": 76, "end_line": 79, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "TransportKind", "parent_class": null, "start_line": 81, "end_line": 90, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::str::FromStr", "type": "impl" } }, { "name": "P2PBox", "parent_class": null, "start_line": 92, "end_line": 211, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "P2PBox", "parent_class": null, "start_line": 154, "end_line": 181, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "P2PBox", "parent_class": null, "start_line": 183, "end_line": 205, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "P2PBox", "parent_class": null, "start_line": 207, "end_line": 211, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "clone", "start_line": 56, "end_line": 73, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "from_str", "start_line": 84, "end_line": 89, "parameters": [ "s: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 94, "end_line": 105, "parameters": [ "node_id: String", "transport_kind: TransportKind" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_node_id", "start_line": 108, "end_line": 111, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "send", "start_line": 114, "end_line": 127, "parameters": [ "&self", "to", "intent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "on", "start_line": 130, "end_line": 150, "parameters": [ "&self", "intent_name", "handler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_reachable", "start_line": 139, "end_line": 143, "parameters": [ "&self", "node_id" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_transport_type", "start_line": 146, "end_line": 149, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 155, "end_line": 157, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 160, "end_line": 162, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 164, "end_line": 168, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 170, "end_line": 176, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 178, "end_line": 180, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 184, "end_line": 186, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 188, "end_line": 190, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 192, "end_line": 196, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 198, "end_line": 200, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 202, "end_line": 204, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 208, "end_line": 210, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 38, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::IntentBox", "imported_names": [], "alias": null, "line_number": 39, "metadata": {} }, { "type": "rust_use", "module_path": "crate::transport::{Transport, InProcessTransport, TransportError}", "imported_names": [], "alias": null, "line_number": 40, "metadata": {} }, { "type": "rust_use", "module_path": "crate::messaging::IntentHandler", "imported_names": [], "alias": null, "line_number": 41, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 42, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 43, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 44, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 8, "function_count": 19, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 38, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 39, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 48, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 55, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 56, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 58, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 62, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TransportKind", "full_name": "", "start_line": 76, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TransportKind", "full_name": "", "start_line": 81, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_str", "full_name": "", "start_line": 84, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 92, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 94, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 95, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_node_id", "full_name": "", "start_line": 108, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "send", "full_name": "", "start_line": 114, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 115, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 118, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 119, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on", "full_name": "", "start_line": 130, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 131, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 135, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_reachable", "full_name": "", "start_line": 139, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_transport_type", "full_name": "", "start_line": 146, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 147, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 154, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 155, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 160, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 164, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 166, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 170, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 171, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 178, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 183, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 184, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 188, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 192, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 193, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 194, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 198, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 202, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 207, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 208, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 54, "max_depth": 8, "node_type_counts": { "variable": 17, "import": 7, "function": 19, "class": 8, "file_root": 1, "if_statement": 2 }, "classes": 8, "functions": 19, "methods": 0, "variables": 17, "control_structures": 2 }, "generated_at": "2025-08-15T16:19:40.602619751Z" }, { "file_info": { "name": "qr_box.rs", "path": "src/boxes/qr_box.rs", "size_bytes": 0, "total_lines": 339, "code_lines": 220, "comment_lines": 79, "empty_lines": 40, "code_ratio": 0.6489675516224189, "analyzed_at": "2025-08-15T16:19:40.598987411Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "QRBox", "parent_class": null, "start_line": 65, "end_line": 73, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "QRBox", "parent_class": null, "start_line": 75, "end_line": 284, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "QRBox", "parent_class": null, "start_line": 286, "end_line": 306, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "QRBox", "parent_class": null, "start_line": 308, "end_line": 333, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "QRBox", "parent_class": null, "start_line": 335, "end_line": 339, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 76, "end_line": 86, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "generate", "start_line": 89, "end_line": 93, "parameters": [ "&mut self", "text: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "generate_url", "start_line": 96, "end_line": 104, "parameters": [ "&mut self", "url: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "generate_wifi", "start_line": 107, "end_line": 113, "parameters": [ "&mut self", "ssid: &str", "password: &str", "security: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "generate_contact", "start_line": 116, "end_line": 125, "parameters": [ "&mut self", "name: &str", "phone: &str", "email: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_size", "start_line": 128, "end_line": 130, "parameters": [ "&mut self", "width: u32", "height: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_colors", "start_line": 133, "end_line": 136, "parameters": [ "&mut self", "foreground: &str", "background: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_error_correction", "start_line": 139, "end_line": 143, "parameters": [ "&mut self", "level: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_info", "start_line": 146, "end_line": 151, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_data_url", "start_line": 154, "end_line": 156, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "generate_base64_qr", "start_line": 159, "end_line": 163, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "draw_to_canvas", "start_line": 167, "end_line": 182, "parameters": [ "&self", "canvas_id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "draw_simple_qr", "start_line": 186, "end_line": 229, "parameters": [ "&self", "ctx: &CanvasRenderingContext2d" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "simple_hash", "start_line": 232, "end_line": 238, "parameters": [ "&self", "data: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "draw_to_canvas", "start_line": 242, "end_line": 248, "parameters": [ "&self", "canvas_id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "scan_from_canvas", "start_line": 252, "end_line": 256, "parameters": [ "&self", "canvas_id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "scan_from_canvas", "start_line": 259, "end_line": 262, "parameters": [ "&self", "canvas_id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "generate_batch", "start_line": 265, "end_line": 269, "parameters": [ "&self", "data_list: &[String]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 267, "end_line": 267, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "calculate_complexity", "start_line": 272, "end_line": 283, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 287, "end_line": 289, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 291, "end_line": 293, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 295, "end_line": 297, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 299, "end_line": 301, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 303, "end_line": 305, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 309, "end_line": 311, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 314, "end_line": 316, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 318, "end_line": 320, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 322, "end_line": 324, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 326, "end_line": 332, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 336, "end_line": 338, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 52, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 53, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 56, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{\n HtmlCanvasElement, CanvasRenderingContext2d, ImageData\n}", "imported_names": [], "alias": null, "line_number": 59, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 31, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 56, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 59, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "QRBox", "full_name": "", "start_line": 65, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "QRBox", "full_name": "", "start_line": 75, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 76, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate", "full_name": "", "start_line": 89, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_url", "full_name": "", "start_line": 96, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 97, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_wifi", "full_name": "", "start_line": 107, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_contact", "full_name": "", "start_line": 116, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 118, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_size", "full_name": "", "start_line": 128, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_colors", "full_name": "", "start_line": 133, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_error_correction", "full_name": "", "start_line": 139, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_info", "full_name": "", "start_line": 146, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_data_url", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_base64_qr", "full_name": "", "start_line": 159, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "draw_to_canvas", "full_name": "", "start_line": 167, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 168, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 170, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 171, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 172, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 173, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "draw_simple_qr", "full_name": "", "start_line": 186, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 188, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 198, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 200, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 201, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 215, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 216, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "simple_hash", "full_name": "", "start_line": 232, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 233, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 234, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "draw_to_canvas", "full_name": "", "start_line": 242, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "scan_from_canvas", "full_name": "", "start_line": 252, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "scan_from_canvas", "full_name": "", "start_line": 259, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "generate_batch", "full_name": "", "start_line": 265, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "calculate_complexity", "full_name": "", "start_line": 272, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 273, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 274, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "QRBox", "full_name": "", "start_line": 286, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 287, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 291, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 295, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 299, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 303, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "QRBox", "full_name": "", "start_line": 308, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 309, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 314, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 318, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 322, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 326, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 327, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "QRBox", "full_name": "", "start_line": 335, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 336, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 64, "max_depth": 21, "node_type_counts": { "for_loop": 3, "file_root": 1, "function": 30, "class": 5, "import": 4, "if_statement": 12, "variable": 9 }, "classes": 5, "functions": 30, "methods": 0, "variables": 9, "control_structures": 15 }, "generated_at": "2025-08-15T16:19:40.599005714Z" }, { "file_info": { "name": "random_box.rs", "path": "src/boxes/random_box.rs", "size_bytes": 0, "total_lines": 315, "code_lines": 183, "comment_lines": 92, "empty_lines": 40, "code_ratio": 0.580952380952381, "analyzed_at": "2025-08-15T16:19:40.599938390Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "RandomBox", "parent_class": null, "start_line": 78, "end_line": 82, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "RandomBox", "parent_class": null, "start_line": 84, "end_line": 93, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "RandomBox", "parent_class": null, "start_line": 95, "end_line": 258, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "RandomBox", "parent_class": null, "start_line": 260, "end_line": 287, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "RandomBox", "parent_class": null, "start_line": 289, "end_line": 309, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "RandomBox", "parent_class": null, "start_line": 311, "end_line": 315, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "clone", "start_line": 85, "end_line": 92, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 96, "end_line": 107, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "seed", "start_line": 110, "end_line": 117, "parameters": [ "&self", "new_seed" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "next_random", "start_line": 120, "end_line": 125, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "random", "start_line": 128, "end_line": 132, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "randInt", "start_line": 135, "end_line": 150, "parameters": [ "&self", "min", "max" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "randBool", "start_line": 153, "end_line": 156, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "choice", "start_line": 159, "end_line": 172, "parameters": [ "&self", "array" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "shuffle", "start_line": 175, "end_line": 213, "parameters": [ "&self", "array" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "randString", "start_line": 216, "end_line": 235, "parameters": [ "&self", "length" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "probability", "start_line": 238, "end_line": 257, "parameters": [ "&self", "prob" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "type_name", "start_line": 261, "end_line": 263, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 265, "end_line": 267, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 269, "end_line": 271, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 274, "end_line": 276, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 278, "end_line": 284, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 290, "end_line": 292, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 294, "end_line": 296, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 298, "end_line": 300, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 302, "end_line": 304, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 306, "end_line": 308, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 312, "end_line": 314, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 70, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{ArrayBox, FloatBox}", "imported_names": [], "alias": null, "line_number": 71, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 72, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 73, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 74, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 22, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 70, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 71, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 73, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 74, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 78, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 84, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 85, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 95, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 96, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 98, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "seed", "full_name": "", "start_line": 110, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 111, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next_random", "full_name": "", "start_line": 120, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 121, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "random", "full_name": "", "start_line": 128, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 129, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 130, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "randInt", "full_name": "", "start_line": 135, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 136, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "randBool", "full_name": "", "start_line": 153, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 154, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "choice", "full_name": "", "start_line": 159, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 161, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 162, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 166, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "shuffle", "full_name": "", "start_line": 175, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 176, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 177, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 178, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 183, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 186, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 189, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 199, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 202, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "randString", "full_name": "", "start_line": 216, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 217, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 218, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 222, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 224, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 226, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 227, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "probability", "full_name": "", "start_line": 238, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 239, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 240, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 244, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 246, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 247, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 248, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 260, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 261, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 265, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 269, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 278, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 279, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 289, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 290, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 294, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 298, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 302, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 306, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 311, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 312, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 78, "max_depth": 12, "node_type_counts": { "class": 6, "function": 22, "import": 5, "variable": 25, "file_root": 1, "if_statement": 16, "for_loop": 3 }, "classes": 6, "functions": 22, "methods": 0, "variables": 25, "control_structures": 19 }, "generated_at": "2025-08-15T16:19:40.599958127Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/regex/mod.rs", "size_bytes": 0, "total_lines": 139, "code_lines": 105, "comment_lines": 9, "empty_lines": 25, "code_ratio": 0.7553956834532374, "analyzed_at": "2025-08-15T16:19:40.612981790Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "RegexBox", "parent_class": null, "start_line": 13, "end_line": 17, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "RegexBox", "parent_class": null, "start_line": 19, "end_line": 82, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "RegexBox", "parent_class": null, "start_line": 84, "end_line": 111, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "RegexBox", "parent_class": null, "start_line": 113, "end_line": 133, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "RegexBox", "parent_class": null, "start_line": 135, "end_line": 139, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 20, "end_line": 27, "parameters": [ "pattern: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_match", "start_line": 28, "end_line": 30, "parameters": [ "&self", "text: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "pattern", "start_line": 31, "end_line": 33, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test", "start_line": 36, "end_line": 39, "parameters": [ "&self", "text" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "find", "start_line": 42, "end_line": 49, "parameters": [ "&self", "text" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "find_all", "start_line": 52, "end_line": 61, "parameters": [ "&self", "text" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "replace", "start_line": 64, "end_line": 69, "parameters": [ "&self", "text", "replacement" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "split", "start_line": 72, "end_line": 81, "parameters": [ "&self", "text" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 85, "end_line": 87, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 90, "end_line": 92, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 94, "end_line": 96, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 99, "end_line": 101, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 104, "end_line": 110, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 114, "end_line": 116, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 118, "end_line": 120, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 122, "end_line": 124, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 126, "end_line": 128, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 130, "end_line": 132, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 136, "end_line": 138, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "regex::Regex", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Debug", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 19, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 13, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 19, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 20, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_match", "full_name": "", "start_line": 28, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "pattern", "full_name": "", "start_line": 31, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test", "full_name": "", "start_line": 36, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find", "full_name": "", "start_line": 42, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 44, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find_all", "full_name": "", "start_line": 52, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 56, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "replace", "full_name": "", "start_line": 64, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "split", "full_name": "", "start_line": 72, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 73, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 74, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 76, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 84, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 85, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 90, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 99, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 104, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 113, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 118, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 126, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 135, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 136, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 47, "max_depth": 8, "node_type_counts": { "variable": 12, "class": 5, "for_loop": 2, "import": 6, "if_statement": 2, "function": 19, "file_root": 1 }, "classes": 5, "functions": 19, "methods": 0, "variables": 12, "control_structures": 4 }, "generated_at": "2025-08-15T16:19:40.612988492Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/result/mod.rs", "size_bytes": 0, "total_lines": 141, "code_lines": 107, "comment_lines": 10, "empty_lines": 24, "code_ratio": 0.7588652482269503, "analyzed_at": "2025-08-15T16:19:40.616773829Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashResultBox", "parent_class": null, "start_line": 9, "end_line": 12, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "NyashResultBox", "parent_class": null, "start_line": 14, "end_line": 37, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashResultBox", "parent_class": null, "start_line": 39, "end_line": 76, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "NyashResultBox", "parent_class": null, "start_line": 78, "end_line": 109, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "NyashResultBox", "parent_class": null, "start_line": 111, "end_line": 115, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "ResultBox", "parent_class": null, "start_line": 120, "end_line": 141, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new_ok", "start_line": 15, "end_line": 17, "parameters": [ "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new_err", "start_line": 19, "end_line": 21, "parameters": [ "error" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_ok_bool", "start_line": 23, "end_line": 25, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_err", "start_line": 27, "end_line": 29, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "unwrap", "start_line": 31, "end_line": 36, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 40, "end_line": 45, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 48, "end_line": 50, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 52, "end_line": 57, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 60, "end_line": 62, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 65, "end_line": 75, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 79, "end_line": 85, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 87, "end_line": 93, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 95, "end_line": 100, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 102, "end_line": 104, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 106, "end_line": 108, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 112, "end_line": 114, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_ok", "start_line": 122, "end_line": 124, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_value", "start_line": 127, "end_line": 132, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_error", "start_line": 135, "end_line": 140, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 19, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 9, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 14, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_ok", "full_name": "", "start_line": 15, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_err", "full_name": "", "start_line": 19, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_ok_bool", "full_name": "", "start_line": 23, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_err", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "unwrap", "full_name": "", "start_line": 31, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 39, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 40, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 48, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 52, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 60, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 65, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 66, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 78, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 79, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 87, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 95, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 106, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 111, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 112, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 120, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_ok", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_value", "full_name": "", "start_line": 127, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_error", "full_name": "", "start_line": 135, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 29, "max_depth": 6, "node_type_counts": { "class": 6, "file_root": 1, "function": 19, "import": 2, "if_statement": 1 }, "classes": 6, "functions": 19, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.616782997Z" }, { "file_info": { "name": "simple_intent_box.rs", "path": "src/boxes/simple_intent_box.rs", "size_bytes": 0, "total_lines": 248, "code_lines": 69, "comment_lines": 162, "empty_lines": 17, "code_ratio": 0.2782258064516129, "analyzed_at": "2025-08-15T16:19:40.599004151Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "SimpleIntentBox", "parent_class": null, "start_line": 168, "end_line": 172, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 174, "end_line": 183, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 185, "end_line": 192, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 194, "end_line": 214, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 216, "end_line": 242, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 244, "end_line": 248, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "clone", "start_line": 175, "end_line": 182, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 186, "end_line": 191, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 195, "end_line": 197, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 199, "end_line": 201, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 203, "end_line": 205, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 207, "end_line": 209, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 211, "end_line": 213, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 217, "end_line": 219, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 221, "end_line": 227, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 229, "end_line": 231, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 233, "end_line": 235, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 238, "end_line": 240, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 245, "end_line": 247, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 162, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 163, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 164, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 165, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 13, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 162, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 163, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 168, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 174, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 175, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 176, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 185, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 186, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 194, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 199, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 203, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 207, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 211, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 216, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 217, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 221, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 222, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 229, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 233, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 238, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 244, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 245, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 26, "max_depth": 6, "node_type_counts": { "file_root": 1, "variable": 1, "if_statement": 1, "import": 4, "function": 13, "class": 6 }, "classes": 6, "functions": 13, "methods": 0, "variables": 1, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.599018370Z" }, { "file_info": { "name": "socket_box.rs", "path": "src/boxes/socket_box.rs", "size_bytes": 0, "total_lines": 510, "code_lines": 367, "comment_lines": 83, "empty_lines": 60, "code_ratio": 0.7196078431372549, "analyzed_at": "2025-08-15T16:19:40.605776895Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "SocketBox", "parent_class": null, "start_line": 46, "end_line": 55, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "SocketBox", "parent_class": null, "start_line": 57, "end_line": 71, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "SocketBox", "parent_class": null, "start_line": 73, "end_line": 381, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SocketBox", "parent_class": null, "start_line": 383, "end_line": 448, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "SocketBox", "parent_class": null, "start_line": 450, "end_line": 496, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "SocketBox", "parent_class": null, "start_line": 498, "end_line": 502, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "SocketBox", "parent_class": null, "start_line": 505, "end_line": 510, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Drop" } } ], "functions": [ { "name": "clone", "start_line": 58, "end_line": 70, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 74, "end_line": 82, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "bind", "start_line": 85, "end_line": 156, "parameters": [ "&self", "address", "port" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "listen", "start_line": 159, "end_line": 185, "parameters": [ "&self", "backlog" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "accept", "start_line": 188, "end_line": 210, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "connect", "start_line": 213, "end_line": 235, "parameters": [ "&self", "address", "port" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "read", "start_line": 238, "end_line": 274, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "read_http_request", "start_line": 277, "end_line": 317, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "write", "start_line": 320, "end_line": 343, "parameters": [ "&self", "data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "close", "start_line": 346, "end_line": 352, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_connected", "start_line": 355, "end_line": 357, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_server", "start_line": 360, "end_line": 380, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clone_box", "start_line": 384, "end_line": 386, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 389, "end_line": 398, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 400, "end_line": 435, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 437, "end_line": 439, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 441, "end_line": 447, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 451, "end_line": 453, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 455, "end_line": 457, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 459, "end_line": 487, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 489, "end_line": 491, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 493, "end_line": 495, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 499, "end_line": 501, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "drop", "start_line": 506, "end_line": 509, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 37, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 38, "metadata": {} }, { "type": "rust_use", "module_path": "std::net::{TcpListener, TcpStream}", "imported_names": [], "alias": null, "line_number": 39, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::{Write, BufRead, BufReader}", "imported_names": [], "alias": null, "line_number": 40, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, RwLock}", "imported_names": [], "alias": null, "line_number": 41, "metadata": {} }, { "type": "rust_use", "module_path": "std::time::Duration", "imported_names": [], "alias": null, "line_number": 42, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 24, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 38, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 39, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 46, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 57, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 58, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 60, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 73, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 74, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bind", "full_name": "", "start_line": 85, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 89, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "listen", "full_name": "", "start_line": 159, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 163, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 168, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "accept", "full_name": "", "start_line": 188, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 189, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 190, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "connect", "full_name": "", "start_line": 213, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 214, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 215, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 217, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 222, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 238, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 240, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 246, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 247, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 252, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 254, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read_http_request", "full_name": "", "start_line": 277, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 278, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 279, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 284, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 286, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 289, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 296, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 320, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 321, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 323, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 324, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "close", "full_name": "", "start_line": 346, "end_line": 352, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_connected", "full_name": "", "start_line": 355, "end_line": 357, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_server", "full_name": "", "start_line": 360, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 383, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 384, "end_line": 386, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 389, "end_line": 398, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 390, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 400, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 404, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 415, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 426, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 426, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 428, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 437, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 441, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 442, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 450, "end_line": 496, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 451, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 455, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 459, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 462, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 470, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 478, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 478, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 480, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 489, "end_line": 491, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 493, "end_line": 495, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 498, "end_line": 502, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 499, "end_line": 501, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SocketBox", "full_name": "", "start_line": 505, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "drop", "full_name": "", "start_line": 506, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 508, "end_line": 508, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 84, "max_depth": 22, "node_type_counts": { "if_statement": 13, "variable": 32, "file_root": 1, "import": 6, "function": 24, "class": 7, "for_loop": 1 }, "classes": 7, "functions": 24, "methods": 0, "variables": 32, "control_structures": 14 }, "generated_at": "2025-08-15T16:19:40.605808493Z" }, { "file_info": { "name": "sound_box.rs", "path": "src/boxes/sound_box.rs", "size_bytes": 0, "total_lines": 371, "code_lines": 177, "comment_lines": 161, "empty_lines": 33, "code_ratio": 0.477088948787062, "analyzed_at": "2025-08-15T16:19:40.599526202Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "SoundBox", "parent_class": null, "start_line": 149, "end_line": 151, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "SoundBox", "parent_class": null, "start_line": 153, "end_line": 314, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SoundBox", "parent_class": null, "start_line": 316, "end_line": 343, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "SoundBox", "parent_class": null, "start_line": 345, "end_line": 365, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "SoundBox", "parent_class": null, "start_line": 367, "end_line": 371, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 154, "end_line": 158, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "beep", "start_line": 161, "end_line": 165, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "beeps", "start_line": 168, "end_line": 185, "parameters": [ "&self", "count" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "tone", "start_line": 188, "end_line": 216, "parameters": [ "&self", "frequency", "duration" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "alert", "start_line": 219, "end_line": 228, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "success", "start_line": 231, "end_line": 237, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "error", "start_line": 240, "end_line": 246, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "pattern", "start_line": 249, "end_line": 284, "parameters": [ "&self", "pattern" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "volumeTest", "start_line": 287, "end_line": 290, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "interval", "start_line": 293, "end_line": 313, "parameters": [ "&self", "times", "interval_ms" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "type_name", "start_line": 317, "end_line": 319, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 321, "end_line": 323, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 325, "end_line": 327, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 330, "end_line": 332, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 334, "end_line": 340, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 346, "end_line": 348, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 350, "end_line": 352, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 354, "end_line": 356, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 358, "end_line": 360, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 362, "end_line": 364, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 368, "end_line": 370, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 141, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 142, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 143, "metadata": {} }, { "type": "rust_use", "module_path": "std::process::Command", "imported_names": [], "alias": null, "line_number": 144, "metadata": {} }, { "type": "rust_use", "module_path": "std::time::Duration", "imported_names": [], "alias": null, "line_number": 145, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 21, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 142, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 143, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SoundBox", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SoundBox", "full_name": "", "start_line": 153, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 154, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "beep", "full_name": "", "start_line": 161, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "beeps", "full_name": "", "start_line": 168, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 170, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 174, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 176, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "tone", "full_name": "", "start_line": 188, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 189, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 193, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "alert", "full_name": "", "start_line": 219, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 221, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 223, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "success", "full_name": "", "start_line": 231, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "error", "full_name": "", "start_line": 240, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "pattern", "full_name": "", "start_line": 249, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 250, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 253, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "volumeTest", "full_name": "", "start_line": 287, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "interval", "full_name": "", "start_line": 293, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 294, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 298, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 302, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 304, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SoundBox", "full_name": "", "start_line": 316, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 317, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 321, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 325, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 330, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 334, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 335, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SoundBox", "full_name": "", "start_line": 345, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 346, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 350, "end_line": 352, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 354, "end_line": 356, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 358, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 362, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SoundBox", "full_name": "", "start_line": 367, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 368, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 48, "max_depth": 12, "node_type_counts": { "import": 5, "file_root": 1, "class": 5, "function": 21, "for_loop": 4, "if_statement": 11, "variable": 1 }, "classes": 5, "functions": 21, "methods": 0, "variables": 1, "control_structures": 15 }, "generated_at": "2025-08-15T16:19:40.599545613Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/stream/mod.rs", "size_bytes": 0, "total_lines": 230, "code_lines": 178, "comment_lines": 18, "empty_lines": 34, "code_ratio": 0.7739130434782608, "analyzed_at": "2025-08-15T16:19:40.620228502Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashStreamBox", "parent_class": null, "start_line": 12, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 18, "end_line": 136, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 138, "end_line": 171, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 173, "end_line": 195, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 198, "end_line": 208, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 211, "end_line": 221, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Debug", "type": "impl" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 223, "end_line": 227, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 19, "end_line": 25, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "from_data", "start_line": 27, "end_line": 33, "parameters": [ "data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "read", "start_line": 35, "end_line": 49, "parameters": [ "&self", "buf: &mut [u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "write", "start_line": 51, "end_line": 55, "parameters": [ "&self", "buf: &[u8]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "len", "start_line": 57, "end_line": 59, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "position", "start_line": 61, "end_line": 63, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "reset", "start_line": 65, "end_line": 67, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "stream_write", "start_line": 70, "end_line": 101, "parameters": [ "&self", "data" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "stream_read", "start_line": 104, "end_line": 119, "parameters": [ "&self", "count" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_position", "start_line": 122, "end_line": 124, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_length", "start_line": 127, "end_line": 129, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "stream_reset", "start_line": 132, "end_line": 135, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 139, "end_line": 141, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 144, "end_line": 146, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 148, "end_line": 152, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 155, "end_line": 157, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 160, "end_line": 170, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 174, "end_line": 176, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 178, "end_line": 180, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 182, "end_line": 186, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 188, "end_line": 190, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 192, "end_line": 194, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone", "start_line": 199, "end_line": 207, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 212, "end_line": 220, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 224, "end_line": 226, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, IntegerBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 5, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::buffer::BufferBox", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::RwLock", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::{Read, Write, Result}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 25, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 5, "end_line": 5, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 12, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 18, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 19, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_data", "full_name": "", "start_line": 27, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 35, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 39, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 40, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 42, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 51, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "len", "full_name": "", "start_line": 57, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "position", "full_name": "", "start_line": 61, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stream_write", "full_name": "", "start_line": 70, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 72, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 74, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 76, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 79, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 80, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 93, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stream_read", "full_name": "", "start_line": 104, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 106, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_position", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_length", "full_name": "", "start_line": 127, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stream_reset", "full_name": "", "start_line": 132, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 138, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 139, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 144, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 148, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 150, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 155, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 160, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 161, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 162, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 163, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 173, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 178, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 182, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 183, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 184, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 188, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 192, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 198, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 199, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 211, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 212, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 213, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 214, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 223, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 224, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 70, "max_depth": 18, "node_type_counts": { "import": 6, "if_statement": 8, "function": 25, "variable": 22, "for_loop": 1, "class": 7, "file_root": 1 }, "classes": 7, "functions": 25, "methods": 0, "variables": 22, "control_structures": 9 }, "generated_at": "2025-08-15T16:19:40.620245263Z" }, { "file_info": { "name": "string_box.rs", "path": "src/boxes/string_box.rs", "size_bytes": 0, "total_lines": 187, "code_lines": 118, "comment_lines": 43, "empty_lines": 26, "code_ratio": 0.6310160427807486, "analyzed_at": "2025-08-15T16:19:40.602560322Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "StringBox", "parent_class": null, "start_line": 36, "end_line": 39, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "StringBox", "parent_class": null, "start_line": 41, "end_line": 130, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 132, "end_line": 159, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 161, "end_line": 181, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 183, "end_line": 187, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 42, "end_line": 47, "parameters": [ "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "empty", "start_line": 49, "end_line": 51, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "split", "start_line": 56, "end_line": 67, "parameters": [ "&self", "delimiter: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 58, "end_line": 58, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 60, "end_line": 60, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "find", "start_line": 70, "end_line": 76, "parameters": [ "&self", "search: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "replace", "start_line": 79, "end_line": 81, "parameters": [ "&self", "old: &str", "new: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "trim", "start_line": 84, "end_line": 86, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_upper", "start_line": 89, "end_line": 91, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_lower", "start_line": 94, "end_line": 96, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "contains", "start_line": 99, "end_line": 102, "parameters": [ "&self", "search: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "starts_with", "start_line": 105, "end_line": 108, "parameters": [ "&self", "prefix: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "ends_with", "start_line": 111, "end_line": 114, "parameters": [ "&self", "suffix: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "join", "start_line": 117, "end_line": 129, "parameters": [ "&self", "array_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 122, "end_line": 122, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "to_string_box", "start_line": 133, "end_line": 135, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 137, "end_line": 144, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 146, "end_line": 148, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 151, "end_line": 153, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 156, "end_line": 158, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 162, "end_line": 164, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 166, "end_line": 168, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 170, "end_line": 172, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 174, "end_line": 176, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 178, "end_line": 180, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 184, "end_line": 186, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 30, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 31, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Display", "imported_names": [], "alias": null, "line_number": 32, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 57, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::IntegerBox", "imported_names": [], "alias": null, "line_number": 71, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::BoolBox", "imported_names": [], "alias": null, "line_number": 100, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::BoolBox", "imported_names": [], "alias": null, "line_number": 106, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::BoolBox", "imported_names": [], "alias": null, "line_number": 112, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 118, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::BoolBox", "imported_names": [], "alias": null, "line_number": 138, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 26, "import_count": 10, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 30, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 31, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 32, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 36, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 41, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 42, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "empty", "full_name": "", "start_line": 49, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "split", "full_name": "", "start_line": 56, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 58, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 59, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 62, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 63, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find", "full_name": "", "start_line": 70, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 71, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "replace", "full_name": "", "start_line": 79, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "trim", "full_name": "", "start_line": 84, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_upper", "full_name": "", "start_line": 89, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_lower", "full_name": "", "start_line": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains", "full_name": "", "start_line": 99, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "starts_with", "full_name": "", "start_line": 105, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 106, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ends_with", "full_name": "", "start_line": 111, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 112, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "join", "full_name": "", "start_line": 117, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 118, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 119, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 120, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 132, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 133, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 137, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 138, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 139, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 146, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 151, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 161, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 162, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 166, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 170, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 178, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 183, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 184, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 46, "max_depth": 8, "node_type_counts": { "if_statement": 2, "import": 10, "for_loop": 1, "function": 23, "class": 5, "file_root": 1, "variable": 4 }, "classes": 5, "functions": 23, "methods": 0, "variables": 4, "control_structures": 3 }, "generated_at": "2025-08-15T16:19:40.602570109Z" }, { "file_info": { "name": "timer_box.rs", "path": "src/boxes/timer_box.rs", "size_bytes": 0, "total_lines": 247, "code_lines": 158, "comment_lines": 57, "empty_lines": 32, "code_ratio": 0.6396761133603239, "analyzed_at": "2025-08-15T16:19:40.602937137Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "TimerBox", "parent_class": null, "start_line": 59, "end_line": 63, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "TimerBox", "parent_class": null, "start_line": 65, "end_line": 192, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 194, "end_line": 214, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "TimerBox", "parent_class": null, "start_line": 216, "end_line": 241, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 243, "end_line": 247, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 66, "end_line": 75, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 68, "end_line": 68, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "now", "start_line": 78, "end_line": 96, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "performance_now", "start_line": 99, "end_line": 101, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_timeout", "start_line": 105, "end_line": 112, "parameters": [ "&self", "callback: &js_sys::Function", "delay: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_interval", "start_line": 116, "end_line": 123, "parameters": [ "&self", "callback: &js_sys::Function", "interval: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clear_timeout", "start_line": 127, "end_line": 131, "parameters": [ "&self", "id: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear_interval", "start_line": 135, "end_line": 139, "parameters": [ "&self", "id: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "request_animation_frame", "start_line": 143, "end_line": 149, "parameters": [ "&self", "callback: &js_sys::Function" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "cancel_animation_frame", "start_line": 153, "end_line": 157, "parameters": [ "&self", "id: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_timeout", "start_line": 161, "end_line": 164, "parameters": [ "&self", "_delay: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_interval", "start_line": 167, "end_line": 170, "parameters": [ "&self", "_interval: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear_timeout", "start_line": 173, "end_line": 175, "parameters": [ "&self", "_id: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear_interval", "start_line": 178, "end_line": 180, "parameters": [ "&self", "_id: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "request_animation_frame", "start_line": 183, "end_line": 186, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "cancel_animation_frame", "start_line": 189, "end_line": 191, "parameters": [ "&self", "_id: i32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 195, "end_line": 197, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 199, "end_line": 201, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 203, "end_line": 205, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 207, "end_line": 209, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 211, "end_line": 213, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 217, "end_line": 219, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 222, "end_line": 224, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 226, "end_line": 228, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 230, "end_line": 232, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 234, "end_line": 240, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 244, "end_line": 246, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 48, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 49, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 52, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{window, Performance}", "imported_names": [], "alias": null, "line_number": 55, "metadata": {} }, { "type": "rust_use", "module_path": "std::time::{SystemTime, UNIX_EPOCH}", "imported_names": [], "alias": null, "line_number": 90, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 27, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 48, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 59, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 65, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 66, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 68, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "now", "full_name": "", "start_line": 78, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "performance_now", "full_name": "", "start_line": 99, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_timeout", "full_name": "", "start_line": 105, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 106, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_interval", "full_name": "", "start_line": 116, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 117, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear_timeout", "full_name": "", "start_line": 127, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 128, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear_interval", "full_name": "", "start_line": 135, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 136, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "request_animation_frame", "full_name": "", "start_line": 143, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 144, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "cancel_animation_frame", "full_name": "", "start_line": 153, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_timeout", "full_name": "", "start_line": 161, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_interval", "full_name": "", "start_line": 167, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear_timeout", "full_name": "", "start_line": 173, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear_interval", "full_name": "", "start_line": 178, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "request_animation_frame", "full_name": "", "start_line": 183, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "cancel_animation_frame", "full_name": "", "start_line": 189, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 194, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 199, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 203, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 207, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 211, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 216, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 217, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 222, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 226, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 230, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 234, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 235, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 243, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 244, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 46, "max_depth": 8, "node_type_counts": { "function": 26, "variable": 1, "file_root": 1, "import": 5, "class": 5, "if_statement": 8 }, "classes": 5, "functions": 26, "methods": 0, "variables": 1, "control_structures": 8 }, "generated_at": "2025-08-15T16:19:40.602951139Z" }, { "file_info": { "name": "time_box.rs", "path": "src/boxes/time_box.rs", "size_bytes": 0, "total_lines": 509, "code_lines": 298, "comment_lines": 148, "empty_lines": 63, "code_ratio": 0.5854616895874263, "analyzed_at": "2025-08-15T16:19:40.605455941Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "TimeBox", "parent_class": null, "start_line": 129, "end_line": 131, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TimeBox", "parent_class": null, "start_line": 133, "end_line": 188, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TimeBox", "parent_class": null, "start_line": 190, "end_line": 216, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "TimeBox", "parent_class": null, "start_line": 218, "end_line": 238, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "TimeBox", "parent_class": null, "start_line": 240, "end_line": 244, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 248, "end_line": 251, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 253, "end_line": 364, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 366, "end_line": 392, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 394, "end_line": 414, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 416, "end_line": 420, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 424, "end_line": 427, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "TimerBox", "parent_class": null, "start_line": 429, "end_line": 453, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 455, "end_line": 481, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 483, "end_line": 503, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 505, "end_line": 509, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 134, "end_line": 136, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "now", "start_line": 139, "end_line": 141, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "fromTimestamp", "start_line": 144, "end_line": 150, "parameters": [ "&self", "timestamp" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "parse", "start_line": 153, "end_line": 162, "parameters": [ "&self", "date_str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "sleep", "start_line": 165, "end_line": 176, "parameters": [ "&self", "millis" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "format", "start_line": 179, "end_line": 187, "parameters": [ "&self", "format_str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "start_line": 191, "end_line": 193, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 195, "end_line": 197, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 199, "end_line": 201, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 204, "end_line": 206, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 208, "end_line": 214, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 219, "end_line": 221, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 223, "end_line": 225, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 227, "end_line": 229, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 231, "end_line": 233, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 235, "end_line": 237, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 241, "end_line": 243, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "now", "start_line": 255, "end_line": 260, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "from_timestamp", "start_line": 263, "end_line": 266, "parameters": [ "timestamp: i64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "parse", "start_line": 269, "end_line": 287, "parameters": [ "date_str: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "year", "start_line": 290, "end_line": 292, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "month", "start_line": 295, "end_line": 297, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "day", "start_line": 300, "end_line": 302, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "hour", "start_line": 305, "end_line": 307, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "minute", "start_line": 310, "end_line": 312, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "second", "start_line": 315, "end_line": 317, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "timestamp", "start_line": 320, "end_line": 322, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "toISOString", "start_line": 325, "end_line": 327, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "format", "start_line": 330, "end_line": 337, "parameters": [ "&self", "fmt" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "addDays", "start_line": 340, "end_line": 350, "parameters": [ "&self", "days" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "addHours", "start_line": 353, "end_line": 363, "parameters": [ "&self", "hours" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "type_name", "start_line": 367, "end_line": 369, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 371, "end_line": 373, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 375, "end_line": 377, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 380, "end_line": 382, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 384, "end_line": 390, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 395, "end_line": 397, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 399, "end_line": 401, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 403, "end_line": 405, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 407, "end_line": 409, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 411, "end_line": 413, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 417, "end_line": 419, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 430, "end_line": 435, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "elapsed", "start_line": 438, "end_line": 446, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "reset", "start_line": 449, "end_line": 452, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "start_line": 456, "end_line": 458, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 460, "end_line": 462, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 464, "end_line": 466, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 469, "end_line": 471, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 473, "end_line": 479, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 484, "end_line": 486, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 488, "end_line": 490, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 492, "end_line": 494, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 496, "end_line": 498, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 500, "end_line": 502, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 506, "end_line": 508, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 121, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 122, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 123, "metadata": {} }, { "type": "rust_use", "module_path": "std::time::{SystemTime, Duration}", "imported_names": [], "alias": null, "line_number": 124, "metadata": {} }, { "type": "rust_use", "module_path": "chrono::{DateTime, Local, TimeZone, Datelike, Timelike}", "imported_names": [], "alias": null, "line_number": 125, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 15, "function_count": 56, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 121, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 122, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 123, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 124, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 133, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 134, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "now", "full_name": "", "start_line": 139, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fromTimestamp", "full_name": "", "start_line": 144, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 145, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "full_name": "", "start_line": 153, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 154, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sleep", "full_name": "", "start_line": 165, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 166, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 167, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "format", "full_name": "", "start_line": 179, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 180, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 181, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 182, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 190, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 191, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 199, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 204, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 208, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 218, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 219, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 223, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 227, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 235, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 240, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 241, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 248, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 253, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "now", "full_name": "", "start_line": 255, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_timestamp", "full_name": "", "start_line": 263, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 264, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "full_name": "", "start_line": 269, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 280, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "year", "full_name": "", "start_line": 290, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "month", "full_name": "", "start_line": 295, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "day", "full_name": "", "start_line": 300, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "hour", "full_name": "", "start_line": 305, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "minute", "full_name": "", "start_line": 310, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "second", "full_name": "", "start_line": 315, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "timestamp", "full_name": "", "start_line": 320, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "toISOString", "full_name": "", "start_line": 325, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "format", "full_name": "", "start_line": 330, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 331, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 332, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "addDays", "full_name": "", "start_line": 340, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 341, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 342, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "addHours", "full_name": "", "start_line": 353, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 354, "end_line": 362, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 355, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 366, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 367, "end_line": 369, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 371, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 375, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 380, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 384, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 385, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 394, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 395, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 399, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 403, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 407, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 411, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 416, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 417, "end_line": 419, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 424, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 429, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 430, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "elapsed", "full_name": "", "start_line": 438, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 441, "end_line": 441, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 449, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 455, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 456, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 460, "end_line": 462, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 464, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 469, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 473, "end_line": 479, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 474, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 483, "end_line": 503, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 484, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 488, "end_line": 490, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 492, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 496, "end_line": 498, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 500, "end_line": 502, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 505, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 506, "end_line": 508, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 96, "max_depth": 15, "node_type_counts": { "file_root": 1, "if_statement": 11, "function": 56, "variable": 8, "import": 5, "class": 15 }, "classes": 15, "functions": 56, "methods": 0, "variables": 8, "control_structures": 11 }, "generated_at": "2025-08-15T16:19:40.605483217Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/web/mod.rs", "size_bytes": 0, "total_lines": 24, "code_lines": 12, "comment_lines": 6, "empty_lines": 6, "code_ratio": 0.5, "analyzed_at": "2025-08-15T16:19:40.607801797Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "web_display_box::WebDisplayBox", "imported_names": [], "alias": null, "line_number": 18, "metadata": {} }, { "type": "rust_use", "module_path": "web_console_box::WebConsoleBox", "imported_names": [], "alias": null, "line_number": 21, "metadata": {} }, { "type": "rust_use", "module_path": "web_canvas_box::WebCanvasBox", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 0, "function_count": 0, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 18, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 24, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 4, "max_depth": 1, "node_type_counts": { "import": 3, "file_root": 1 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.607803166Z" }, { "file_info": { "name": "web_canvas_box.rs", "path": "src/boxes/web/web_canvas_box.rs", "size_bytes": 0, "total_lines": 324, "code_lines": 241, "comment_lines": 35, "empty_lines": 48, "code_ratio": 0.7438271604938271, "analyzed_at": "2025-08-15T16:19:40.607740196Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WebCanvasBox", "parent_class": null, "start_line": 23, "end_line": 28, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "WebCanvasBox", "parent_class": null, "start_line": 31, "end_line": 262, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "WebCanvasBox", "parent_class": null, "start_line": 265, "end_line": 282, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "WebCanvasBox", "parent_class": null, "start_line": 285, "end_line": 317, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "WebCanvasBox", "parent_class": null, "start_line": 320, "end_line": 324, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 32, "end_line": 47, "parameters": [ "canvas_id: String", "width: u32", "height: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_canvas_element", "start_line": 50, "end_line": 55, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_2d_context", "start_line": 58, "end_line": 64, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 63, "end_line": 63, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "clear", "start_line": 67, "end_line": 71, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_fill_style", "start_line": 74, "end_line": 78, "parameters": [ "&self", "color: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_stroke_style", "start_line": 81, "end_line": 85, "parameters": [ "&self", "color: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_line_width", "start_line": 88, "end_line": 92, "parameters": [ "&self", "width: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fill_rect", "start_line": 95, "end_line": 100, "parameters": [ "&self", "x: f64", "y: f64", "width: f64", "height: f64", "color: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "stroke_rect", "start_line": 103, "end_line": 109, "parameters": [ "&self", "x: f64", "y: f64", "width: f64", "height: f64", "color: &str", "line_width: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "fill_circle", "start_line": 112, "end_line": 119, "parameters": [ "&self", "x: f64", "y: f64", "radius: f64", "color: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "stroke_circle", "start_line": 122, "end_line": 130, "parameters": [ "&self", "x: f64", "y: f64", "radius: f64", "color: &str", "line_width: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "draw_line", "start_line": 133, "end_line": 142, "parameters": [ "&self", "x1: f64", "y1: f64", "x2: f64", "y2: f64", "color: &str", "line_width: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "fill_text", "start_line": 145, "end_line": 151, "parameters": [ "&self", "text: &str", "x: f64", "y: f64", "font: &str", "color: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "stroke_text", "start_line": 154, "end_line": 161, "parameters": [ "&self", "text: &str", "x: f64", "y: f64", "font: &str", "color: &str", "line_width: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "begin_path", "start_line": 164, "end_line": 168, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "move_to", "start_line": 171, "end_line": 175, "parameters": [ "&self", "x: f64", "y: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "line_to", "start_line": 178, "end_line": 182, "parameters": [ "&self", "x: f64", "y: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "close_path", "start_line": 185, "end_line": 189, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fill", "start_line": 192, "end_line": 197, "parameters": [ "&self", "color: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "stroke", "start_line": 200, "end_line": 206, "parameters": [ "&self", "color: &str", "line_width: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "save", "start_line": 209, "end_line": 213, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "restore", "start_line": 216, "end_line": 220, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "rotate", "start_line": 223, "end_line": 227, "parameters": [ "&self", "angle: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "scale", "start_line": 230, "end_line": 234, "parameters": [ "&self", "x: f64", "y: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "translate", "start_line": 237, "end_line": 241, "parameters": [ "&self", "x: f64", "y: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_width", "start_line": 244, "end_line": 246, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_height", "start_line": 248, "end_line": 250, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "resize", "start_line": 253, "end_line": 261, "parameters": [ "&mut self", "width: u32", "height: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 266, "end_line": 268, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 270, "end_line": 272, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 274, "end_line": 276, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 279, "end_line": 281, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 286, "end_line": 288, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 291, "end_line": 293, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 295, "end_line": 302, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 305, "end_line": 307, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 310, "end_line": 316, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 321, "end_line": 323, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{\n HtmlCanvasElement, \n CanvasRenderingContext2d,\n}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 39, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebCanvasBox", "full_name": "", "start_line": 23, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebCanvasBox", "full_name": "", "start_line": 31, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 32, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 33, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 41, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_canvas_element", "full_name": "", "start_line": 50, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 51, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_2d_context", "full_name": "", "start_line": 58, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 67, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 68, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_fill_style", "full_name": "", "start_line": 74, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 75, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_stroke_style", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_line_width", "full_name": "", "start_line": 88, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 89, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fill_rect", "full_name": "", "start_line": 95, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 96, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stroke_rect", "full_name": "", "start_line": 103, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 104, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fill_circle", "full_name": "", "start_line": 112, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 113, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stroke_circle", "full_name": "", "start_line": 122, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 123, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "draw_line", "full_name": "", "start_line": 133, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 134, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fill_text", "full_name": "", "start_line": 145, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 146, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stroke_text", "full_name": "", "start_line": 154, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 155, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "begin_path", "full_name": "", "start_line": 164, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 165, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "move_to", "full_name": "", "start_line": 171, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 172, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "line_to", "full_name": "", "start_line": 178, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 179, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "close_path", "full_name": "", "start_line": 185, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fill", "full_name": "", "start_line": 192, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 193, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stroke", "full_name": "", "start_line": 200, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 201, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "save", "full_name": "", "start_line": 209, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 210, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "restore", "full_name": "", "start_line": 216, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 217, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "rotate", "full_name": "", "start_line": 223, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 224, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "scale", "full_name": "", "start_line": 230, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "translate", "full_name": "", "start_line": 237, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 238, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_width", "full_name": "", "start_line": 244, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_height", "full_name": "", "start_line": 248, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resize", "full_name": "", "start_line": 253, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 257, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebCanvasBox", "full_name": "", "start_line": 265, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 266, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 270, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 279, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebCanvasBox", "full_name": "", "start_line": 285, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 286, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 291, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 295, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 305, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 310, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 311, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebCanvasBox", "full_name": "", "start_line": 320, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 321, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 78, "max_depth": 6, "node_type_counts": { "if_statement": 25, "class": 5, "file_root": 1, "import": 4, "function": 38, "variable": 5 }, "classes": 5, "functions": 38, "methods": 0, "variables": 5, "control_structures": 25 }, "generated_at": "2025-08-15T16:19:40.607755773Z" }, { "file_info": { "name": "web_console_box.rs", "path": "src/boxes/web/web_console_box.rs", "size_bytes": 0, "total_lines": 196, "code_lines": 143, "comment_lines": 20, "empty_lines": 33, "code_ratio": 0.7295918367346939, "analyzed_at": "2025-08-15T16:19:40.607646876Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WebConsoleBox", "parent_class": null, "start_line": 20, "end_line": 23, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "WebConsoleBox", "parent_class": null, "start_line": 26, "end_line": 139, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "WebConsoleBox", "parent_class": null, "start_line": 142, "end_line": 159, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "WebConsoleBox", "parent_class": null, "start_line": 162, "end_line": 189, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "WebConsoleBox", "parent_class": null, "start_line": 192, "end_line": 196, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 27, "end_line": 32, "parameters": [ "element_id: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_target_element", "start_line": 35, "end_line": 39, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "append_console_line", "start_line": 42, "end_line": 73, "parameters": [ "&self", "message: &str", "level: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "log", "start_line": 76, "end_line": 78, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "warn", "start_line": 81, "end_line": 83, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "error", "start_line": 86, "end_line": 88, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "info", "start_line": 91, "end_line": 93, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "debug", "start_line": 96, "end_line": 98, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 101, "end_line": 105, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "separator", "start_line": 108, "end_line": 115, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "group", "start_line": 118, "end_line": 128, "parameters": [ "&self", "title: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "group_end", "start_line": 131, "end_line": 138, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 143, "end_line": 145, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 147, "end_line": 149, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 151, "end_line": 153, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 156, "end_line": 158, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 163, "end_line": 165, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 168, "end_line": 170, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 172, "end_line": 174, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 177, "end_line": 179, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 182, "end_line": 188, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 193, "end_line": 195, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{Element, HtmlElement}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 22, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebConsoleBox", "full_name": "", "start_line": 20, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebConsoleBox", "full_name": "", "start_line": 26, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 27, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_target_element", "full_name": "", "start_line": 35, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "append_console_line", "full_name": "", "start_line": 42, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 43, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 45, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 47, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 56, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 69, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "log", "full_name": "", "start_line": 76, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "warn", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "error", "full_name": "", "start_line": 86, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "info", "full_name": "", "start_line": 91, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "debug", "full_name": "", "start_line": 96, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 101, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "separator", "full_name": "", "start_line": 108, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 109, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 110, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 112, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "group", "full_name": "", "start_line": 118, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 119, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 120, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 121, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "group_end", "full_name": "", "start_line": 131, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 132, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 133, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 134, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 135, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebConsoleBox", "full_name": "", "start_line": 142, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 143, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 147, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 151, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebConsoleBox", "full_name": "", "start_line": 162, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 163, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 168, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 172, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 177, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 182, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebConsoleBox", "full_name": "", "start_line": 192, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 193, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 56, "max_depth": 9, "node_type_counts": { "file_root": 1, "variable": 17, "import": 4, "function": 22, "if_statement": 7, "class": 5 }, "classes": 5, "functions": 22, "methods": 0, "variables": 17, "control_structures": 7 }, "generated_at": "2025-08-15T16:19:40.607657Z" }, { "file_info": { "name": "web_display_box.rs", "path": "src/boxes/web/web_display_box.rs", "size_bytes": 0, "total_lines": 189, "code_lines": 138, "comment_lines": 21, "empty_lines": 30, "code_ratio": 0.7301587301587301, "analyzed_at": "2025-08-15T16:19:40.610245248Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WebDisplayBox", "parent_class": null, "start_line": 20, "end_line": 23, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "WebDisplayBox", "parent_class": null, "start_line": 26, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "WebDisplayBox", "parent_class": null, "start_line": 135, "end_line": 152, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "WebDisplayBox", "parent_class": null, "start_line": 155, "end_line": 182, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "WebDisplayBox", "parent_class": null, "start_line": 185, "end_line": 189, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 27, "end_line": 32, "parameters": [ "element_id: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_target_element", "start_line": 35, "end_line": 39, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "print", "start_line": 42, "end_line": 52, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "println", "start_line": 55, "end_line": 65, "parameters": [ "&self", "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_html", "start_line": 68, "end_line": 72, "parameters": [ "&self", "html_content: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "append_html", "start_line": 75, "end_line": 81, "parameters": [ "&self", "html_content: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_css", "start_line": 84, "end_line": 91, "parameters": [ "&self", "property: &str", "value: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_class", "start_line": 94, "end_line": 98, "parameters": [ "&self", "class_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "remove_class", "start_line": 101, "end_line": 105, "parameters": [ "&self", "class_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "clear", "start_line": 108, "end_line": 112, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "show", "start_line": 115, "end_line": 117, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "hide", "start_line": 120, "end_line": 122, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "scroll_to_bottom", "start_line": 125, "end_line": 131, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 136, "end_line": 138, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 140, "end_line": 142, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 144, "end_line": 146, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 149, "end_line": 151, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 156, "end_line": 158, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 161, "end_line": 163, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 165, "end_line": 167, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 170, "end_line": 172, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 175, "end_line": 181, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 186, "end_line": 188, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "web_sys::{Element, HtmlElement}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 23, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebDisplayBox", "full_name": "", "start_line": 20, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebDisplayBox", "full_name": "", "start_line": 26, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 27, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_target_element", "full_name": "", "start_line": 35, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 37, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "print", "full_name": "", "start_line": 42, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 43, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 45, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 45, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "println", "full_name": "", "start_line": 55, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 56, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 58, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 58, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_html", "full_name": "", "start_line": 68, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 69, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "append_html", "full_name": "", "start_line": 75, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 76, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_css", "full_name": "", "start_line": 84, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 85, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 86, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_class", "full_name": "", "start_line": 94, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 95, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "remove_class", "full_name": "", "start_line": 101, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 103, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 108, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 109, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "show", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "hide", "full_name": "", "start_line": 120, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "scroll_to_bottom", "full_name": "", "start_line": 125, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 126, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 127, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebDisplayBox", "full_name": "", "start_line": 135, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 136, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 144, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebDisplayBox", "full_name": "", "start_line": 155, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 161, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 165, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 170, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 175, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 176, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebDisplayBox", "full_name": "", "start_line": 185, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 58, "max_depth": 11, "node_type_counts": { "function": 23, "file_root": 1, "class": 5, "variable": 11, "import": 4, "if_statement": 14 }, "classes": 5, "functions": 23, "methods": 0, "variables": 11, "control_structures": 14 }, "generated_at": "2025-08-15T16:19:40.610254948Z" }, { "file_info": { "name": "box_arithmetic.rs", "path": "src/box_arithmetic.rs", "size_bytes": 0, "total_lines": 742, "code_lines": 591, "comment_lines": 54, "empty_lines": 97, "code_ratio": 0.7964959568733153, "analyzed_at": "2025-08-15T16:19:40.605486849Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "AddBox", "parent_class": null, "start_line": 15, "end_line": 19, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "AddBox", "parent_class": null, "start_line": 21, "end_line": 76, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "AddBox", "parent_class": null, "start_line": 78, "end_line": 86, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Debug" } }, { "name": "AddBox", "parent_class": null, "start_line": 88, "end_line": 120, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "AddBox", "parent_class": null, "start_line": 122, "end_line": 142, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "AddBox", "parent_class": null, "start_line": 144, "end_line": 148, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 151, "end_line": 155, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 157, "end_line": 192, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 194, "end_line": 202, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 204, "end_line": 230, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 232, "end_line": 240, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 242, "end_line": 246, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 249, "end_line": 253, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 255, "end_line": 289, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 291, "end_line": 299, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Debug" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 301, "end_line": 327, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 329, "end_line": 337, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 339, "end_line": 343, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "DivideBox", "parent_class": null, "start_line": 346, "end_line": 350, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "DivideBox", "parent_class": null, "start_line": 352, "end_line": 395, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "DivideBox", "parent_class": null, "start_line": 397, "end_line": 405, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } }, { "name": "DivideBox", "parent_class": null, "start_line": 407, "end_line": 433, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "DivideBox", "parent_class": null, "start_line": 435, "end_line": 443, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "DivideBox", "parent_class": null, "start_line": 445, "end_line": 449, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "ModuloBox", "parent_class": null, "start_line": 452, "end_line": 456, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ModuloBox", "parent_class": null, "start_line": 458, "end_line": 499, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ModuloBox", "parent_class": null, "start_line": 501, "end_line": 508, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Debug" } }, { "name": "ModuloBox", "parent_class": null, "start_line": 510, "end_line": 524, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ModuloBox", "parent_class": null, "start_line": 526, "end_line": 555, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "ModuloBox", "parent_class": null, "start_line": 557, "end_line": 561, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "CompareBox", "parent_class": null, "start_line": 564, "end_line": 564, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "CompareBox", "parent_class": null, "start_line": 566, "end_line": 635, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 22, "end_line": 28, "parameters": [ "left", "right" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute", "start_line": 31, "end_line": 75, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 79, "end_line": 85, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 89, "end_line": 92, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 94, "end_line": 103, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 105, "end_line": 107, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 109, "end_line": 114, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 117, "end_line": 119, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 123, "end_line": 125, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 127, "end_line": 129, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 131, "end_line": 133, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 135, "end_line": 137, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 139, "end_line": 141, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 145, "end_line": 147, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 158, "end_line": 164, "parameters": [ "left", "right" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute", "start_line": 167, "end_line": 191, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 195, "end_line": 201, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 205, "end_line": 208, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 210, "end_line": 219, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 221, "end_line": 221, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 222, "end_line": 224, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 227, "end_line": 229, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 233, "end_line": 233, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 234, "end_line": 234, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 235, "end_line": 237, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 238, "end_line": 238, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 239, "end_line": 239, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 243, "end_line": 245, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 256, "end_line": 262, "parameters": [ "left", "right" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute", "start_line": 265, "end_line": 288, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 292, "end_line": 298, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 302, "end_line": 305, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 307, "end_line": 316, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 318, "end_line": 318, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 319, "end_line": 321, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 324, "end_line": 326, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 330, "end_line": 330, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 331, "end_line": 331, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 332, "end_line": 334, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 335, "end_line": 335, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 336, "end_line": 336, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 340, "end_line": 342, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 353, "end_line": 359, "parameters": [ "left", "right" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "execute", "start_line": 362, "end_line": 394, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "fmt", "start_line": 398, "end_line": 404, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 408, "end_line": 411, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 413, "end_line": 422, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 424, "end_line": 424, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 425, "end_line": 427, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 430, "end_line": 432, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 436, "end_line": 436, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 437, "end_line": 437, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 438, "end_line": 440, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 441, "end_line": 441, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 442, "end_line": 442, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 446, "end_line": 448, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 459, "end_line": 465, "parameters": [ "left", "right" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute", "start_line": 468, "end_line": 498, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 502, "end_line": 507, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 511, "end_line": 511, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 512, "end_line": 512, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 513, "end_line": 515, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 517, "end_line": 519, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 521, "end_line": 523, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 527, "end_line": 530, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 532, "end_line": 541, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 543, "end_line": 545, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 547, "end_line": 549, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 552, "end_line": 554, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 558, "end_line": 560, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 568, "end_line": 570, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "less", "start_line": 573, "end_line": 586, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "greater", "start_line": 589, "end_line": 602, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "less_equal", "start_line": 605, "end_line": 618, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "greater_equal", "start_line": 621, "end_line": 634, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_add_box_integers", "start_line": 642, "end_line": 649, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_add_box_strings", "start_line": 652, "end_line": 659, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_subtract_box", "start_line": 662, "end_line": 669, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_multiply_box", "start_line": 672, "end_line": 679, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_divide_box", "start_line": 682, "end_line": 690, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_divide_by_zero", "start_line": 693, "end_line": 700, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_modulo_box", "start_line": 703, "end_line": 710, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_modulo_by_zero", "start_line": 713, "end_line": 720, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_modulo_chip8_pattern", "start_line": 723, "end_line": 731, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_compare_box", "start_line": 734, "end_line": 741, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, BoxCore, StringBox, IntegerBox, BoolBox, VoidBox, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::FloatBox", "imported_names": [], "alias": null, "line_number": 32, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::FloatBox", "imported_names": [], "alias": null, "line_number": 363, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 639, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 32, "function_count": 85, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 15, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 21, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 22, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 31, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 32, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 35, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 39, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 44, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 48, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 53, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 62, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 71, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 73, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 78, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 79, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 88, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 89, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 94, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 95, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 105, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 109, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 117, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 122, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 123, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 127, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 131, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 135, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 139, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 144, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 145, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 151, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 157, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 158, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 167, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 173, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 178, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 183, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 188, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 194, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 195, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 204, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 205, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 206, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 210, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 211, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 221, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 222, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 227, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 232, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 233, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 235, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 238, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 242, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 243, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 249, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 255, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 256, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 265, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 267, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 271, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 275, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 280, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 280, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 291, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 292, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 301, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 302, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 303, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 307, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 308, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 318, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 319, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 324, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 329, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 330, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 331, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 332, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 335, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 339, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 340, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 346, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 352, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 353, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 362, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 363, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 366, "end_line": 393, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 370, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 374, "end_line": 374, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 378, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 378, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 383, "end_line": 387, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 383, "end_line": 387, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 388, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 391, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 397, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 398, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 407, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 408, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 409, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 413, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 414, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 424, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 425, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 430, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 435, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 436, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 438, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 441, "end_line": 441, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 442, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 445, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 446, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuloBox", "full_name": "", "start_line": 452, "end_line": 456, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuloBox", "full_name": "", "start_line": 458, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 459, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 468, "end_line": 498, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 470, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 474, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 478, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 482, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 482, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 487, "end_line": 491, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 487, "end_line": 491, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 492, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 495, "end_line": 495, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuloBox", "full_name": "", "start_line": 501, "end_line": 508, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 502, "end_line": 507, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuloBox", "full_name": "", "start_line": 510, "end_line": 524, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 511, "end_line": 511, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 512, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 513, "end_line": 515, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 517, "end_line": 519, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 521, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuloBox", "full_name": "", "start_line": 526, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 527, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 528, "end_line": 528, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 532, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 533, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 543, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 547, "end_line": 549, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 552, "end_line": 554, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuloBox", "full_name": "", "start_line": 557, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 558, "end_line": 560, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareBox", "full_name": "", "start_line": 564, "end_line": 564, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareBox", "full_name": "", "start_line": 566, "end_line": 635, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 568, "end_line": 570, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "less", "full_name": "", "start_line": 573, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 575, "end_line": 580, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 583, "end_line": 583, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 584, "end_line": 584, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "greater", "full_name": "", "start_line": 589, "end_line": 602, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 591, "end_line": 596, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 599, "end_line": 599, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 600, "end_line": 600, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "less_equal", "full_name": "", "start_line": 605, "end_line": 618, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 607, "end_line": 612, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 615, "end_line": 615, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 616, "end_line": 616, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "greater_equal", "full_name": "", "start_line": 621, "end_line": 634, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 623, "end_line": 628, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 631, "end_line": 631, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 632, "end_line": 632, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 639, "end_line": 639, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_add_box_integers", "full_name": "", "start_line": 642, "end_line": 649, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 643, "end_line": 643, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 644, "end_line": 644, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 645, "end_line": 645, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 646, "end_line": 646, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_add_box_strings", "full_name": "", "start_line": 652, "end_line": 659, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 653, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 654, "end_line": 654, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 655, "end_line": 655, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 656, "end_line": 656, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_subtract_box", "full_name": "", "start_line": 662, "end_line": 669, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 663, "end_line": 663, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 664, "end_line": 664, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 665, "end_line": 665, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 666, "end_line": 666, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_multiply_box", "full_name": "", "start_line": 672, "end_line": 679, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 673, "end_line": 673, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 674, "end_line": 674, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 675, "end_line": 675, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 676, "end_line": 676, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_divide_box", "full_name": "", "start_line": 682, "end_line": 690, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 683, "end_line": 683, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 684, "end_line": 684, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 685, "end_line": 685, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 686, "end_line": 686, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_divide_by_zero", "full_name": "", "start_line": 693, "end_line": 700, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 694, "end_line": 694, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 695, "end_line": 695, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 696, "end_line": 696, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 697, "end_line": 697, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_modulo_box", "full_name": "", "start_line": 703, "end_line": 710, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 704, "end_line": 704, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 705, "end_line": 705, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 706, "end_line": 706, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 707, "end_line": 707, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_modulo_by_zero", "full_name": "", "start_line": 713, "end_line": 720, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 714, "end_line": 714, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 715, "end_line": 715, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 716, "end_line": 716, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 717, "end_line": 717, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_modulo_chip8_pattern", "full_name": "", "start_line": 723, "end_line": 731, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 725, "end_line": 725, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 726, "end_line": 726, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 727, "end_line": 727, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 728, "end_line": 728, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_compare_box", "full_name": "", "start_line": 734, "end_line": 741, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 735, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 736, "end_line": 736, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 227, "max_depth": 10, "node_type_counts": { "class": 32, "file_root": 1, "import": 6, "function": 85, "if_statement": 29, "variable": 74 }, "classes": 32, "functions": 85, "methods": 0, "variables": 74, "control_structures": 29 }, "generated_at": "2025-08-15T16:19:40.605521848Z" }, { "file_info": { "name": "box_operators.rs", "path": "src/box_operators.rs", "size_bytes": 0, "total_lines": 680, "code_lines": 490, "comment_lines": 75, "empty_lines": 115, "code_ratio": 0.7205882352941176, "analyzed_at": "2025-08-15T16:19:40.605725792Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntegerBox", "parent_class": null, "start_line": 23, "end_line": 29, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashAdd", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 32, "end_line": 38, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashSub" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 41, "end_line": 47, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashMul" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 50, "end_line": 60, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashDiv", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 63, "end_line": 85, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicAdd" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 87, "end_line": 105, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicSub" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 107, "end_line": 133, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicMul", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 135, "end_line": 159, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicDiv", "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 164, "end_line": 170, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashAdd", "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 173, "end_line": 179, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashSub" } }, { "name": "FloatBox", "parent_class": null, "start_line": 182, "end_line": 188, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashMul" } }, { "name": "FloatBox", "parent_class": null, "start_line": 191, "end_line": 201, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashDiv" } }, { "name": "FloatBox", "parent_class": null, "start_line": 205, "end_line": 226, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicAdd" } }, { "name": "FloatBox", "parent_class": null, "start_line": 228, "end_line": 246, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicSub", "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 248, "end_line": 266, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicMul", "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 268, "end_line": 292, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicDiv", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 297, "end_line": 303, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashAdd", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 306, "end_line": 316, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashMul", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 319, "end_line": 334, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicAdd" } }, { "name": "StringBox", "parent_class": null, "start_line": 336, "end_line": 344, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicSub", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 346, "end_line": 362, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicMul", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 364, "end_line": 372, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicDiv", "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 377, "end_line": 384, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashAdd", "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 386, "end_line": 409, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicAdd" } }, { "name": "BoolBox", "parent_class": null, "start_line": 411, "end_line": 431, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicSub" } }, { "name": "BoolBox", "parent_class": null, "start_line": 433, "end_line": 453, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicMul" } }, { "name": "BoolBox", "parent_class": null, "start_line": 455, "end_line": 472, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicDiv" } }, { "name": "OperatorResolver", "parent_class": null, "start_line": 478, "end_line": 478, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "OperatorResolver", "parent_class": null, "start_line": 480, "end_line": 621, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "add", "start_line": 26, "end_line": 28, "parameters": [ "self", "rhs: IntegerBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "sub", "start_line": 35, "end_line": 37, "parameters": [ "self", "rhs: IntegerBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "mul", "start_line": 44, "end_line": 46, "parameters": [ "self", "rhs: IntegerBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "div", "start_line": 53, "end_line": 59, "parameters": [ "self", "rhs: IntegerBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_add", "start_line": 64, "end_line": 80, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_add_with", "start_line": 82, "end_line": 84, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_sub", "start_line": 88, "end_line": 100, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_sub_with", "start_line": 102, "end_line": 104, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_mul", "start_line": 108, "end_line": 128, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_mul_with", "start_line": 130, "end_line": 132, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_div", "start_line": 136, "end_line": 154, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_div_with", "start_line": 156, "end_line": 158, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "add", "start_line": 167, "end_line": 169, "parameters": [ "self", "rhs: FloatBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "sub", "start_line": 176, "end_line": 178, "parameters": [ "self", "rhs: FloatBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "mul", "start_line": 185, "end_line": 187, "parameters": [ "self", "rhs: FloatBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "div", "start_line": 194, "end_line": 200, "parameters": [ "self", "rhs: FloatBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_add", "start_line": 206, "end_line": 221, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_add_with", "start_line": 223, "end_line": 225, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_sub", "start_line": 229, "end_line": 241, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_sub_with", "start_line": 243, "end_line": 245, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_mul", "start_line": 249, "end_line": 261, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_mul_with", "start_line": 263, "end_line": 265, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_div", "start_line": 269, "end_line": 287, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_div_with", "start_line": 289, "end_line": 291, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "add", "start_line": 300, "end_line": 302, "parameters": [ "self", "rhs: StringBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "mul", "start_line": 309, "end_line": 315, "parameters": [ "self", "rhs: IntegerBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_add", "start_line": 320, "end_line": 329, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_add_with", "start_line": 331, "end_line": 333, "parameters": [ "&self", "_other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_sub", "start_line": 337, "end_line": 339, "parameters": [ "&self", "_other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_sub_with", "start_line": 341, "end_line": 343, "parameters": [ "&self", "_other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_mul", "start_line": 347, "end_line": 357, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_mul_with", "start_line": 359, "end_line": 361, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_div", "start_line": 365, "end_line": 367, "parameters": [ "&self", "_other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_div_with", "start_line": 369, "end_line": 371, "parameters": [ "&self", "_other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "add", "start_line": 380, "end_line": 383, "parameters": [ "self", "rhs: BoolBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_add", "start_line": 387, "end_line": 404, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_add_with", "start_line": 406, "end_line": 408, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_sub", "start_line": 412, "end_line": 426, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_sub_with", "start_line": 428, "end_line": 430, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_mul", "start_line": 434, "end_line": 448, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_mul_with", "start_line": 450, "end_line": 452, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_div", "start_line": 456, "end_line": 467, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "can_div_with", "start_line": 469, "end_line": 471, "parameters": [ "&self", "other_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "resolve_add", "start_line": 482, "end_line": 519, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "resolve_sub", "start_line": 522, "end_line": 544, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "resolve_mul", "start_line": 547, "end_line": 581, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "resolve_div", "start_line": 584, "end_line": 620, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_integer_addition", "start_line": 628, "end_line": 633, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_string_concatenation", "start_line": 636, "end_line": 641, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_string_repetition", "start_line": 644, "end_line": 649, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_dynamic_addition", "start_line": 652, "end_line": 660, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_boolean_arithmetic", "start_line": 663, "end_line": 668, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_can_add_with", "start_line": 671, "end_line": 679, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::operator_traits::{\n NyashAdd, NyashSub, NyashMul, NyashDiv,\n DynamicAdd, DynamicSub, DynamicMul, DynamicDiv,\n OperatorError\n}", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 625, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 29, "function_count": 53, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 23, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add", "full_name": "", "start_line": 26, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 32, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sub", "full_name": "", "start_line": 35, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 41, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "mul", "full_name": "", "start_line": 44, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 50, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "div", "full_name": "", "start_line": 53, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 54, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 63, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_add", "full_name": "", "start_line": 64, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 66, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_add_with", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 87, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_sub", "full_name": "", "start_line": 88, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 90, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 95, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_sub_with", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 107, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_mul", "full_name": "", "start_line": 108, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 110, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 120, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 121, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 122, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_mul_with", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 135, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_div", "full_name": "", "start_line": 136, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 138, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 139, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 146, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 147, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_div_with", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 164, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add", "full_name": "", "start_line": 167, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 173, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sub", "full_name": "", "start_line": 176, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 182, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "mul", "full_name": "", "start_line": 185, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 191, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "div", "full_name": "", "start_line": 194, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 195, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 205, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_add", "full_name": "", "start_line": 206, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 213, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 218, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 219, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_add_with", "full_name": "", "start_line": 223, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 228, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_sub", "full_name": "", "start_line": 229, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 236, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_sub_with", "full_name": "", "start_line": 243, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 248, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_mul", "full_name": "", "start_line": 249, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 251, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 256, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_mul_with", "full_name": "", "start_line": 263, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 268, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_div", "full_name": "", "start_line": 269, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 271, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 272, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 279, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 280, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_div_with", "full_name": "", "start_line": 289, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 297, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add", "full_name": "", "start_line": 300, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 306, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "mul", "full_name": "", "start_line": 309, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 310, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 319, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_add", "full_name": "", "start_line": 320, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 322, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 327, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_add_with", "full_name": "", "start_line": 331, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 336, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_sub", "full_name": "", "start_line": 337, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_sub_with", "full_name": "", "start_line": 341, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 346, "end_line": 362, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_mul", "full_name": "", "start_line": 347, "end_line": 357, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 349, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 350, "end_line": 353, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 351, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_mul_with", "full_name": "", "start_line": 359, "end_line": 361, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 364, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_div", "full_name": "", "start_line": 365, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_div_with", "full_name": "", "start_line": 369, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 377, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add", "full_name": "", "start_line": 380, "end_line": 383, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 381, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 386, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_add", "full_name": "", "start_line": 387, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 389, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 390, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 395, "end_line": 398, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 396, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 401, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 402, "end_line": 402, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_add_with", "full_name": "", "start_line": 406, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 411, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_sub", "full_name": "", "start_line": 412, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 414, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 415, "end_line": 415, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 420, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 421, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_sub_with", "full_name": "", "start_line": 428, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 433, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_mul", "full_name": "", "start_line": 434, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 436, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 442, "end_line": 445, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 443, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_mul_with", "full_name": "", "start_line": 450, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 455, "end_line": 472, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_div", "full_name": "", "start_line": 456, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 458, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 459, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 462, "end_line": 462, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "can_div_with", "full_name": "", "start_line": 469, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorResolver", "full_name": "", "start_line": 478, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorResolver", "full_name": "", "start_line": 480, "end_line": 621, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_add", "full_name": "", "start_line": 482, "end_line": 519, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 490, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 491, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 496, "end_line": 500, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 497, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 502, "end_line": 506, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 503, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 508, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 509, "end_line": 511, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_sub", "full_name": "", "start_line": 522, "end_line": 544, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 527, "end_line": 531, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 528, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 533, "end_line": 537, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 534, "end_line": 536, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_mul", "full_name": "", "start_line": 547, "end_line": 581, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 552, "end_line": 556, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 553, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 558, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 559, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 564, "end_line": 568, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 565, "end_line": 567, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 570, "end_line": 574, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 571, "end_line": 573, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_div", "full_name": "", "start_line": 584, "end_line": 620, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 589, "end_line": 596, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 590, "end_line": 595, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 598, "end_line": 605, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 599, "end_line": 604, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 607, "end_line": 613, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 608, "end_line": 612, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 625, "end_line": 625, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_integer_addition", "full_name": "", "start_line": 628, "end_line": 633, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 629, "end_line": 629, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 630, "end_line": 630, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 631, "end_line": 631, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_string_concatenation", "full_name": "", "start_line": 636, "end_line": 641, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 637, "end_line": 637, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 638, "end_line": 638, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 639, "end_line": 639, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_string_repetition", "full_name": "", "start_line": 644, "end_line": 649, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 645, "end_line": 645, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 646, "end_line": 646, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 647, "end_line": 647, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_dynamic_addition", "full_name": "", "start_line": 652, "end_line": 660, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 653, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 654, "end_line": 654, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 657, "end_line": 657, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 658, "end_line": 658, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_boolean_arithmetic", "full_name": "", "start_line": 663, "end_line": 668, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 664, "end_line": 664, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 665, "end_line": 665, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 666, "end_line": 666, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_can_add_with", "full_name": "", "start_line": 671, "end_line": 679, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 672, "end_line": 672, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 676, "end_line": 676, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 184, "max_depth": 11, "node_type_counts": { "function": 53, "if_statement": 62, "variable": 35, "class": 29, "file_root": 1, "import": 4 }, "classes": 29, "functions": 53, "methods": 0, "variables": 35, "control_structures": 62 }, "generated_at": "2025-08-15T16:19:40.605756489Z" }, { "file_info": { "name": "box_trait.rs", "path": "src/box_trait.rs", "size_bytes": 0, "total_lines": 924, "code_lines": 681, "comment_lines": 85, "empty_lines": 158, "code_ratio": 0.737012987012987, "analyzed_at": "2025-08-15T16:19:40.605814430Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxBase", "parent_class": null, "start_line": 49, "end_line": 52, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoxBase", "parent_class": null, "start_line": 54, "end_line": 70, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BoxCore", "parent_class": null, "start_line": 75, "end_line": 90, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "NyashBox", "parent_class": null, "start_line": 94, "end_line": 121, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "StringBox", "parent_class": null, "start_line": 127, "end_line": 130, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "StringBox", "parent_class": null, "start_line": 132, "end_line": 225, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 227, "end_line": 247, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 249, "end_line": 274, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 276, "end_line": 280, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 284, "end_line": 287, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 289, "end_line": 300, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 302, "end_line": 322, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 324, "end_line": 349, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 351, "end_line": 355, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "BoolBox", "parent_class": null, "start_line": 359, "end_line": 362, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoolBox", "parent_class": null, "start_line": 364, "end_line": 379, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 381, "end_line": 401, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "BoolBox", "parent_class": null, "start_line": 403, "end_line": 428, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "BoolBox", "parent_class": null, "start_line": 430, "end_line": 434, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "VoidBox", "parent_class": null, "start_line": 438, "end_line": 440, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "VoidBox", "parent_class": null, "start_line": 442, "end_line": 448, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "VoidBox", "parent_class": null, "start_line": 450, "end_line": 454, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } }, { "name": "VoidBox", "parent_class": null, "start_line": 456, "end_line": 476, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "VoidBox", "parent_class": null, "start_line": 478, "end_line": 499, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "VoidBox", "parent_class": null, "start_line": 501, "end_line": 505, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "FileBox", "parent_class": null, "start_line": 512, "end_line": 515, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "FileBox", "parent_class": null, "start_line": 517, "end_line": 564, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FileBox", "parent_class": null, "start_line": 566, "end_line": 586, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "FileBox", "parent_class": null, "start_line": 588, "end_line": 613, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "FileBox", "parent_class": null, "start_line": 615, "end_line": 619, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 623, "end_line": 627, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 629, "end_line": 637, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 639, "end_line": 659, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 661, "end_line": 686, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 688, "end_line": 692, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ResultBox", "parent_class": null, "start_line": 696, "end_line": 701, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ResultBox", "parent_class": null, "start_line": 703, "end_line": 744, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ResultBox", "parent_class": null, "start_line": 746, "end_line": 766, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ResultBox", "parent_class": null, "start_line": 768, "end_line": 835, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "ResultBox", "parent_class": null, "start_line": 837, "end_line": 841, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "next_box_id", "start_line": 21, "end_line": 24, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_builtin_box", "start_line": 41, "end_line": 43, "parameters": [ "box_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 56, "end_line": 61, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "with_parent_type", "start_line": 64, "end_line": 69, "parameters": [ "parent_type_id" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "start_line": 102, "end_line": 104, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_arc", "start_line": 113, "end_line": 115, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 133, "end_line": 138, "parameters": [ "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "empty", "start_line": 140, "end_line": 142, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "split", "start_line": 147, "end_line": 153, "parameters": [ "&self", "delimiter: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 148, "end_line": 148, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 150, "end_line": 150, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "find", "start_line": 156, "end_line": 161, "parameters": [ "&self", "search: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "replace", "start_line": 164, "end_line": 166, "parameters": [ "&self", "old: &str", "new: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "trim", "start_line": 169, "end_line": 171, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_upper", "start_line": 174, "end_line": 176, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_lower", "start_line": 179, "end_line": 181, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "contains", "start_line": 184, "end_line": 186, "parameters": [ "&self", "search: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "starts_with", "start_line": 189, "end_line": 191, "parameters": [ "&self", "prefix: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "ends_with", "start_line": 194, "end_line": 196, "parameters": [ "&self", "suffix: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "join", "start_line": 199, "end_line": 210, "parameters": [ "&self", "array_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 203, "end_line": 203, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "length", "start_line": 213, "end_line": 215, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get", "start_line": 218, "end_line": 224, "parameters": [ "&self", "index: usize" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 228, "end_line": 230, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 232, "end_line": 234, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 236, "end_line": 238, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 240, "end_line": 242, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 244, "end_line": 246, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 250, "end_line": 252, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 254, "end_line": 260, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 262, "end_line": 264, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 266, "end_line": 268, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 271, "end_line": 273, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 277, "end_line": 279, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 290, "end_line": 295, "parameters": [ "value: i64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "zero", "start_line": 297, "end_line": 299, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 303, "end_line": 305, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 307, "end_line": 309, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 311, "end_line": 313, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 315, "end_line": 317, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 319, "end_line": 321, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 325, "end_line": 327, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 329, "end_line": 335, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 337, "end_line": 339, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 341, "end_line": 343, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 346, "end_line": 348, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 352, "end_line": 354, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 365, "end_line": 370, "parameters": [ "value: bool" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "true_box", "start_line": 372, "end_line": 374, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "false_box", "start_line": 376, "end_line": 378, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 382, "end_line": 384, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 386, "end_line": 388, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 390, "end_line": 392, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 394, "end_line": 396, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 398, "end_line": 400, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 404, "end_line": 406, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 408, "end_line": 414, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 416, "end_line": 418, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 420, "end_line": 422, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 425, "end_line": 427, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 431, "end_line": 433, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 443, "end_line": 447, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "default", "start_line": 451, "end_line": 453, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 457, "end_line": 459, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 461, "end_line": 463, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 465, "end_line": 467, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 469, "end_line": 471, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 473, "end_line": 475, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 479, "end_line": 481, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 483, "end_line": 485, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 487, "end_line": 489, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 491, "end_line": 493, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 496, "end_line": 498, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 502, "end_line": 504, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 518, "end_line": 523, "parameters": [ "path" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "read", "start_line": 528, "end_line": 533, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "write", "start_line": 536, "end_line": 542, "parameters": [ "&self", "content" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "exists", "start_line": 545, "end_line": 547, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "delete", "start_line": 550, "end_line": 555, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "copy", "start_line": 558, "end_line": 563, "parameters": [ "&self", "dest_path: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 567, "end_line": 569, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 571, "end_line": 573, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 575, "end_line": 577, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 579, "end_line": 581, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 583, "end_line": 585, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 589, "end_line": 591, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 593, "end_line": 599, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 601, "end_line": 603, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 605, "end_line": 607, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 610, "end_line": 612, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 616, "end_line": 618, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 630, "end_line": 636, "parameters": [ "error_type", "message" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 640, "end_line": 642, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 644, "end_line": 646, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 648, "end_line": 650, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 652, "end_line": 654, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 656, "end_line": 658, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 662, "end_line": 664, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 666, "end_line": 672, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 674, "end_line": 676, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 678, "end_line": 680, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 683, "end_line": 685, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 689, "end_line": 691, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new_success", "start_line": 704, "end_line": 711, "parameters": [ "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_error", "start_line": 713, "end_line": 720, "parameters": [ "error: ErrorBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_ok", "start_line": 725, "end_line": 727, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_value", "start_line": 730, "end_line": 735, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_error", "start_line": 738, "end_line": 743, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 747, "end_line": 749, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 751, "end_line": 753, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 755, "end_line": 757, "parameters": [ "&self", "f: &mut std::fmt::Formatter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 759, "end_line": 761, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 763, "end_line": 765, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 769, "end_line": 783, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 785, "end_line": 809, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 811, "end_line": 813, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 815, "end_line": 829, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 832, "end_line": 834, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 838, "end_line": 840, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_string_box_creation", "start_line": 854, "end_line": 859, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_integer_box_creation", "start_line": 862, "end_line": 867, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_bool_box_creation", "start_line": 870, "end_line": 875, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_box_equality", "start_line": 878, "end_line": 885, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_add_box_integers", "start_line": 888, "end_line": 896, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_add_box_strings", "start_line": 899, "end_line": 907, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_box_ids_unique", "start_line": 910, "end_line": 916, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_void_box", "start_line": 919, "end_line": 923, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::atomic::{AtomicU64, Ordering}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "std::path::Path", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::array::ArrayBox", "imported_names": [], "alias": null, "line_number": 508, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_arithmetic::{AddBox, SubtractBox, MultiplyBox, DivideBox, ModuloBox, CompareBox}", "imported_names": [], "alias": null, "line_number": 847, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 851, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 40, "function_count": 127, "import_count": 9, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next_box_id", "full_name": "", "start_line": 21, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "COUNTER", "full_name": "", "start_line": 22, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "BUILTIN_BOXES", "full_name": "", "start_line": 28, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_builtin_box", "full_name": "", "start_line": 41, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxBase", "full_name": "", "start_line": 49, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxBase", "full_name": "", "start_line": 54, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 56, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "with_parent_type", "full_name": "", "start_line": 64, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxCore", "full_name": "", "start_line": 75, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashBox", "full_name": "", "start_line": 94, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_arc", "full_name": "", "start_line": 113, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 127, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 132, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 133, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "empty", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "split", "full_name": "", "start_line": 147, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 148, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find", "full_name": "", "start_line": 156, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "replace", "full_name": "", "start_line": 164, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "trim", "full_name": "", "start_line": 169, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_upper", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_lower", "full_name": "", "start_line": 179, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains", "full_name": "", "start_line": 184, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "starts_with", "full_name": "", "start_line": 189, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ends_with", "full_name": "", "start_line": 194, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "join", "full_name": "", "start_line": 199, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 200, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 201, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "length", "full_name": "", "start_line": 213, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 218, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 219, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 227, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 228, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 232, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 236, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 240, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 244, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 249, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 250, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 254, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 262, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 266, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 271, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 276, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 277, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 284, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 289, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 290, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "zero", "full_name": "", "start_line": 297, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 302, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 303, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 307, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 311, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 315, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 319, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 324, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 325, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 329, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 330, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 337, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 341, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 346, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 351, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 352, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 359, "end_line": 362, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 364, "end_line": 379, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 365, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "true_box", "full_name": "", "start_line": 372, "end_line": 374, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "false_box", "full_name": "", "start_line": 376, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 381, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 382, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 386, "end_line": 388, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 390, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 394, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 398, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 403, "end_line": 428, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 404, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 405, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 408, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 409, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 416, "end_line": 418, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 420, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 425, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 430, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 431, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 438, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 442, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 443, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 450, "end_line": 454, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 451, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 456, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 457, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 461, "end_line": 463, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 465, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 469, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 473, "end_line": 475, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 478, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 479, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 483, "end_line": 485, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 487, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 491, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 496, "end_line": 498, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 501, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 502, "end_line": 504, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 508, "end_line": 508, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 512, "end_line": 515, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 517, "end_line": 564, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 518, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 528, "end_line": 533, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 536, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 537, "end_line": 537, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exists", "full_name": "", "start_line": 545, "end_line": 547, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 550, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "copy", "full_name": "", "start_line": 558, "end_line": 563, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 566, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 567, "end_line": 569, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 571, "end_line": 573, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 575, "end_line": 577, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 579, "end_line": 581, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 583, "end_line": 585, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 588, "end_line": 613, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 589, "end_line": 591, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 593, "end_line": 599, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 594, "end_line": 598, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 601, "end_line": 603, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 605, "end_line": 607, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 610, "end_line": 612, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 615, "end_line": 619, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 616, "end_line": 618, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 623, "end_line": 627, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 629, "end_line": 637, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 630, "end_line": 636, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 639, "end_line": 659, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 640, "end_line": 642, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 644, "end_line": 646, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 648, "end_line": 650, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 652, "end_line": 654, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 656, "end_line": 658, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 661, "end_line": 686, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 662, "end_line": 664, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 666, "end_line": 672, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 667, "end_line": 671, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 674, "end_line": 676, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 678, "end_line": 680, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 683, "end_line": 685, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 688, "end_line": 692, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 689, "end_line": 691, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 696, "end_line": 701, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 703, "end_line": 744, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_success", "full_name": "", "start_line": 704, "end_line": 711, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_error", "full_name": "", "start_line": 713, "end_line": 720, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_ok", "full_name": "", "start_line": 725, "end_line": 727, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_value", "full_name": "", "start_line": 730, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_error", "full_name": "", "start_line": 738, "end_line": 743, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 746, "end_line": 766, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 747, "end_line": 749, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 751, "end_line": 753, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 755, "end_line": 757, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 759, "end_line": 761, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 763, "end_line": 765, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 768, "end_line": 835, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 769, "end_line": 783, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 770, "end_line": 782, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 771, "end_line": 775, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 777, "end_line": 781, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 785, "end_line": 809, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 786, "end_line": 808, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 787, "end_line": 789, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 791, "end_line": 805, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 811, "end_line": 813, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 815, "end_line": 829, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 816, "end_line": 828, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 817, "end_line": 821, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 823, "end_line": 827, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 832, "end_line": 834, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 837, "end_line": 841, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 838, "end_line": 840, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 847, "end_line": 847, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 851, "end_line": 851, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_string_box_creation", "full_name": "", "start_line": 854, "end_line": 859, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 855, "end_line": 855, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_integer_box_creation", "full_name": "", "start_line": 862, "end_line": 867, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 863, "end_line": 863, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_bool_box_creation", "full_name": "", "start_line": 870, "end_line": 875, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 871, "end_line": 871, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_box_equality", "full_name": "", "start_line": 878, "end_line": 885, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 879, "end_line": 879, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 880, "end_line": 880, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 881, "end_line": 881, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_add_box_integers", "full_name": "", "start_line": 888, "end_line": 896, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 889, "end_line": 889, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 890, "end_line": 890, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 891, "end_line": 891, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 893, "end_line": 893, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 894, "end_line": 894, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_add_box_strings", "full_name": "", "start_line": 899, "end_line": 907, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 900, "end_line": 900, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 901, "end_line": 901, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 902, "end_line": 902, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 904, "end_line": 904, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 905, "end_line": 905, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_box_ids_unique", "full_name": "", "start_line": 910, "end_line": 916, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 911, "end_line": 911, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 912, "end_line": 912, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_void_box", "full_name": "", "start_line": 919, "end_line": 923, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 920, "end_line": 920, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 216, "max_depth": 10, "node_type_counts": { "class": 40, "if_statement": 17, "import": 9, "file_root": 1, "function": 124, "variable": 25 }, "classes": 40, "functions": 124, "methods": 0, "variables": 25, "control_structures": 17 }, "generated_at": "2025-08-15T16:19:40.605855914Z" }, { "file_info": { "name": "channel_box.rs", "path": "src/channel_box.rs", "size_bytes": 0, "total_lines": 252, "code_lines": 185, "comment_lines": 26, "empty_lines": 41, "code_ratio": 0.7341269841269841, "analyzed_at": "2025-08-15T16:19:40.607956805Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ChannelBox", "parent_class": null, "start_line": 16, "end_line": 31, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 33, "end_line": 108, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 110, "end_line": 138, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 140, "end_line": 160, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 162, "end_line": 166, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 168, "end_line": 176, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } }, { "name": "MessageBox", "parent_class": null, "start_line": 180, "end_line": 184, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MessageBox", "parent_class": null, "start_line": 186, "end_line": 194, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MessageBox", "parent_class": null, "start_line": 196, "end_line": 224, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "MessageBox", "parent_class": null, "start_line": 226, "end_line": 246, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "MessageBox", "parent_class": null, "start_line": 248, "end_line": 252, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 35, "end_line": 43, "parameters": [ "sender: &str", "receiver: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "link", "start_line": 46, "end_line": 51, "parameters": [ "&self", "name: &str", "target" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "register_handler", "start_line": 54, "end_line": 62, "parameters": [ "&self", "method: &str", "handler: F" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "invoke", "start_line": 65, "end_line": 82, "parameters": [ "&self", "method: &str", "args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 76, "end_line": 76, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 77, "end_line": 77, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "sender", "start_line": 85, "end_line": 87, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "receiver", "start_line": 90, "end_line": 92, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "broadcast", "start_line": 95, "end_line": 107, "parameters": [ "&self", "_method: &str", "_args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 111, "end_line": 113, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 115, "end_line": 117, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 119, "end_line": 121, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 124, "end_line": 126, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 128, "end_line": 137, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 141, "end_line": 143, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 145, "end_line": 147, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 149, "end_line": 151, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 153, "end_line": 155, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 157, "end_line": 159, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 163, "end_line": 165, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 169, "end_line": 175, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 187, "end_line": 193, "parameters": [ "sender: &str", "content: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "start_line": 197, "end_line": 199, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 201, "end_line": 203, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 205, "end_line": 207, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 210, "end_line": 212, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 214, "end_line": 223, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 227, "end_line": 229, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 231, "end_line": 233, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 235, "end_line": 237, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 239, "end_line": 241, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 243, "end_line": 245, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 249, "end_line": 251, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, VoidBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex, Weak}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 11, "function_count": 33, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ChannelBox", "full_name": "", "start_line": 16, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ChannelBox", "full_name": "", "start_line": 33, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 35, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "link", "full_name": "", "start_line": 46, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_handler", "full_name": "", "start_line": 54, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "invoke", "full_name": "", "start_line": 65, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 67, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 73, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sender", "full_name": "", "start_line": 85, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "receiver", "full_name": "", "start_line": 90, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "broadcast", "full_name": "", "start_line": 95, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 99, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 100, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ChannelBox", "full_name": "", "start_line": 110, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 111, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 119, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 124, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 128, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 129, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ChannelBox", "full_name": "", "start_line": 140, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 141, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 145, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 153, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 157, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ChannelBox", "full_name": "", "start_line": 162, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 163, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ChannelBox", "full_name": "", "start_line": 168, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 169, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 180, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 186, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 187, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 196, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 197, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 201, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 205, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 210, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 214, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 215, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 226, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 227, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 235, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 239, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 243, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 248, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 249, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 58, "max_depth": 9, "node_type_counts": { "variable": 4, "class": 11, "file_root": 1, "function": 31, "for_loop": 1, "import": 5, "if_statement": 5 }, "classes": 11, "functions": 31, "methods": 0, "variables": 4, "control_structures": 6 }, "generated_at": "2025-08-15T16:19:40.607970122Z" }, { "file_info": { "name": "cli.rs", "path": "src/cli.rs", "size_bytes": 0, "total_lines": 176, "code_lines": 153, "comment_lines": 13, "empty_lines": 10, "code_ratio": 0.8693181818181818, "analyzed_at": "2025-08-15T16:19:40.605727192Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "CliConfig", "parent_class": null, "start_line": 12, "end_line": 24, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "CliConfig", "parent_class": null, "start_line": 26, "end_line": 133, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "parse", "start_line": 28, "end_line": 31, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "build_command", "start_line": 34, "end_line": 115, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "from_matches", "start_line": 118, "end_line": 132, "parameters": [ "matches: &ArgMatches" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_debug_fuel", "start_line": 136, "end_line": 142, "parameters": [ "value: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_parse_debug_fuel", "start_line": 149, "end_line": 153, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_default_config", "start_line": 156, "end_line": 175, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "clap::{Arg, Command, ArgMatches}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 146, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 2, "function_count": 6, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CliConfig", "full_name": "", "start_line": 12, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CliConfig", "full_name": "", "start_line": 26, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "full_name": "", "start_line": 28, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 29, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "build_command", "full_name": "", "start_line": 34, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_matches", "full_name": "", "start_line": 118, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_debug_fuel", "full_name": "", "start_line": 136, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 137, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_parse_debug_fuel", "full_name": "", "start_line": 149, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_default_config", "full_name": "", "start_line": 156, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 159, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 14, "max_depth": 5, "node_type_counts": { "class": 2, "function": 6, "variable": 2, "if_statement": 1, "file_root": 1, "import": 2 }, "classes": 2, "functions": 6, "methods": 0, "variables": 2, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.605737196Z" }, { "file_info": { "name": "environment.rs", "path": "src/environment.rs", "size_bytes": 0, "total_lines": 359, "code_lines": 233, "comment_lines": 58, "empty_lines": 68, "code_ratio": 0.649025069637883, "analyzed_at": "2025-08-15T16:19:40.605861628Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "Environment", "parent_class": null, "start_line": 16, "end_line": 31, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "EnvironmentError", "parent_class": null, "start_line": 35, "end_line": 44, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "Environment", "parent_class": null, "start_line": 46, "end_line": 189, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "PythonCompatEnvironment", "parent_class": null, "start_line": 193, "end_line": 196, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "PythonCompatEnvironment", "parent_class": null, "start_line": 198, "end_line": 231, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new_global", "start_line": 48, "end_line": 56, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_child", "start_line": 59, "end_line": 72, "parameters": [ "parent", "scope_name" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "define", "start_line": 75, "end_line": 78, "parameters": [ "&self", "name", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get", "start_line": 81, "end_line": 96, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set", "start_line": 99, "end_line": 122, "parameters": [ "&self", "name", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "exists", "start_line": 125, "end_line": 127, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "undefine", "start_line": 130, "end_line": 132, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "list_variables", "start_line": 135, "end_line": 137, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "scope_info", "start_line": 140, "end_line": 142, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "scope_chain_info", "start_line": 145, "end_line": 153, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "dump_all_variables", "start_line": 156, "end_line": 173, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "track_box", "start_line": 176, "end_line": 178, "parameters": [ "&self", "nyash_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "finalize_all_boxes", "start_line": 181, "end_line": 183, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "exclude_from_finalization", "start_line": 186, "end_line": 188, "parameters": [ "&self", "nyash_box: &Box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 199, "end_line": 204, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new_with_parent", "start_line": 206, "end_line": 211, "parameters": [ "parent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "define", "start_line": 214, "end_line": 218, "parameters": [ "&mut self", "name", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get", "start_line": 221, "end_line": 225, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 222, "end_line": 224, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "as_native", "start_line": 228, "end_line": 230, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_global_environment", "start_line": 241, "end_line": 251, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_nested_scopes", "start_line": 254, "end_line": 271, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_variable_shadowing", "start_line": 274, "end_line": 291, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_variable_setting", "start_line": 294, "end_line": 308, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_scope_info", "start_line": 311, "end_line": 327, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_python_compat", "start_line": 330, "end_line": 342, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_error_handling", "start_line": 345, "end_line": 358, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::finalization::BoxFinalizer", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "thiserror::Error", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 237, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 238, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 27, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Environment", "full_name": "", "start_line": 16, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EnvironmentError", "full_name": "", "start_line": 35, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Environment", "full_name": "", "start_line": 46, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_global", "full_name": "", "start_line": 48, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_child", "full_name": "", "start_line": 59, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "define", "full_name": "", "start_line": 75, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 76, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 81, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 83, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 99, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 103, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 109, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exists", "full_name": "", "start_line": 125, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "undefine", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "list_variables", "full_name": "", "start_line": 135, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "scope_info", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "scope_chain_info", "full_name": "", "start_line": 145, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 148, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dump_all_variables", "full_name": "", "start_line": 156, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 157, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 160, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 168, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "track_box", "full_name": "", "start_line": 176, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "finalize_all_boxes", "full_name": "", "start_line": 181, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exclude_from_finalization", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "PythonCompatEnvironment", "full_name": "", "start_line": 193, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "PythonCompatEnvironment", "full_name": "", "start_line": 198, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 199, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_with_parent", "full_name": "", "start_line": 206, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "define", "full_name": "", "start_line": 214, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 215, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 221, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_native", "full_name": "", "start_line": 228, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 237, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 238, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_global_environment", "full_name": "", "start_line": 241, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 242, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 248, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 249, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_nested_scopes", "full_name": "", "start_line": 254, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 255, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 256, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 265, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 266, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_variable_shadowing", "full_name": "", "start_line": 274, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 276, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 283, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 284, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 288, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 289, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_variable_setting", "full_name": "", "start_line": 294, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 295, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 296, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 305, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 306, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_scope_info", "full_name": "", "start_line": 311, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 312, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 313, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 314, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 322, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_python_compat", "full_name": "", "start_line": 330, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 331, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 337, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_error_handling", "full_name": "", "start_line": 345, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 346, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 349, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 78, "max_depth": 6, "node_type_counts": { "for_loop": 1, "if_statement": 6, "import": 7, "variable": 32, "file_root": 1, "class": 5, "function": 26 }, "classes": 5, "functions": 26, "methods": 0, "variables": 32, "control_structures": 7 }, "generated_at": "2025-08-15T16:19:40.605882202Z" }, { "file_info": { "name": "exception_box.rs", "path": "src/exception_box.rs", "size_bytes": 0, "total_lines": 120, "code_lines": 90, "comment_lines": 10, "empty_lines": 20, "code_ratio": 0.75, "analyzed_at": "2025-08-15T16:19:40.605647647Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ErrorBox", "parent_class": null, "start_line": 13, "end_line": 18, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 20, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 52, "end_line": 78, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 80, "end_line": 100, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 102, "end_line": 106, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 21, "end_line": 28, "parameters": [ "message: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "with_cause", "start_line": 30, "end_line": 37, "parameters": [ "message: &str", "cause: ErrorBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_stack_frame", "start_line": 39, "end_line": 41, "parameters": [ "&mut self", "frame: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_full_message", "start_line": 43, "end_line": 49, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "start_line": 53, "end_line": 55, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "to_string_box", "start_line": 57, "end_line": 59, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 62, "end_line": 68, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 70, "end_line": 72, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 75, "end_line": 77, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 81, "end_line": 83, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 85, "end_line": 87, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 89, "end_line": 91, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 93, "end_line": 95, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 97, "end_line": 99, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 103, "end_line": 105, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_exception_type", "start_line": 109, "end_line": 114, "parameters": [ "exception: &dyn NyashBox", "type_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "create_exception", "start_line": 117, "end_line": 120, "parameters": [ "_type_name: &str", "message: &str", "_extra_info: &HashMap" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 17, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 13, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 20, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 21, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "with_cause", "full_name": "", "start_line": 30, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_stack_frame", "full_name": "", "start_line": 39, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_full_message", "full_name": "", "start_line": 43, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 45, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 52, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 53, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 57, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 62, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 63, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 70, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 75, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 80, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 85, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 89, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 93, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 97, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 102, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 103, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_exception_type", "full_name": "", "start_line": 109, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_exception", "full_name": "", "start_line": 117, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 29, "max_depth": 6, "node_type_counts": { "file_root": 1, "import": 3, "class": 5, "variable": 1, "if_statement": 2, "function": 17 }, "classes": 5, "functions": 17, "methods": 0, "variables": 1, "control_structures": 2 }, "generated_at": "2025-08-15T16:19:40.605655142Z" }, { "file_info": { "name": "finalization.rs", "path": "src/finalization.rs", "size_bytes": 0, "total_lines": 111, "code_lines": 74, "comment_lines": 21, "empty_lines": 16, "code_ratio": 0.6666666666666666, "analyzed_at": "2025-08-15T16:19:40.608272728Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxFinalizer", "parent_class": null, "start_line": 32, "end_line": 37, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoxFinalizer", "parent_class": null, "start_line": 39, "end_line": 79, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BoxFinalizer", "parent_class": null, "start_line": 81, "end_line": 85, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Drop", "type": "impl" } }, { "name": "BoxFinalizer", "parent_class": null, "start_line": 87, "end_line": 93, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Debug", "type": "impl" } } ], "functions": [ { "name": "is_finalized", "start_line": 22, "end_line": 24, "parameters": [ "box_id: u64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "mark_as_finalized", "start_line": 27, "end_line": 29, "parameters": [ "box_id: u64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 40, "end_line": 45, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "track", "start_line": 48, "end_line": 51, "parameters": [ "&mut self", "nyash_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "exclude_from_finalization", "start_line": 54, "end_line": 57, "parameters": [ "&mut self", "nyash_box: &Box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "finalize_all", "start_line": 60, "end_line": 78, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "drop", "start_line": 82, "end_line": 84, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 88, "end_line": 92, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_finalization_tracking", "start_line": 100, "end_line": 110, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::collections::HashSet", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::NyashBox", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "lazy_static::lazy_static", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 97, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 9, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_finalized", "full_name": "", "start_line": 22, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "mark_as_finalized", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxFinalizer", "full_name": "", "start_line": 32, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxFinalizer", "full_name": "", "start_line": 39, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 40, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "track", "full_name": "", "start_line": 48, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exclude_from_finalization", "full_name": "", "start_line": 54, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "finalize_all", "full_name": "", "start_line": 60, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 62, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 64, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 68, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 70, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 71, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxFinalizer", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "drop", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxFinalizer", "full_name": "", "start_line": 87, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 88, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_finalization_tracking", "full_name": "", "start_line": 100, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 101, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 28, "max_depth": 14, "node_type_counts": { "import": 6, "file_root": 1, "function": 9, "class": 4, "variable": 4, "if_statement": 3, "for_loop": 1 }, "classes": 4, "functions": 9, "methods": 0, "variables": 4, "control_structures": 4 }, "generated_at": "2025-08-15T16:19:40.608279050Z" }, { "file_info": { "name": "instance.rs", "path": "src/instance.rs", "size_bytes": 0, "total_lines": 538, "code_lines": 357, "comment_lines": 101, "empty_lines": 80, "code_ratio": 0.6635687732342007, "analyzed_at": "2025-08-15T16:19:40.609277341Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "InstanceBox", "parent_class": null, "start_line": 19, "end_line": 47, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 49, "end_line": 433, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 435, "end_line": 462, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 464, "end_line": 484, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 486, "end_line": 490, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "functions": [ { "name": "new", "start_line": 50, "end_line": 68, "parameters": [ "class_name: String", "fields", "methods" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_with_box_info", "start_line": 71, "end_line": 98, "parameters": [ "class_name: String", "fields", "methods", "init_field_order", "weak_fields" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_field_unified", "start_line": 101, "end_line": 121, "parameters": [ "&self", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_field_unified", "start_line": 124, "end_line": 140, "parameters": [ "&self", "field_name: String", "value: NyashValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_weak_field", "start_line": 143, "end_line": 158, "parameters": [ "&self", "field_name: String", "value: NyashValue" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_weak_field_from_legacy", "start_line": 161, "end_line": 176, "parameters": [ "&self", "field_name: String", "legacy_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_weak_field", "start_line": 179, "end_line": 239, "parameters": [ "&self", "field_name: &str", "interpreter: &NyashInterpreter" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "invalidate_weak_references_to", "start_line": 242, "end_line": 262, "parameters": [ "&self", "target_info: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "global_invalidate_weak_references", "start_line": 265, "end_line": 270, "parameters": [ "target_info: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_field", "start_line": 273, "end_line": 278, "parameters": [ "&self", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_field", "start_line": 281, "end_line": 296, "parameters": [ "&self", "field_name: &str", "value: SharedNyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_field_dynamic", "start_line": 299, "end_line": 302, "parameters": [ "&mut self", "field_name: String", "value: SharedNyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_method", "start_line": 305, "end_line": 307, "parameters": [ "&self", "method_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "has_method", "start_line": 310, "end_line": 312, "parameters": [ "&self", "method_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_method", "start_line": 315, "end_line": 344, "parameters": [ "&mut self", "method_name: String", "method_ast: ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fini", "start_line": 347, "end_line": 380, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "cascade_finalize_fields", "start_line": 383, "end_line": 417, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_finalized", "start_line": 420, "end_line": 422, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_in_finalization", "start_line": 425, "end_line": 427, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_weak_field", "start_line": 430, "end_line": 432, "parameters": [ "&self", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_string_box", "start_line": 436, "end_line": 438, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 440, "end_line": 447, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 449, "end_line": 451, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 453, "end_line": 456, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 459, "end_line": 461, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 465, "end_line": 467, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 469, "end_line": 471, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 473, "end_line": 475, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 477, "end_line": 479, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 481, "end_line": 483, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 487, "end_line": 489, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_instance_creation", "start_line": 500, "end_line": 509, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_field_access", "start_line": 512, "end_line": 525, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_instance_equality", "start_line": 528, "end_line": 537, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, VoidBox, BoxCore, BoxBase, SharedNyashBox}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::ASTNode", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::value::NyashValue", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::interpreter::NyashInterpreter", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex, Weak}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 164, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 496, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::IntegerBox", "imported_names": [], "alias": null, "line_number": 497, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 34, "import_count": 11, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 19, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 49, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 50, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 53, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_with_box_info", "full_name": "", "start_line": 71, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 79, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 80, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "std::collections::HashSet", "full_name": "", "start_line": 85, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field_unified", "full_name": "", "start_line": 101, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 103, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 108, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 116, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_field_unified", "full_name": "", "start_line": 124, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 130, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 131, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 133, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_weak_field", "full_name": "", "start_line": 143, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 147, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_weak_field_from_legacy", "full_name": "", "start_line": 161, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 167, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 168, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_weak_field", "full_name": "", "start_line": 179, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 180, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 193, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 198, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 199, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 215, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 223, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "invalidate_weak_references_to", "full_name": "", "start_line": 242, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 243, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 244, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 248, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "global_invalidate_weak_references", "full_name": "", "start_line": 265, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field", "full_name": "", "start_line": 273, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_field", "full_name": "", "start_line": 281, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 286, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 287, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_field_dynamic", "full_name": "", "start_line": 299, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 300, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_method", "full_name": "", "start_line": 305, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has_method", "full_name": "", "start_line": 310, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_method", "full_name": "", "start_line": 315, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 317, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 320, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 322, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 327, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fini", "full_name": "", "start_line": 347, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 349, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 350, "end_line": 353, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 356, "end_line": 356, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 357, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 370, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 372, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "cascade_finalize_fields", "full_name": "", "start_line": 383, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 384, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 387, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 389, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 395, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 398, "end_line": 407, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 400, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 402, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_finalized", "full_name": "", "start_line": 420, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_in_finalization", "full_name": "", "start_line": 425, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_weak_field", "full_name": "", "start_line": 430, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 435, "end_line": 462, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 436, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 440, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 441, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 449, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 453, "end_line": 456, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 459, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 464, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 465, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 469, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 473, "end_line": 475, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 477, "end_line": 479, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 481, "end_line": 483, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 486, "end_line": 490, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 487, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 496, "end_line": 496, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 497, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_instance_creation", "full_name": "", "start_line": 500, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 501, "end_line": 501, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 502, "end_line": 502, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 503, "end_line": 503, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_field_access", "full_name": "", "start_line": 512, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 513, "end_line": 513, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 514, "end_line": 514, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 515, "end_line": 515, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 518, "end_line": 518, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 522, "end_line": 522, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 523, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_instance_equality", "full_name": "", "start_line": 528, "end_line": 537, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 529, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 530, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 116, "max_depth": 23, "node_type_counts": { "file_root": 1, "function": 34, "if_statement": 26, "class": 5, "import": 11, "for_loop": 4, "variable": 35 }, "classes": 5, "functions": 34, "methods": 0, "variables": 35, "control_structures": 30 }, "generated_at": "2025-08-15T16:19:40.609327472Z" }, { "file_info": { "name": "async_methods.rs", "path": "src/interpreter/async_methods.rs", "size_bytes": 0, "total_lines": 132, "code_lines": 93, "comment_lines": 35, "empty_lines": 4, "code_ratio": 0.7045454545454546, "analyzed_at": "2025-08-15T16:19:40.614272677Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 18, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_future_method", "start_line": 27, "end_line": 59, "parameters": [ "&mut self", "future_box: &FutureBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_channel_method", "start_line": 72, "end_line": 131, "parameters": [ "&mut self", "channel_box: &ChannelBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "crate::channel_box::{ChannelBox, MessageBox}", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 2, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 18, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_future_method", "full_name": "", "start_line": 27, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 31, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 39, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 47, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_channel_method", "full_name": "", "start_line": 72, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 76, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 83, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 89, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 94, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 99, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 103, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 111, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 119, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 21, "max_depth": 11, "node_type_counts": { "file_root": 1, "import": 3, "class": 1, "for_loop": 1, "if_statement": 8, "variable": 5, "function": 2 }, "classes": 1, "functions": 2, "methods": 0, "variables": 5, "control_structures": 9 }, "generated_at": "2025-08-15T16:19:40.614282019Z" }, { "file_info": { "name": "box_methods.rs", "path": "src/interpreter/box_methods.rs", "size_bytes": 0, "total_lines": 277, "code_lines": 163, "comment_lines": 80, "empty_lines": 34, "code_ratio": 0.5884476534296029, "analyzed_at": "2025-08-15T16:19:40.614360055Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 52, "end_line": 277, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_null_method", "start_line": 70, "end_line": 130, "parameters": [ "&mut self", "_null_box: &NullBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_egui_method", "start_line": 148, "end_line": 194, "parameters": [ "&mut self", "_egui_box: &crate::boxes::EguiBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_console_method", "start_line": 197, "end_line": 272, "parameters": [ "&mut self", "console_box: &crate::boxes::console_box::ConsoleBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 216, "end_line": 216, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 232, "end_line": 232, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 248, "end_line": 248, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 49, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::NullBox", "imported_names": [], "alias": null, "line_number": 50, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 6, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 50, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 52, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_null_method", "full_name": "", "start_line": 70, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 73, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 74, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 89, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 97, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 110, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 112, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 116, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_egui_method", "full_name": "", "start_line": 148, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 151, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 152, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 159, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 177, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_console_method", "full_name": "", "start_line": 197, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 201, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 215, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 219, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 225, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 235, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 241, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 247, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 257, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 33, "max_depth": 11, "node_type_counts": { "class": 1, "for_loop": 3, "file_root": 1, "import": 2, "variable": 11, "function": 3, "if_statement": 12 }, "classes": 1, "functions": 3, "methods": 0, "variables": 11, "control_structures": 15 }, "generated_at": "2025-08-15T16:19:40.614376359Z" }, { "file_info": { "name": "core.rs", "path": "src/interpreter/core.rs", "size_bytes": 0, "total_lines": 867, "code_lines": 622, "comment_lines": 97, "empty_lines": 148, "code_ratio": 0.7174163783160323, "analyzed_at": "2025-08-15T16:19:40.614404874Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "RuntimeError", "parent_class": null, "start_line": 34, "end_line": 84, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "RuntimeError", "parent_class": null, "start_line": 86, "end_line": 150, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SharedState", "parent_class": null, "start_line": 154, "end_line": 169, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "SharedState", "parent_class": null, "start_line": 171, "end_line": 188, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashInterpreter", "parent_class": null, "start_line": 191, "end_line": 215, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NyashInterpreter", "parent_class": null, "start_line": 217, "end_line": 549, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashInterpreter", "parent_class": null, "start_line": 643, "end_line": 867, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "debug_log", "start_line": 21, "end_line": 30, "parameters": [ "msg: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "detailed_message", "start_line": 88, "end_line": 149, "parameters": [ "&self", "source" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new", "start_line": 173, "end_line": 187, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new", "start_line": 219, "end_line": 232, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "with_shared", "start_line": 235, "end_line": 246, "parameters": [ "shared: SharedState" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "execute", "start_line": 249, "end_line": 256, "parameters": [ "&mut self", "ast: ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute_node", "start_line": 259, "end_line": 326, "parameters": [ "&mut self", "node: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "resolve_variable", "start_line": 331, "end_line": 440, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "set_variable", "start_line": 443, "end_line": 476, "parameters": [ "&mut self", "name: &str", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "declare_local_variable", "start_line": 479, "end_line": 481, "parameters": [ "&mut self", "name: &str", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "declare_outbox_variable", "start_line": 484, "end_line": 486, "parameters": [ "&mut self", "name: &str", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "save_local_vars", "start_line": 489, "end_line": 493, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 491, "end_line": 491, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "restore_local_vars", "start_line": 495, "end_line": 499, "parameters": [ "&mut self", "saved" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 497, "end_line": 497, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "save_outbox_vars", "start_line": 502, "end_line": 506, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 504, "end_line": 504, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "restore_outbox_vars", "start_line": 508, "end_line": 512, "parameters": [ "&mut self", "saved" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 510, "end_line": 510, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "register_global_function", "start_line": 515, "end_line": 520, "parameters": [ "&mut self", "name: String", "func_ast: ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 518, "end_line": 518, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "is_truthy", "start_line": 527, "end_line": 542, "parameters": [ "&self", "value: &Box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "get_variable", "start_line": 545, "end_line": 548, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "test_simple_execution", "start_line": 559, "end_line": 570, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_arithmetic", "start_line": 573, "end_line": 585, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_if_statement", "start_line": 588, "end_line": 605, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_box_instance_creation", "start_line": 608, "end_line": 638, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "register_static_box", "start_line": 646, "end_line": 654, "parameters": [ "&mut self", "definition: StaticBoxDefinition" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 648, "end_line": 650, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "register_static_box_declaration", "start_line": 657, "end_line": 687, "parameters": [ "&mut self", "name: String", "fields", "methods", "init_fields", "weak_fields", "static_init", "extends", "implements", "type_parameters" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "ensure_static_box_initialized", "start_line": 690, "end_line": 756, "parameters": [ "&mut self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 694, "end_line": 696, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "set_static_box_state", "start_line": 759, "end_line": 770, "parameters": [ "&mut self", "name: &str", "state: StaticBoxState" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 761, "end_line": 763, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "ensure_statics_namespace", "start_line": 773, "end_line": 800, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 775, "end_line": 777, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "set_static_instance", "start_line": 803, "end_line": 829, "parameters": [ "&mut self", "name: &str", "instance: InstanceBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 805, "end_line": 807, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "is_static_box", "start_line": 832, "end_line": 838, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "trigger_weak_reference_invalidation", "start_line": 841, "end_line": 866, "parameters": [ "&mut self", "target_info: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::ast::{ASTNode, Span}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox, SharedNyashBox}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::parser::ParseError", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "super::BuiltinStdlib", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex, RwLock}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::{HashMap, HashSet}", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "thiserror::Error", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "super::{ControlFlow, BoxDeclaration, ConstructorContext, StaticBoxDefinition, StaticBoxState}", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs::OpenOptions", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::Write", "imported_names": [], "alias": null, "line_number": 18, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 529, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 555, "metadata": {} }, { "type": "rust_use", "module_path": "crate::parser::NyashParser", "imported_names": [], "alias": null, "line_number": 556, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 40, "import_count": 14, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 17, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 18, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "debug_log", "full_name": "", "start_line": 21, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 22, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 27, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 28, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RuntimeError", "full_name": "", "start_line": 34, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RuntimeError", "full_name": "", "start_line": 86, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "detailed_message", "full_name": "", "start_line": 88, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 93, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 103, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 104, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 114, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 115, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 126, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 137, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SharedState", "full_name": "", "start_line": 154, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SharedState", "full_name": "", "start_line": 171, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 173, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 191, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 217, "end_line": 549, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 219, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 220, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "with_shared", "full_name": "", "start_line": 235, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 249, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_node", "full_name": "", "start_line": 259, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 264, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 266, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 287, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 288, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 289, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 299, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 304, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_variable", "full_name": "", "start_line": 331, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 332, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 338, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 342, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 351, "end_line": 361, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 355, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 365, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 366, "end_line": 369, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 373, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 377, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 379, "end_line": 379, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 380, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 383, "end_line": 388, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 389, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 391, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 406, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 410, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 414, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 418, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_variable", "full_name": "", "start_line": 443, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 444, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 447, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 453, "end_line": 456, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 460, "end_line": 460, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 461, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 463, "end_line": 463, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "declare_local_variable", "full_name": "", "start_line": 479, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "declare_outbox_variable", "full_name": "", "start_line": 484, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "save_local_vars", "full_name": "", "start_line": 489, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "restore_local_vars", "full_name": "", "start_line": 495, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "save_outbox_vars", "full_name": "", "start_line": 502, "end_line": 506, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "restore_outbox_vars", "full_name": "", "start_line": 508, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_global_function", "full_name": "", "start_line": 515, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 516, "end_line": 516, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_truthy", "full_name": "", "start_line": 527, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 529, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 531, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 533, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 535, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 537, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_variable", "full_name": "", "start_line": 545, "end_line": 548, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 546, "end_line": 546, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 555, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 556, "end_line": 556, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_simple_execution", "full_name": "", "start_line": 559, "end_line": 570, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 560, "end_line": 563, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 565, "end_line": 565, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 566, "end_line": 566, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 567, "end_line": 567, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_arithmetic", "full_name": "", "start_line": 573, "end_line": 585, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 574, "end_line": 576, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 578, "end_line": 578, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 579, "end_line": 579, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 583, "end_line": 583, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_if_statement", "full_name": "", "start_line": 588, "end_line": 605, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 589, "end_line": 596, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 598, "end_line": 598, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 599, "end_line": 599, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 603, "end_line": 603, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_box_instance_creation", "full_name": "", "start_line": 608, "end_line": 638, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 609, "end_line": 625, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 627, "end_line": 627, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 628, "end_line": 628, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 632, "end_line": 632, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 636, "end_line": 636, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 643, "end_line": 867, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_static_box", "full_name": "", "start_line": 646, "end_line": 654, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 647, "end_line": 650, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_static_box_declaration", "full_name": "", "start_line": 657, "end_line": 687, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 672, "end_line": 683, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ensure_static_box_initialized", "full_name": "", "start_line": 690, "end_line": 756, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 692, "end_line": 702, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 693, "end_line": 696, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 705, "end_line": 707, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 709, "end_line": 713, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 722, "end_line": 726, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 732, "end_line": 750, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 734, "end_line": 739, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 735, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 736, "end_line": 736, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 737, "end_line": 737, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 744, "end_line": 746, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_static_box_state", "full_name": "", "start_line": 759, "end_line": 770, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 760, "end_line": 763, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 765, "end_line": 767, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ensure_statics_namespace", "full_name": "", "start_line": 773, "end_line": 800, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 774, "end_line": 777, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 780, "end_line": 783, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 786, "end_line": 790, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 794, "end_line": 794, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_static_instance", "full_name": "", "start_line": 803, "end_line": 829, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 804, "end_line": 807, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 810, "end_line": 813, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 815, "end_line": 819, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 823, "end_line": 823, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_static_box", "full_name": "", "start_line": 832, "end_line": 838, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 833, "end_line": 837, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "trigger_weak_reference_invalidation", "full_name": "", "start_line": 841, "end_line": 866, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 846, "end_line": 865, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 847, "end_line": 847, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 849, "end_line": 849, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 850, "end_line": 850, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 852, "end_line": 857, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 861, "end_line": 864, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 152, "max_depth": 16, "node_type_counts": { "if_statement": 36, "function": 30, "variable": 62, "for_loop": 2, "file_root": 1, "class": 7, "import": 14 }, "classes": 7, "functions": 30, "methods": 0, "variables": 62, "control_structures": 38 }, "generated_at": "2025-08-15T16:19:40.614454874Z" }, { "file_info": { "name": "expressions.rs", "path": "src/interpreter/expressions.rs", "size_bytes": 0, "total_lines": 1458, "code_lines": 1028, "comment_lines": 224, "empty_lines": 206, "code_ratio": 0.7050754458161865, "analyzed_at": "2025-08-15T16:19:40.615896076Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 108, "end_line": 1458, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "try_add_operation", "start_line": 18, "end_line": 42, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_sub_operation", "start_line": 44, "end_line": 53, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_mul_operation", "start_line": 55, "end_line": 73, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_div_operation", "start_line": 75, "end_line": 88, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "try_mod_operation", "start_line": 90, "end_line": 103, "parameters": [ "left: &dyn NyashBox", "right: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_expression", "start_line": 110, "end_line": 233, "parameters": [ "&mut self", "expression: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 119, "end_line": 122, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 155, "end_line": 157, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 165, "end_line": 167, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 175, "end_line": 177, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 181, "end_line": 183, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 195, "end_line": 197, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 201, "end_line": 203, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_binary_op", "start_line": 236, "end_line": 349, "parameters": [ "&mut self", "op: &BinaryOperator", "left: &ASTNode", "right: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_unary_op", "start_line": 352, "end_line": 380, "parameters": [ "&mut self", "operator: &UnaryOperator", "operand: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_method_call", "start_line": 383, "end_line": 898, "parameters": [ "&mut self", "object: &ASTNode", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 828, "end_line": 830, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_field_access", "start_line": 901, "end_line": 972, "parameters": [ "&mut self", "object: &ASTNode", "field: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_static_field_access", "start_line": 975, "end_line": 1016, "parameters": [ "&mut self", "static_box_name: &str", "field: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 982, "end_line": 984, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_await", "start_line": 1020, "end_line": 1031, "parameters": [ "&mut self", "expression: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 1026, "end_line": 1026, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "get_object_id", "start_line": 1034, "end_line": 1050, "parameters": [ "&self", "node: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "hash_string", "start_line": 1053, "end_line": 1059, "parameters": [ "&self", "s: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_from_call", "start_line": 1086, "end_line": 1216, "parameters": [ "&mut self", "parent: &str", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 1091, "end_line": 1093, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_from_parent_constructor", "start_line": 1219, "end_line": 1290, "parameters": [ "&mut self", "parent: &str", "parent_box_decl: &super::BoxDeclaration", "current_instance", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 1231, "end_line": 1231, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 1232, "end_line": 1232, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 1233, "end_line": 1233, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_builtin_box_method", "start_line": 1293, "end_line": 1380, "parameters": [ "&mut self", "parent: &str", "method: &str", "current_instance", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_builtin_birth_method", "start_line": 1384, "end_line": 1457, "parameters": [ "&mut self", "builtin_name: &str", "current_instance", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::UnaryOperator", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{buffer::BufferBox, JSONBox, HttpClientBox, StreamBox, RegexBox, IntentBox, SocketBox, HTTPServerBox, HTTPRequestBox, HTTPResponseBox}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{FloatBox, MathBox, ConsoleBox, TimeBox, DateTimeBox, RandomBox, SoundBox, DebugBox, file::FileBox, MapBox}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{BoolBox, SharedNyashBox}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::operator_traits::{DynamicAdd, DynamicSub, DynamicMul, DynamicDiv, OperatorError}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 104, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{is_builtin_box, BUILTIN_BOXES}", "imported_names": [], "alias": null, "line_number": 1121, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 32, "import_count": 8, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_add_operation", "full_name": "", "start_line": 18, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 20, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 28, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 29, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 34, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_sub_operation", "full_name": "", "start_line": 44, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 46, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_mul_operation", "full_name": "", "start_line": 55, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 57, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 65, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_div_operation", "full_name": "", "start_line": 75, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 77, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "try_mod_operation", "full_name": "", "start_line": 90, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 92, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 96, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 108, "end_line": 1458, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_expression", "full_name": "", "start_line": 110, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 118, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 139, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 144, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 154, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 179, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 180, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 194, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 199, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 200, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_binary_op", "full_name": "", "start_line": 236, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 238, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 245, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 256, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 261, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 266, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 267, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 270, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 276, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 277, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 280, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 287, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 299, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 330, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 335, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 340, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 345, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_unary_op", "full_name": "", "start_line": 352, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 354, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 359, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 361, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 371, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 375, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_method_call", "full_name": "", "start_line": 383, "end_line": 898, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 387, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 389, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 390, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 391, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 392, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 402, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 404, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 406, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 407, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 412, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 420, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 424, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 428, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 433, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 434, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 438, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 456, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 456, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 457, "end_line": 472, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 458, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 459, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 478, "end_line": 491, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 482, "end_line": 482, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 483, "end_line": 485, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 488, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 495, "end_line": 495, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 498, "end_line": 500, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 503, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 508, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 513, "end_line": 515, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 518, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 523, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 528, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 533, "end_line": 535, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 538, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 543, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 548, "end_line": 550, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 553, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 558, "end_line": 560, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 563, "end_line": 565, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 568, "end_line": 570, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 573, "end_line": 575, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 578, "end_line": 580, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 583, "end_line": 585, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 588, "end_line": 590, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 593, "end_line": 595, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 598, "end_line": 600, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 603, "end_line": 605, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 608, "end_line": 610, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 613, "end_line": 615, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 618, "end_line": 620, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 623, "end_line": 697, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 624, "end_line": 624, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 629, "end_line": 694, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 631, "end_line": 631, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 638, "end_line": 644, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 652, "end_line": 668, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 654, "end_line": 665, "start_column": 0, "end_column": 0, "depth": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 656, "end_line": 662, "start_column": 0, "end_column": 0, "depth": 28, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 658, "end_line": 658, "start_column": 0, "end_column": 0, "depth": 30, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 672, "end_line": 683, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 674, "end_line": 680, "start_column": 0, "end_column": 0, "depth": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 676, "end_line": 676, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 700, "end_line": 702, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 705, "end_line": 707, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 710, "end_line": 712, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 721, "end_line": 723, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 727, "end_line": 729, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 733, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 739, "end_line": 741, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 744, "end_line": 746, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 749, "end_line": 751, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 758, "end_line": 897, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 760, "end_line": 764, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 767, "end_line": 833, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 769, "end_line": 788, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 771, "end_line": 787, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 772, "end_line": 786, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 774, "end_line": 785, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 775, "end_line": 784, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 776, "end_line": 783, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 791, "end_line": 793, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 796, "end_line": 820, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 797, "end_line": 819, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 799, "end_line": 799, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 806, "end_line": 806, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 807, "end_line": 815, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 811, "end_line": 814, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 823, "end_line": 823, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 836, "end_line": 840, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 843, "end_line": 892, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 845, "end_line": 845, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 846, "end_line": 849, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 847, "end_line": 847, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 852, "end_line": 857, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 860, "end_line": 860, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 867, "end_line": 869, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 872, "end_line": 872, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 873, "end_line": 882, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 877, "end_line": 881, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_field_access", "full_name": "", "start_line": 901, "end_line": 972, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 905, "end_line": 911, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 907, "end_line": 910, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 908, "end_line": 908, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 915, "end_line": 915, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 917, "end_line": 917, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 920, "end_line": 971, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 922, "end_line": 926, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 929, "end_line": 932, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 937, "end_line": 937, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 938, "end_line": 963, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 939, "end_line": 962, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 943, "end_line": 960, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 953, "end_line": 957, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 954, "end_line": 956, "start_column": 0, "end_column": 0, "depth": 26, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_static_field_access", "full_name": "", "start_line": 975, "end_line": 1016, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 981, "end_line": 984, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 986, "end_line": 989, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 991, "end_line": 995, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 997, "end_line": 1000, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1002, "end_line": 1006, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1009, "end_line": 1012, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_await", "full_name": "", "start_line": 1020, "end_line": 1031, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1021, "end_line": 1021, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1024, "end_line": 1030, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_object_id", "full_name": "", "start_line": 1034, "end_line": 1050, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "hash_string", "full_name": "", "start_line": 1053, "end_line": 1059, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1054, "end_line": 1054, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1055, "end_line": 1057, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_from_call", "full_name": "", "start_line": 1086, "end_line": 1216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1090, "end_line": 1093, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1095, "end_line": 1098, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1101, "end_line": 1101, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1102, "end_line": 1102, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1104, "end_line": 1107, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1110, "end_line": 1111, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1113, "end_line": 1118, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1121, "end_line": 1121, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1123, "end_line": 1123, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1128, "end_line": 1130, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1136, "end_line": 1140, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1143, "end_line": 1147, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1152, "end_line": 1154, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1157, "end_line": 1161, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1164, "end_line": 1164, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1165, "end_line": 1167, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1170, "end_line": 1215, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1172, "end_line": 1177, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1180, "end_line": 1180, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1187, "end_line": 1189, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 1192, "end_line": 1192, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1193, "end_line": 1202, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1197, "end_line": 1201, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_from_parent_constructor", "full_name": "", "start_line": 1219, "end_line": 1290, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1225, "end_line": 1225, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1226, "end_line": 1226, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1227, "end_line": 1227, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1228, "end_line": 1228, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1230, "end_line": 1237, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1240, "end_line": 1240, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1241, "end_line": 1243, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1246, "end_line": 1289, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1248, "end_line": 1253, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1256, "end_line": 1256, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1263, "end_line": 1265, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 1268, "end_line": 1268, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1269, "end_line": 1278, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1273, "end_line": 1277, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_builtin_box_method", "full_name": "", "start_line": 1293, "end_line": 1380, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1297, "end_line": 1299, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1307, "end_line": 1307, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1312, "end_line": 1312, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1316, "end_line": 1316, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1320, "end_line": 1320, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1324, "end_line": 1324, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1335, "end_line": 1335, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1339, "end_line": 1339, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1343, "end_line": 1343, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1347, "end_line": 1347, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1351, "end_line": 1351, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1355, "end_line": 1355, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1359, "end_line": 1359, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1363, "end_line": 1363, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1367, "end_line": 1367, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1371, "end_line": 1371, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_builtin_birth_method", "full_name": "", "start_line": 1384, "end_line": 1457, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1388, "end_line": 1388, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1389, "end_line": 1391, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1396, "end_line": 1400, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1402, "end_line": 1402, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1404, "end_line": 1404, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1408, "end_line": 1412, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1414, "end_line": 1420, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1414, "end_line": 1420, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1422, "end_line": 1422, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1428, "end_line": 1432, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1434, "end_line": 1434, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1440, "end_line": 1444, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1446, "end_line": 1446, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 261, "max_depth": 30, "node_type_counts": { "function": 18, "file_root": 1, "class": 1, "import": 8, "for_loop": 16, "if_statement": 116, "variable": 101 }, "classes": 1, "functions": 18, "methods": 0, "variables": 101, "control_structures": 132 }, "generated_at": "2025-08-15T16:19:40.616000692Z" }, { "file_info": { "name": "functions.rs", "path": "src/interpreter/functions.rs", "size_bytes": 0, "total_lines": 97, "code_lines": 63, "comment_lines": 21, "empty_lines": 13, "code_ratio": 0.6494845360824743, "analyzed_at": "2025-08-15T16:19:40.613893044Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 11, "end_line": 97, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_function_call", "start_line": 13, "end_line": 79, "parameters": [ "&mut self", "name: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "register_function_declaration", "start_line": 82, "end_line": 96, "parameters": [ "&mut self", "name: String", "params", "body" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 93, "end_line": 95, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 3, "import_count": 1, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 11, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_function_call", "full_name": "", "start_line": 13, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 16, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 17, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 18, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 26, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 33, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 35, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 36, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 41, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 53, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 58, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 59, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 63, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_function_declaration", "full_name": "", "start_line": 82, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 84, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 20, "max_depth": 12, "node_type_counts": { "for_loop": 3, "import": 1, "function": 2, "file_root": 1, "class": 1, "if_statement": 6, "variable": 6 }, "classes": 1, "functions": 2, "methods": 0, "variables": 6, "control_structures": 9 }, "generated_at": "2025-08-15T16:19:40.613899822Z" }, { "file_info": { "name": "io.rs", "path": "src/interpreter/io.rs", "size_bytes": 0, "total_lines": 114, "code_lines": 65, "comment_lines": 30, "empty_lines": 19, "code_ratio": 0.5701754385964912, "analyzed_at": "2025-08-15T16:19:40.614053330Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 12, "end_line": 114, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_include", "start_line": 14, "end_line": 46, "parameters": [ "&mut self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 29, "end_line": 31, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 35, "end_line": 37, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_arrow", "start_line": 49, "end_line": 75, "parameters": [ "&mut self", "sender: &ASTNode", "receiver: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_nowait", "start_line": 78, "end_line": 113, "parameters": [ "&mut self", "variable: &str", "expression: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 91, "end_line": 106, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::parser::NyashParser", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FutureBox", "imported_names": [], "alias": null, "line_number": 79, "metadata": {} }, { "type": "rust_use", "module_path": "std::thread", "imported_names": [], "alias": null, "line_number": 80, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 6, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 12, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_include", "full_name": "", "start_line": 14, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 16, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 16, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 23, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 28, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 34, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_arrow", "full_name": "", "start_line": 49, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 55, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 69, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_nowait", "full_name": "", "start_line": 78, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 79, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 80, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 83, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 84, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 93, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 102, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 26, "max_depth": 15, "node_type_counts": { "function": 3, "if_statement": 2, "import": 4, "class": 1, "variable": 15, "file_root": 1 }, "classes": 1, "functions": 3, "methods": 0, "variables": 15, "control_structures": 2 }, "generated_at": "2025-08-15T16:19:40.614060587Z" }, { "file_info": { "name": "math_methods.rs", "path": "src/interpreter/math_methods.rs", "size_bytes": 0, "total_lines": 274, "code_lines": 223, "comment_lines": 37, "empty_lines": 14, "code_ratio": 0.8138686131386861, "analyzed_at": "2025-08-15T16:19:40.614187988Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 24, "end_line": 274, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_math_method", "start_line": 27, "end_line": 181, "parameters": [ "&mut self", "math_box: &MathBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_random_method", "start_line": 185, "end_line": 273, "parameters": [ "&mut self", "random_box: &RandomBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 22, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 2, "import_count": 1, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 22, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 24, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_math_method", "full_name": "", "start_line": 27, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 30, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 31, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 39, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 47, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 55, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 63, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 89, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 107, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 115, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 125, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 133, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 141, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 151, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 159, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 167, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_random_method", "full_name": "", "start_line": 185, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 188, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 189, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 197, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 207, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 215, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 223, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 233, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 241, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 251, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 259, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 33, "max_depth": 11, "node_type_counts": { "variable": 2, "file_root": 1, "class": 1, "for_loop": 2, "import": 1, "function": 2, "if_statement": 24 }, "classes": 1, "functions": 2, "methods": 0, "variables": 2, "control_structures": 26 }, "generated_at": "2025-08-15T16:19:40.614204901Z" }, { "file_info": { "name": "basic_methods.rs", "path": "src/interpreter/methods/basic_methods.rs", "size_bytes": 0, "total_lines": 508, "code_lines": 486, "comment_lines": 17, "empty_lines": 5, "code_ratio": 0.9566929133858267, "analyzed_at": "2025-08-15T16:19:40.620304377Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 16, "end_line": 508, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_string_method", "start_line": 18, "end_line": 135, "parameters": [ "&mut self", "string_box: &StringBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_integer_method", "start_line": 138, "end_line": 222, "parameters": [ "&mut self", "integer_box: &IntegerBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } }, { "name": "execute_bool_method", "start_line": 225, "end_line": 289, "parameters": [ "&mut self", "bool_box: &BoolBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_float_method", "start_line": 292, "end_line": 507, "parameters": [ "&mut self", "float_box: &FloatBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::super::*", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 4, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 16, "end_line": 508, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_string_method", "full_name": "", "start_line": 18, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 22, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 27, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 28, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 37, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 46, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 54, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 60, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 72, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 78, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 87, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 93, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 94, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 106, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 114, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 122, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_integer_method", "full_name": "", "start_line": 138, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 142, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 150, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 158, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 163, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 164, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 173, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 179, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 188, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 196, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 202, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 204, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_bool_method", "full_name": "", "start_line": 225, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 229, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 237, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 245, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 250, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 251, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 255, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 260, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 265, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 266, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 270, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 275, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 280, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_float_method", "full_name": "", "start_line": 292, "end_line": 507, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 296, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 304, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 312, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 320, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 328, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 336, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 344, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 349, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 350, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 352, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 361, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 366, "end_line": 366, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 369, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 378, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 383, "end_line": 383, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 384, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 386, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 395, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 400, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 409, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 417, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 425, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 433, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 438, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 447, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 452, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 461, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 469, "end_line": 473, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 477, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 485, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 493, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 498, "end_line": 498, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 87, "max_depth": 17, "node_type_counts": { "function": 4, "variable": 19, "class": 1, "file_root": 1, "if_statement": 59, "import": 3 }, "classes": 1, "functions": 4, "methods": 0, "variables": 19, "control_structures": 59 }, "generated_at": "2025-08-15T16:19:40.620333912Z" }, { "file_info": { "name": "collection_methods.rs", "path": "src/interpreter/methods/collection_methods.rs", "size_bytes": 0, "total_lines": 303, "code_lines": 285, "comment_lines": 14, "empty_lines": 4, "code_ratio": 0.9405940594059405, "analyzed_at": "2025-08-15T16:19:40.620335118Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 14, "end_line": 303, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_array_method", "start_line": 16, "end_line": 160, "parameters": [ "&mut self", "array_box: &ArrayBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_map_method", "start_line": 163, "end_line": 302, "parameters": [ "&mut self", "map_box: &MapBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::super::*", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, NyashBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{ArrayBox, MapBox}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 2, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 14, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_array_method", "full_name": "", "start_line": 16, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 20, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 25, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 29, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 37, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 45, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 50, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 54, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 60, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 64, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 69, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 73, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 82, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 91, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 108, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 114, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 121, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 129, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 137, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 145, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 150, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 151, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_map_method", "full_name": "", "start_line": 163, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 175, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 184, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 188, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 193, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 197, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 202, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 206, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 214, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 222, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 230, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 238, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 243, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 244, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 251, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 256, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 260, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 265, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 270, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 279, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 289, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 58, "max_depth": 11, "node_type_counts": { "function": 2, "if_statement": 31, "variable": 20, "import": 3, "class": 1, "file_root": 1 }, "classes": 1, "functions": 2, "methods": 0, "variables": 20, "control_structures": 31 }, "generated_at": "2025-08-15T16:19:40.620371887Z" }, { "file_info": { "name": "data_methods.rs", "path": "src/interpreter/methods/data_methods.rs", "size_bytes": 0, "total_lines": 231, "code_lines": 215, "comment_lines": 12, "empty_lines": 4, "code_ratio": 0.9307359307359307, "analyzed_at": "2025-08-15T16:19:40.620544133Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 14, "end_line": 231, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_buffer_method", "start_line": 16, "end_line": 111, "parameters": [ "&mut self", "buffer_box: &BufferBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_json_method", "start_line": 114, "end_line": 174, "parameters": [ "&mut self", "json_box: &JSONBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } }, { "name": "execute_regex_method", "start_line": 177, "end_line": 230, "parameters": [ "&mut self", "regex_box: &RegexBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::super::*", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{buffer::BufferBox, JSONBox, RegexBox}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 3, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 14, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_buffer_method", "full_name": "", "start_line": 16, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 20, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 25, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 29, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 37, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 46, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 54, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 62, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 76, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 82, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 87, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 91, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 100, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_json_method", "full_name": "", "start_line": 114, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 118, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 123, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 127, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 135, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 144, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 150, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 154, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 159, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 163, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_regex_method", "full_name": "", "start_line": 177, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 181, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 186, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 190, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 195, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 199, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 204, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 213, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 214, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 218, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 47, "max_depth": 11, "node_type_counts": { "import": 3, "file_root": 1, "function": 3, "class": 1, "if_statement": 21, "variable": 18 }, "classes": 1, "functions": 3, "methods": 0, "variables": 18, "control_structures": 21 }, "generated_at": "2025-08-15T16:19:40.620557754Z" }, { "file_info": { "name": "http_methods.rs", "path": "src/interpreter/methods/http_methods.rs", "size_bytes": 0, "total_lines": 287, "code_lines": 250, "comment_lines": 9, "empty_lines": 28, "code_ratio": 0.8710801393728222, "analyzed_at": "2025-08-15T16:19:40.623593710Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 10, "end_line": 287, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_socket_method", "start_line": 12, "end_line": 129, "parameters": [ "&mut self", "socket_box: &SocketBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } }, { "name": "execute_http_server_method", "start_line": 132, "end_line": 202, "parameters": [ "&mut self", "server_box: &HTTPServerBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_http_request_method", "start_line": 205, "end_line": 243, "parameters": [ "&mut self", "request_box: &HTTPRequestBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_http_response_method", "start_line": 246, "end_line": 286, "parameters": [ "&mut self", "response_box: &HTTPResponseBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::super::*", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{SocketBox, HTTPServerBox, HTTPRequestBox, HTTPResponseBox}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 4, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 10, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_socket_method", "full_name": "", "start_line": 12, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 20, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 26, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 27, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 28, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 32, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 38, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 42, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 51, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 58, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 62, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 71, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 80, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 90, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 108, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 117, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_http_server_method", "full_name": "", "start_line": 132, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 147, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 151, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 157, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 161, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 170, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 185, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 186, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 190, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_http_request_method", "full_name": "", "start_line": 205, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 213, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 222, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 231, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_http_response_method", "full_name": "", "start_line": 246, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 254, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 261, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 265, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 274, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 45, "max_depth": 11, "node_type_counts": { "function": 4, "if_statement": 23, "file_root": 1, "import": 2, "class": 1, "variable": 14 }, "classes": 1, "functions": 4, "methods": 0, "variables": 14, "control_structures": 23 }, "generated_at": "2025-08-15T16:19:40.623612307Z" }, { "file_info": { "name": "io_methods.rs", "path": "src/interpreter/methods/io_methods.rs", "size_bytes": 0, "total_lines": 108, "code_lines": 93, "comment_lines": 12, "empty_lines": 3, "code_ratio": 0.8611111111111112, "analyzed_at": "2025-08-15T16:19:40.620412638Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 14, "end_line": 108, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_file_method", "start_line": 17, "end_line": 72, "parameters": [ "&mut self", "file_box: &FileBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_result_method", "start_line": 76, "end_line": 107, "parameters": [ "&mut self", "result_box: &ResultBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::super::*", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{ResultBox, StringBox, NyashBox}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FileBox", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 2, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 14, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_file_method", "full_name": "", "start_line": 17, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 21, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 29, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 34, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 38, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 46, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 54, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 60, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_result_method", "full_name": "", "start_line": 76, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 80, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 96, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 18, "max_depth": 11, "node_type_counts": { "function": 2, "if_statement": 9, "variable": 2, "file_root": 1, "import": 3, "class": 1 }, "classes": 1, "functions": 2, "methods": 0, "variables": 2, "control_structures": 9 }, "generated_at": "2025-08-15T16:19:40.620419992Z" }, { "file_info": { "name": "mod.rs", "path": "src/interpreter/methods/mod.rs", "size_bytes": 0, "total_lines": 33, "code_lines": 13, "comment_lines": 18, "empty_lines": 2, "code_ratio": 0.3939393939393939, "analyzed_at": "2025-08-15T16:19:40.620554637Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 28, "metadata": {} }, { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 29, "metadata": {} }, { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 30, "metadata": {} }, { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 31, "metadata": {} }, { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 32, "metadata": {} }, { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 33, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 0, "function_count": 0, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 28, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 29, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 30, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 31, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 32, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 33, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 7, "max_depth": 1, "node_type_counts": { "file_root": 1, "import": 6 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.620556929Z" }, { "file_info": { "name": "network_methods.rs", "path": "src/interpreter/methods/network_methods.rs", "size_bytes": 0, "total_lines": 124, "code_lines": 112, "comment_lines": 9, "empty_lines": 3, "code_ratio": 0.9032258064516129, "analyzed_at": "2025-08-15T16:19:40.620515140Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 13, "end_line": 124, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_http_method", "start_line": 15, "end_line": 71, "parameters": [ "&mut self", "http_box: &HttpClientBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } }, { "name": "execute_stream_method", "start_line": 74, "end_line": 123, "parameters": [ "&mut self", "stream_box: &StreamBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{HttpClientBox, StreamBox}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 2, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 13, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_http_method", "full_name": "", "start_line": 15, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 19, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 24, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 28, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 33, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 34, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 38, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 48, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 57, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 62, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_stream_method", "full_name": "", "start_line": 74, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 78, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 83, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 87, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 92, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 96, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 104, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 112, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 28, "max_depth": 11, "node_type_counts": { "function": 2, "if_statement": 10, "class": 1, "variable": 11, "file_root": 1, "import": 3 }, "classes": 1, "functions": 2, "methods": 0, "variables": 11, "control_structures": 10 }, "generated_at": "2025-08-15T16:19:40.620522722Z" }, { "file_info": { "name": "p2p_methods.rs", "path": "src/interpreter/methods/p2p_methods.rs", "size_bytes": 0, "total_lines": 114, "code_lines": 83, "comment_lines": 16, "empty_lines": 15, "code_ratio": 0.7280701754385965, "analyzed_at": "2025-08-15T16:19:40.620457146Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 13, "end_line": 114, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_intent_box_method", "start_line": 15, "end_line": 41, "parameters": [ "&mut self", "intent_box: &IntentBox", "method: &str", "_arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(in crate::interpreter)", "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::interpreter::core::NyashInterpreter", "imported_names": [], "alias": null, "line_number": 6, "metadata": {} }, { "type": "rust_use", "module_path": "crate::interpreter::core::RuntimeError", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::ASTNode", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{IntentBox}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::method_box::MethodBox", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 1, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 6, "end_line": 6, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 13, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_intent_box_method", "full_name": "", "start_line": 15, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 9, "max_depth": 3, "node_type_counts": { "file_root": 1, "import": 6, "class": 1, "function": 1 }, "classes": 1, "functions": 1, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.620467476Z" }, { "file_info": { "name": "mod.rs", "path": "src/interpreter/mod.rs", "size_bytes": 0, "total_lines": 115, "code_lines": 83, "comment_lines": 19, "empty_lines": 13, "code_ratio": 0.7217391304347827, "analyzed_at": "2025-08-15T16:19:40.615250072Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ControlFlow", "parent_class": null, "start_line": 50, "end_line": 55, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "ConstructorContext", "parent_class": null, "start_line": 59, "end_line": 62, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoxDeclaration", "parent_class": null, "start_line": 66, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "StaticBoxDefinition", "parent_class": null, "start_line": 81, "end_line": 93, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "StaticBoxState", "parent_class": null, "start_line": 97, "end_line": 101, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "FunctionDeclaration", "parent_class": null, "start_line": 105, "end_line": 109, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } } ], "functions": [], "imports": [ { "type": "rust_use", "module_path": "crate::ast::{ASTNode, BinaryOperator, CatchClause}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox, AddBox, SubtractBox, MultiplyBox, DivideBox, ModuloBox, CompareBox, ArrayBox, FileBox, ResultBox, ErrorBox, BoxCore}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FutureBox", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::channel_box::ChannelBox", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::{MathBox, FloatBox, RangeBox}", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::time_box::{TimeBox, DateTimeBox, TimerBox}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::map_box::MapBox", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::random_box::RandomBox", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::sound_box::SoundBox", "imported_names": [], "alias": null, "line_number": 18, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::debug_box::DebugBox", "imported_names": [], "alias": null, "line_number": 19, "metadata": {} }, { "type": "rust_use", "module_path": "crate::method_box::MethodBox", "imported_names": [], "alias": null, "line_number": 20, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::web::{WebDisplayBox, WebConsoleBox, WebCanvasBox}", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} }, { "type": "rust_use", "module_path": "crate::finalization", "imported_names": [], "alias": null, "line_number": 25, "metadata": {} }, { "type": "rust_use", "module_path": "crate::exception_box", "imported_names": [], "alias": null, "line_number": 26, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 27, "metadata": {} }, { "type": "rust_use", "module_path": "core::NyashInterpreter", "imported_names": [], "alias": null, "line_number": 45, "metadata": {} }, { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 112, "metadata": {} }, { "type": "rust_use", "module_path": "crate::stdlib::BuiltinStdlib", "imported_names": [], "alias": null, "line_number": 115, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 0, "import_count": 19, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 17, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 18, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 19, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 20, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 24, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 25, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 26, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 27, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 45, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ControlFlow", "full_name": "", "start_line": 50, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstructorContext", "full_name": "", "start_line": 59, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxDeclaration", "full_name": "", "start_line": 66, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StaticBoxDefinition", "full_name": "", "start_line": 81, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StaticBoxState", "full_name": "", "start_line": 97, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FunctionDeclaration", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 112, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 115, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 26, "max_depth": 1, "node_type_counts": { "class": 6, "file_root": 1, "import": 19 }, "classes": 6, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.615265117Z" }, { "file_info": { "name": "objects.rs", "path": "src/interpreter/objects.rs", "size_bytes": 0, "total_lines": 1106, "code_lines": 837, "comment_lines": 187, "empty_lines": 82, "code_ratio": 0.7567811934900542, "analyzed_at": "2025-08-15T16:19:40.615819418Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 15, "end_line": 1106, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_new", "start_line": 17, "end_line": 735, "parameters": [ "&mut self", "class: &str", "arguments: &[ASTNode]", "type_arguments: &[String]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 48, "end_line": 50, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 723, "end_line": 723, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 724, "end_line": 724, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 725, "end_line": 725, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_constructor", "start_line": 738, "end_line": 797, "parameters": [ "&mut self", "instance: &SharedNyashBox", "constructor: &ASTNode", "arguments: &[ASTNode]", "box_decl: &BoxDeclaration" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "register_box_declaration", "start_line": 800, "end_line": 848, "parameters": [ "&mut self", "name: String", "fields", "methods", "constructors", "init_fields", "weak_fields", "is_interface: bool", "extends", "implements", "type_parameters" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "validate_generic_arguments", "start_line": 851, "end_line": 888, "parameters": [ "&self", "box_decl: &BoxDeclaration", "type_arguments: &[String]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_valid_type", "start_line": 891, "end_line": 917, "parameters": [ "&self", "type_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_parent_constructor", "start_line": 920, "end_line": 954, "parameters": [ "&mut self", "parent_class: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 936, "end_line": 936, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 940, "end_line": 942, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "resolve_inheritance", "start_line": 957, "end_line": 1045, "parameters": [ "&self", "box_decl: &BoxDeclaration" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "specialize_generic_class", "start_line": 1048, "end_line": 1094, "parameters": [ "&self", "generic_decl: &BoxDeclaration", "type_arguments: &[String]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "substitute_types_in_fields", "start_line": 1097, "end_line": 1105, "parameters": [ "&self", "fields: &[String]", "_type_mapping: &HashMap" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{NullBox, ConsoleBox, FloatBox, DateTimeBox, SocketBox, HTTPServerBox, HTTPRequestBox, HTTPResponseBox}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::SharedNyashBox", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::is_builtin_box", "imported_names": [], "alias": null, "line_number": 965, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 1053, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 15, "import_count": 6, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 15, "end_line": 1106, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_new", "full_name": "", "start_line": 17, "end_line": 735, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 24, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 29, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 30, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 31, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 36, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 42, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 47, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 51, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 57, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 62, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 63, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 68, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 92, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 98, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 99, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 110, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 115, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 116, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 122, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 128, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 130, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 134, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 145, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 150, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 156, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 161, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 166, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 221, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 226, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 232, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 237, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 238, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 250, "end_line": 254, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 255, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 256, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 257, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 268, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 276, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 276, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 286, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 286, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 295, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 296, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 296, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 304, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 309, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 314, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 315, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 316, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 319, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 320, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 331, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 337, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 338, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 338, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 344, "end_line": 356, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 349, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 360, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 365, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 373, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 378, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 379, "end_line": 387, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 380, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 398, "end_line": 402, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 403, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 409, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 414, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 420, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 425, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 431, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 436, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 442, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 447, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 453, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 458, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 463, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 468, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 469, "end_line": 480, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 484, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 489, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 490, "end_line": 501, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 506, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 513, "end_line": 513, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 514, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 514, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 523, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 524, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 532, "end_line": 532, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 538, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 545, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 546, "end_line": 552, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 546, "end_line": 552, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 555, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 556, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 556, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 571, "end_line": 575, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 576, "end_line": 576, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 581, "end_line": 585, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 586, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 591, "end_line": 595, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 598, "end_line": 598, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 601, "end_line": 601, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 602, "end_line": 609, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 603, "end_line": 603, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 613, "end_line": 617, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 618, "end_line": 618, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 623, "end_line": 627, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 628, "end_line": 628, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 633, "end_line": 637, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 638, "end_line": 638, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 643, "end_line": 647, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 648, "end_line": 648, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 655, "end_line": 659, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 662, "end_line": 667, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 663, "end_line": 663, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 670, "end_line": 672, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 675, "end_line": 679, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 682, "end_line": 689, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 682, "end_line": 689, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 684, "end_line": 684, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 685, "end_line": 685, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 692, "end_line": 692, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 695, "end_line": 695, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 696, "end_line": 696, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 699, "end_line": 705, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 707, "end_line": 707, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 713, "end_line": 713, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 717, "end_line": 717, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 718, "end_line": 718, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 719, "end_line": 719, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 720, "end_line": 720, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 722, "end_line": 732, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 728, "end_line": 732, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_constructor", "full_name": "", "start_line": 738, "end_line": 797, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 745, "end_line": 796, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 747, "end_line": 747, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 748, "end_line": 750, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 753, "end_line": 757, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 760, "end_line": 760, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 764, "end_line": 766, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 772, "end_line": 772, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 779, "end_line": 779, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 780, "end_line": 785, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 781, "end_line": 784, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_box_declaration", "full_name": "", "start_line": 800, "end_line": 848, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 815, "end_line": 828, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 816, "end_line": 816, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 829, "end_line": 840, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 843, "end_line": 843, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "validate_generic_arguments", "full_name": "", "start_line": 851, "end_line": 888, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 854, "end_line": 865, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 868, "end_line": 876, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 879, "end_line": 885, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 880, "end_line": 884, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_valid_type", "full_name": "", "start_line": 891, "end_line": 917, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 893, "end_line": 900, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 904, "end_line": 904, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 906, "end_line": 906, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 910, "end_line": 910, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 912, "end_line": 912, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_parent_constructor", "full_name": "", "start_line": 920, "end_line": 954, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 923, "end_line": 928, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 924, "end_line": 924, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 932, "end_line": 932, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 933, "end_line": 933, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 935, "end_line": 953, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 939, "end_line": 942, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_inheritance", "full_name": "", "start_line": 957, "end_line": 1045, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 959, "end_line": 959, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 960, "end_line": 960, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 963, "end_line": 1002, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 965, "end_line": 965, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 967, "end_line": 967, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 972, "end_line": 974, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 977, "end_line": 1001, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 981, "end_line": 986, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 982, "end_line": 982, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 989, "end_line": 993, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 996, "end_line": 996, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1008, "end_line": 1012, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1009, "end_line": 1011, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1014, "end_line": 1016, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1019, "end_line": 1042, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1020, "end_line": 1025, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1021, "end_line": 1021, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1027, "end_line": 1031, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1034, "end_line": 1041, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1035, "end_line": 1040, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "specialize_generic_class", "full_name": "", "start_line": 1048, "end_line": 1094, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1053, "end_line": 1053, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1056, "end_line": 1060, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1063, "end_line": 1063, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1064, "end_line": 1066, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1069, "end_line": 1069, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1080, "end_line": 1080, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1081, "end_line": 1087, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1083, "end_line": 1086, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1084, "end_line": 1084, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "substitute_types_in_fields", "full_name": "", "start_line": 1097, "end_line": 1105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 219, "max_depth": 18, "node_type_counts": { "import": 6, "function": 9, "class": 1, "if_statement": 75, "variable": 116, "for_loop": 11, "file_root": 1 }, "classes": 1, "functions": 9, "methods": 0, "variables": 116, "control_structures": 86 }, "generated_at": "2025-08-15T16:19:40.615885517Z" }, { "file_info": { "name": "statements.rs", "path": "src/interpreter/statements.rs", "size_bytes": 0, "total_lines": 523, "code_lines": 385, "comment_lines": 69, "empty_lines": 69, "code_ratio": 0.7361376673040153, "analyzed_at": "2025-08-15T16:19:40.616079875Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 13, "end_line": 523, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_statement", "start_line": 15, "end_line": 175, "parameters": [ "&mut self", "statement: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_if", "start_line": 178, "end_line": 202, "parameters": [ "&mut self", "condition: &ASTNode", "then_body: &[ASTNode]", "else_body: &Option>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_loop", "start_line": 205, "end_line": 243, "parameters": [ "&mut self", "condition: &Box", "body: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_assignment", "start_line": 246, "end_line": 392, "parameters": [ "&mut self", "target: &ASTNode", "value: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 298, "end_line": 298, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 313, "end_line": 313, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 325, "end_line": 327, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 346, "end_line": 346, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 358, "end_line": 360, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 379, "end_line": 379, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_try_catch", "start_line": 395, "end_line": 476, "parameters": [ "&mut self", "try_body: &[ASTNode]", "catch_clauses: &[super::CatchClause]", "finally_body: &Option>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_throw", "start_line": 479, "end_line": 492, "parameters": [ "&mut self", "expression: &ASTNode" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_using_statement", "start_line": 495, "end_line": 512, "parameters": [ "&mut self", "namespace_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "ensure_stdlib_initialized", "start_line": 515, "end_line": 522, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::BuiltinStdlib", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 14, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 13, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_statement", "full_name": "", "start_line": 15, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 22, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 36, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 59, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 91, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 93, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 94, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 95, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 98, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 108, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 128, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 144, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 145, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 147, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 159, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 162, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_if", "full_name": "", "start_line": 178, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 180, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 183, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 185, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 186, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 188, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 192, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 193, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_loop", "full_name": "", "start_line": 205, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 206, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 208, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 210, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 215, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 221, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_assignment", "full_name": "", "start_line": 246, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 247, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 259, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 265, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 280, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 282, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 291, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 292, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 293, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 305, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 306, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 307, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 324, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 329, "end_line": 352, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 331, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 338, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 339, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 340, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 357, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 362, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 364, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 371, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 372, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 373, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_try_catch", "full_name": "", "start_line": 395, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Option>", "full_name": "", "start_line": 397, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 400, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 401, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 405, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 406, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 425, "end_line": 455, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 426, "end_line": 454, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 428, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 429, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 435, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 440, "end_line": 445, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 442, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 448, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 458, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 459, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 461, "end_line": 463, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 468, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_throw", "full_name": "", "start_line": 479, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 480, "end_line": 480, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 483, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 483, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_using_statement", "full_name": "", "start_line": 495, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 499, "end_line": 503, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ensure_stdlib_initialized", "full_name": "", "start_line": 515, "end_line": 522, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 516, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 92, "max_depth": 19, "node_type_counts": { "class": 1, "function": 8, "variable": 25, "import": 3, "if_statement": 44, "file_root": 1, "for_loop": 10 }, "classes": 1, "functions": 8, "methods": 0, "variables": 25, "control_structures": 54 }, "generated_at": "2025-08-15T16:19:40.616114179Z" }, { "file_info": { "name": "system_methods.rs", "path": "src/interpreter/system_methods.rs", "size_bytes": 0, "total_lines": 391, "code_lines": 356, "comment_lines": 26, "empty_lines": 9, "code_ratio": 0.9104859335038363, "analyzed_at": "2025-08-15T16:19:40.615022481Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 16, "end_line": 391, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_time_method", "start_line": 18, "end_line": 74, "parameters": [ "&mut self", "time_box: &TimeBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_datetime_method", "start_line": 77, "end_line": 189, "parameters": [ "&mut self", "datetime_box: &DateTimeBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_timer_method", "start_line": 192, "end_line": 227, "parameters": [ "&mut self", "timer_box: &TimerBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_debug_method", "start_line": 230, "end_line": 390, "parameters": [ "&mut self", "debug_box: &DebugBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 348, "end_line": 348, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{TimeBox, DateTimeBox}", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 5, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 16, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_time_method", "full_name": "", "start_line": 18, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 22, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 29, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 37, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 45, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 53, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 61, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_datetime_method", "full_name": "", "start_line": 77, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 80, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 96, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 104, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 112, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 120, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 128, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 136, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 144, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 152, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 168, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 176, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_timer_method", "full_name": "", "start_line": 192, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 195, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 196, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 211, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 217, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_debug_method", "full_name": "", "start_line": 230, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 233, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 234, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 241, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 249, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 257, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 263, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 263, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 273, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 281, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 286, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 286, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 296, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 301, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 301, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 311, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 319, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 324, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 324, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 334, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 339, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 339, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 347, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 353, "end_line": 357, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 361, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 369, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 377, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 61, "max_depth": 11, "node_type_counts": { "class": 1, "function": 4, "variable": 11, "file_root": 1, "import": 3, "if_statement": 37, "for_loop": 4 }, "classes": 1, "functions": 4, "methods": 0, "variables": 11, "control_structures": 41 }, "generated_at": "2025-08-15T16:19:40.615044511Z" }, { "file_info": { "name": "web_methods.rs", "path": "src/interpreter/web_methods.rs", "size_bytes": 0, "total_lines": 451, "code_lines": 420, "comment_lines": 24, "empty_lines": 7, "code_ratio": 0.9312638580931264, "analyzed_at": "2025-08-15T16:19:40.615109023Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 20, "end_line": 451, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_web_display_method", "start_line": 23, "end_line": 146, "parameters": [ "&mut self", "web_display_box: &WebDisplayBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_web_console_method", "start_line": 150, "end_line": 253, "parameters": [ "&mut self", "web_console_box: &WebConsoleBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_web_canvas_method", "start_line": 257, "end_line": 450, "parameters": [ "&mut self", "web_canvas_box: &WebCanvasBox", "method: &str", "arguments: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::web::{WebDisplayBox, WebConsoleBox, WebCanvasBox}", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 3, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 17, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 20, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_web_display_method", "full_name": "", "start_line": 23, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 26, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 34, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 39, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 44, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 54, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 64, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 69, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 74, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 79, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 80, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 85, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 95, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 114, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 123, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 132, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_web_console_method", "full_name": "", "start_line": 150, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 153, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 161, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 166, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 171, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 176, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 181, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 186, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 191, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 201, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 206, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 211, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 220, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 229, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 239, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_web_canvas_method", "full_name": "", "start_line": 257, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 261, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 268, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 277, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 282, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 282, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 291, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 291, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 293, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 300, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 300, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 302, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 309, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 309, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 311, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 318, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 323, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 328, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 328, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 330, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 337, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 337, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 339, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 346, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 346, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 348, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 355, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 355, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 357, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 364, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 365, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 365, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 378, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 383, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 383, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 385, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 392, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 392, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 394, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 401, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 401, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 403, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 410, "end_line": 410, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 415, "end_line": 419, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 420, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 421, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 421, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 423, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 430, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 430, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 432, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 439, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 440, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 100, "max_depth": 13, "node_type_counts": { "variable": 37, "class": 1, "for_loop": 3, "if_statement": 53, "import": 2, "function": 3, "file_root": 1 }, "classes": 1, "functions": 3, "methods": 0, "variables": 37, "control_structures": 56 }, "generated_at": "2025-08-15T16:19:40.615161695Z" }, { "file_info": { "name": "lib.rs", "path": "src/lib.rs", "size_bytes": 0, "total_lines": 207, "code_lines": 136, "comment_lines": 39, "empty_lines": 32, "code_ratio": 0.6570048309178744, "analyzed_at": "2025-08-15T16:19:40.615145477Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashWasm", "parent_class": null, "start_line": 82, "end_line": 84, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashWasm", "parent_class": null, "start_line": 88, "end_line": 207, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 91, "end_line": 103, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "eval", "start_line": 107, "end_line": 160, "parameters": [ "&mut self", "code: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 116, "end_line": 116, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 117, "end_line": 117, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 157, "end_line": 157, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 159, "end_line": 159, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "eval_single_block", "start_line": 163, "end_line": 183, "parameters": [ "&mut self", "code: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_complete_statement", "start_line": 186, "end_line": 200, "parameters": [ "&self", "code: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 195, "end_line": 195, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 196, "end_line": 196, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "version", "start_line": 204, "end_line": 206, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "wasm_bindgen::prelude::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 52, "metadata": {} }, { "type": "rust_use", "module_path": "box_arithmetic::{AddBox, SubtractBox, MultiplyBox, DivideBox, ModuloBox, CompareBox}", "imported_names": [], "alias": null, "line_number": 53, "metadata": {} }, { "type": "rust_use", "module_path": "environment::{Environment, PythonCompatEnvironment}", "imported_names": [], "alias": null, "line_number": 54, "metadata": {} }, { "type": "rust_use", "module_path": "tokenizer::{NyashTokenizer, TokenType, Token}", "imported_names": [], "alias": null, "line_number": 55, "metadata": {} }, { "type": "rust_use", "module_path": "type_box::{TypeBox, TypeRegistry, MethodSignature}", "imported_names": [], "alias": null, "line_number": 56, "metadata": {} }, { "type": "rust_use", "module_path": "ast::{ASTNode, BinaryOperator, LiteralValue}", "imported_names": [], "alias": null, "line_number": 57, "metadata": {} }, { "type": "rust_use", "module_path": "parser::{NyashParser, ParseError}", "imported_names": [], "alias": null, "line_number": 58, "metadata": {} }, { "type": "rust_use", "module_path": "interpreter::{NyashInterpreter, RuntimeError}", "imported_names": [], "alias": null, "line_number": 59, "metadata": {} }, { "type": "rust_use", "module_path": "instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 60, "metadata": {} }, { "type": "rust_use", "module_path": "channel_box::{ChannelBox, MessageBox}", "imported_names": [], "alias": null, "line_number": 61, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::math_box::{MathBox, FloatBox, RangeBox}", "imported_names": [], "alias": null, "line_number": 62, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::time_box::{TimeBox, DateTimeBox, TimerBox}", "imported_names": [], "alias": null, "line_number": 63, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::map_box::MapBox", "imported_names": [], "alias": null, "line_number": 64, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::random_box::RandomBox", "imported_names": [], "alias": null, "line_number": 65, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::sound_box::SoundBox", "imported_names": [], "alias": null, "line_number": 66, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::debug_box::DebugBox", "imported_names": [], "alias": null, "line_number": 67, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::console_box::ConsoleBox", "imported_names": [], "alias": null, "line_number": 68, "metadata": {} }, { "type": "rust_use", "module_path": "method_box::{MethodBox, BoxType, FunctionDefinition, EphemeralInstance}", "imported_names": [], "alias": null, "line_number": 69, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::null_box::{NullBox, null}", "imported_names": [], "alias": null, "line_number": 70, "metadata": {} }, { "type": "rust_use", "module_path": "value::NyashValue", "imported_names": [], "alias": null, "line_number": 73, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_test::wasm_test::test_direct_canvas_draw", "imported_names": [], "alias": null, "line_number": 77, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 2, "function_count": 11, "import_count": 22, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 53, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 56, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 58, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 60, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 62, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 68, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 69, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 70, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 73, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashWasm", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashWasm", "full_name": "", "start_line": 88, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 91, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "eval", "full_name": "", "start_line": 107, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 109, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 110, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<&str>", "full_name": "", "start_line": 115, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 121, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 126, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 129, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 135, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 137, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 148, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 150, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "eval_single_block", "full_name": "", "start_line": 163, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 175, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_complete_statement", "full_name": "", "start_line": 186, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 190, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 195, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "version", "full_name": "", "start_line": 204, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 52, "max_depth": 12, "node_type_counts": { "file_root": 1, "if_statement": 9, "for_loop": 1, "function": 5, "class": 2, "import": 22, "variable": 12 }, "classes": 2, "functions": 5, "methods": 0, "variables": 12, "control_structures": 10 }, "generated_at": "2025-08-15T16:19:40.615160825Z" }, { "file_info": { "name": "main.rs", "path": "src/main.rs", "size_bytes": 0, "total_lines": 69, "code_lines": 41, "comment_lines": 18, "empty_lines": 10, "code_ratio": 0.5942028985507246, "analyzed_at": "2025-08-15T16:19:40.615808870Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [ { "name": "main", "start_line": 49, "end_line": 56, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_main_functionality", "start_line": 64, "end_line": 68, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "cli::CliConfig", "imported_names": [], "alias": null, "line_number": 45, "metadata": {} }, { "type": "rust_use", "module_path": "runner::NyashRunner", "imported_names": [], "alias": null, "line_number": 46, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 60, "metadata": {} }, { "type": "rust_use", "module_path": "box_trait::{StringBox, BoxCore}", "imported_names": [], "alias": null, "line_number": 61, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 0, "function_count": 2, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 45, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "main", "full_name": "", "start_line": 49, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 51, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 60, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_main_functionality", "full_name": "", "start_line": 64, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 10, "max_depth": 5, "node_type_counts": { "file_root": 1, "import": 4, "function": 2, "variable": 3 }, "classes": 0, "functions": 2, "methods": 0, "variables": 3, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.615813921Z" }, { "file_info": { "name": "message_bus.rs", "path": "src/messaging/message_bus.rs", "size_bytes": 0, "total_lines": 140, "code_lines": 86, "comment_lines": 35, "empty_lines": 19, "code_ratio": 0.6142857142857143, "analyzed_at": "2025-08-15T16:19:40.622527394Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BusEndpoint", "parent_class": null, "start_line": 31, "end_line": 34, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BusEndpoint", "parent_class": null, "start_line": 36, "end_line": 63, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SendError", "parent_class": null, "start_line": 67, "end_line": 72, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 75, "end_line": 78, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 80, "end_line": 86, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Debug" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 91, "end_line": 128, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 135, "end_line": 140, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 37, "end_line": 42, "parameters": [ "node_id: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_handler", "start_line": 45, "end_line": 50, "parameters": [ "&self", "intent_name: &str", "handler: IntentHandler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "deliver", "start_line": 53, "end_line": 62, "parameters": [ "&self", "intent: IntentBox", "from: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 81, "end_line": 85, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 93, "end_line": 97, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "register_node", "start_line": 100, "end_line": 102, "parameters": [ "&mut self", "id: String", "endpoint: BusEndpoint" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "unregister_node", "start_line": 105, "end_line": 107, "parameters": [ "&mut self", "id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "node_exists", "start_line": 110, "end_line": 112, "parameters": [ "&self", "id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "route", "start_line": 115, "end_line": 122, "parameters": [ "&self", "to: &str", "intent: IntentBox", "from: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_nodes", "start_line": 125, "end_line": 127, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 131, "end_line": 133, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "global", "start_line": 137, "end_line": 139, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::boxes::IntentBox", "imported_names": [], "alias": null, "line_number": 21, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 22, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 23, "metadata": {} }, { "type": "rust_use", "module_path": "once_cell::sync::Lazy", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 12, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 22, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 23, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 24, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BusEndpoint", "full_name": "", "start_line": 31, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BusEndpoint", "full_name": "", "start_line": 36, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 37, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_handler", "full_name": "", "start_line": 45, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "deliver", "full_name": "", "start_line": 53, "end_line": 62, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 54, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 57, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 58, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SendError", "full_name": "", "start_line": 67, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "full_name": "", "start_line": 75, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "full_name": "", "start_line": 80, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "full_name": "", "start_line": 91, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 93, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_node", "full_name": "", "start_line": 100, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "unregister_node", "full_name": "", "start_line": 105, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "node_exists", "full_name": "", "start_line": 110, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "route", "full_name": "", "start_line": 115, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 116, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_nodes", "full_name": "", "start_line": 125, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "GLOBAL_MESSAGE_BUS", "full_name": "", "start_line": 131, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "full_name": "", "start_line": 135, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "global", "full_name": "", "start_line": 137, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 30, "max_depth": 9, "node_type_counts": { "variable": 4, "import": 4, "class": 7, "for_loop": 1, "function": 11, "file_root": 1, "if_statement": 2 }, "classes": 7, "functions": 11, "methods": 0, "variables": 4, "control_structures": 3 }, "generated_at": "2025-08-15T16:19:40.622536421Z" }, { "file_info": { "name": "mod.rs", "path": "src/messaging/mod.rs", "size_bytes": 0, "total_lines": 9, "code_lines": 2, "comment_lines": 5, "empty_lines": 2, "code_ratio": 0.2222222222222222, "analyzed_at": "2025-08-15T16:19:40.623477253Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "message_bus::{MessageBus, MessageBusData, BusEndpoint, IntentHandler, SendError}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 0, "function_count": 0, "import_count": 1, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 2, "max_depth": 1, "node_type_counts": { "file_root": 1, "import": 1 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.623478752Z" }, { "file_info": { "name": "method_box.rs", "path": "src/method_box.rs", "size_bytes": 0, "total_lines": 220, "code_lines": 149, "comment_lines": 36, "empty_lines": 35, "code_ratio": 0.6772727272727272, "analyzed_at": "2025-08-15T16:19:40.615798965Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxType", "parent_class": null, "start_line": 17, "end_line": 26, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "FunctionDefinition", "parent_class": null, "start_line": 30, "end_line": 35, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MethodBox", "parent_class": null, "start_line": 39, "end_line": 51, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MethodBox", "parent_class": null, "start_line": 53, "end_line": 93, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MethodBox", "parent_class": null, "start_line": 95, "end_line": 126, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "MethodBox", "parent_class": null, "start_line": 128, "end_line": 148, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "MethodBox", "parent_class": null, "start_line": 150, "end_line": 154, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "EphemeralInstance", "parent_class": null, "start_line": 158, "end_line": 164, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "EphemeralInstance", "parent_class": null, "start_line": 168, "end_line": 215, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 55, "end_line": 80, "parameters": [ "instance", "method_name: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 58, "end_line": 69, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "invoke", "start_line": 83, "end_line": 87, "parameters": [ "&self", "_args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_instance", "start_line": 90, "end_line": 92, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_string_box", "start_line": 96, "end_line": 98, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 100, "end_line": 112, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 114, "end_line": 116, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 118, "end_line": 120, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 123, "end_line": 125, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 129, "end_line": 131, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 133, "end_line": 135, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 137, "end_line": 139, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 141, "end_line": 143, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 145, "end_line": 147, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 151, "end_line": 153, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 170, "end_line": 175, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "from_instance", "start_line": 178, "end_line": 183, "parameters": [ "instance" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_local", "start_line": 186, "end_line": 188, "parameters": [ "&mut self", "name: String", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_local", "start_line": 191, "end_line": 193, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 192, "end_line": 192, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "resolve_variable", "start_line": 196, "end_line": 214, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "create_method_box", "start_line": 218, "end_line": 220, "parameters": [ "instance", "method_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::ASTNode", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 166, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 9, "function_count": 22, "import_count": 7, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxType", "full_name": "", "start_line": 17, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FunctionDefinition", "full_name": "", "start_line": 30, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodBox", "full_name": "", "start_line": 39, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodBox", "full_name": "", "start_line": 53, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 55, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 57, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 57, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 59, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "invoke", "full_name": "", "start_line": 83, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_instance", "full_name": "", "start_line": 90, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodBox", "full_name": "", "start_line": 95, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 96, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 100, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 101, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 103, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 118, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 123, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodBox", "full_name": "", "start_line": 128, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 133, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 137, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 141, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 145, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodBox", "full_name": "", "start_line": 150, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 151, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EphemeralInstance", "full_name": "", "start_line": 158, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 166, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EphemeralInstance", "full_name": "", "start_line": 168, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 170, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_instance", "full_name": "", "start_line": 178, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_local", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_local", "full_name": "", "start_line": 191, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_variable", "full_name": "", "start_line": 196, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 198, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 204, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 205, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 206, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_method_box", "full_name": "", "start_line": 218, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 48, "max_depth": 13, "node_type_counts": { "if_statement": 7, "class": 9, "import": 7, "variable": 4, "file_root": 1, "function": 20 }, "classes": 9, "functions": 20, "methods": 0, "variables": 4, "control_structures": 7 }, "generated_at": "2025-08-15T16:19:40.615810490Z" }, { "file_info": { "name": "basic_block.rs", "path": "src/mir/basic_block.rs", "size_bytes": 0, "total_lines": 428, "code_lines": 295, "comment_lines": 55, "empty_lines": 78, "code_ratio": 0.6892523364485982, "analyzed_at": "2025-08-15T16:19:40.619384291Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BasicBlockId", "parent_class": null, "start_line": 13, "end_line": 13, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BasicBlockId", "parent_class": null, "start_line": 15, "end_line": 35, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BasicBlockId", "parent_class": null, "start_line": 37, "end_line": 41, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "BasicBlock", "parent_class": null, "start_line": 45, "end_line": 66, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BasicBlock", "parent_class": null, "start_line": 68, "end_line": 223, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BasicBlockIdGenerator", "parent_class": null, "start_line": 227, "end_line": 229, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BasicBlockIdGenerator", "parent_class": null, "start_line": 231, "end_line": 253, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BasicBlockIdGenerator", "parent_class": null, "start_line": 255, "end_line": 259, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } }, { "name": "BasicBlock", "parent_class": null, "start_line": 261, "end_line": 290, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 17, "end_line": 19, "parameters": [ "id: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "as_u32", "start_line": 22, "end_line": 24, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "from_usize", "start_line": 27, "end_line": 29, "parameters": [ "id: usize" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_usize", "start_line": 32, "end_line": 34, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 38, "end_line": 40, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 70, "end_line": 80, "parameters": [ "id: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_instruction", "start_line": 83, "end_line": 99, "parameters": [ "&mut self", "instruction: MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_terminator", "start_line": 102, "end_line": 109, "parameters": [ "&self", "instruction: &MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "update_successors_from_terminator", "start_line": 112, "end_line": 134, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "add_predecessor", "start_line": 137, "end_line": 139, "parameters": [ "&mut self", "pred: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "remove_predecessor", "start_line": 142, "end_line": 144, "parameters": [ "&mut self", "pred: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "all_instructions", "start_line": 147, "end_line": 149, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "defined_values", "start_line": 152, "end_line": 156, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 154, "end_line": 154, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "used_values", "start_line": 159, "end_line": 163, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 161, "end_line": 161, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "is_empty", "start_line": 166, "end_line": 168, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_terminated", "start_line": 171, "end_line": 173, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "ends_with_return", "start_line": 176, "end_line": 178, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "phi_instructions", "start_line": 181, "end_line": 184, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 183, "end_line": 183, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "non_phi_instructions", "start_line": 187, "end_line": 190, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 189, "end_line": 189, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "insert_instruction_after_phis", "start_line": 193, "end_line": 197, "parameters": [ "&mut self", "instruction: MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_terminator", "start_line": 200, "end_line": 208, "parameters": [ "&mut self", "terminator: MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "mark_reachable", "start_line": 211, "end_line": 213, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "dominates", "start_line": 216, "end_line": 222, "parameters": [ "&self", "other: BasicBlockId", "dominators: &[HashSet]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 233, "end_line": 235, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "next", "start_line": 238, "end_line": 242, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "peek_next", "start_line": 245, "end_line": 247, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "reset", "start_line": 250, "end_line": 252, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "default", "start_line": 256, "end_line": 258, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 262, "end_line": 289, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 268, "end_line": 268, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_basic_block_creation", "start_line": 298, "end_line": 306, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_instruction_addition", "start_line": 309, "end_line": 323, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_terminator_addition", "start_line": 326, "end_line": 340, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_branch_successors", "start_line": 343, "end_line": 361, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_basic_block_id_generator", "start_line": 364, "end_line": 376, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_value_tracking", "start_line": 379, "end_line": 400, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_phi_instruction_ordering", "start_line": 403, "end_line": 427, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{MirInstruction, ValueId, EffectMask}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashSet", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 294, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{ConstValue, BinaryOp}", "imported_names": [], "alias": null, "line_number": 295, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 9, "function_count": 41, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlockId", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlockId", "full_name": "", "start_line": 15, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 17, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_u32", "full_name": "", "start_line": 22, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_usize", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_usize", "full_name": "", "start_line": 32, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlockId", "full_name": "", "start_line": 37, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 38, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlock", "full_name": "", "start_line": 45, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlock", "full_name": "", "start_line": 68, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 70, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_instruction", "full_name": "", "start_line": 83, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 88, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 89, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_terminator", "full_name": "", "start_line": 102, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "update_successors_from_terminator", "full_name": "", "start_line": 112, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 115, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_predecessor", "full_name": "", "start_line": 137, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "remove_predecessor", "full_name": "", "start_line": 142, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "all_instructions", "full_name": "", "start_line": 147, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "defined_values", "full_name": "", "start_line": 152, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "used_values", "full_name": "", "start_line": 159, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_empty", "full_name": "", "start_line": 166, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_terminated", "full_name": "", "start_line": 171, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ends_with_return", "full_name": "", "start_line": 176, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "phi_instructions", "full_name": "", "start_line": 181, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "non_phi_instructions", "full_name": "", "start_line": 187, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "insert_instruction_after_phis", "full_name": "", "start_line": 193, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 194, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_terminator", "full_name": "", "start_line": 200, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 201, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "mark_reachable", "full_name": "", "start_line": 211, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dominates", "full_name": "", "start_line": 216, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 217, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlockIdGenerator", "full_name": "", "start_line": 227, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlockIdGenerator", "full_name": "", "start_line": 231, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 233, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next", "full_name": "", "start_line": 238, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 239, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "peek_next", "full_name": "", "start_line": 245, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 250, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlockIdGenerator", "full_name": "", "start_line": 255, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 256, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BasicBlock", "full_name": "", "start_line": 261, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 262, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 266, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 267, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 279, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 294, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 295, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_basic_block_creation", "full_name": "", "start_line": 298, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 299, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 300, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_instruction_addition", "full_name": "", "start_line": 309, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 310, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 311, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 313, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_terminator_addition", "full_name": "", "start_line": 326, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 327, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 328, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 330, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_branch_successors", "full_name": "", "start_line": 343, "end_line": 361, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 344, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 345, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 347, "end_line": 347, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 348, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 350, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_basic_block_id_generator", "full_name": "", "start_line": 364, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 365, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 368, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 369, "end_line": 369, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_value_tracking", "full_name": "", "start_line": 379, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 380, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 381, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 383, "end_line": 383, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 384, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 385, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 395, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 396, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_phi_instruction_ordering", "full_name": "", "start_line": 403, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 404, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 405, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 408, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 415, "end_line": 418, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 422, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 425, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 93, "max_depth": 9, "node_type_counts": { "file_root": 1, "import": 5, "class": 9, "if_statement": 8, "function": 36, "variable": 33, "for_loop": 1 }, "classes": 9, "functions": 36, "methods": 0, "variables": 33, "control_structures": 9 }, "generated_at": "2025-08-15T16:19:40.619407102Z" }, { "file_info": { "name": "effect.rs", "path": "src/mir/effect.rs", "size_bytes": 0, "total_lines": 349, "code_lines": 232, "comment_lines": 56, "empty_lines": 61, "code_ratio": 0.664756446991404, "analyzed_at": "2025-08-15T16:19:40.619361383Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "EffectMask", "parent_class": null, "start_line": 11, "end_line": 11, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "Effect", "parent_class": null, "start_line": 15, "end_line": 48, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "EffectMask", "parent_class": null, "start_line": 50, "end_line": 219, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "EffectMask", "parent_class": null, "start_line": 221, "end_line": 225, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } }, { "name": "EffectMask", "parent_class": null, "start_line": 227, "end_line": 236, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "EffectMask", "parent_class": null, "start_line": 238, "end_line": 244, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::ops::BitOr" } }, { "name": "EffectMask", "parent_class": null, "start_line": 246, "end_line": 250, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::ops::BitOrAssign", "type": "impl" } }, { "name": "EffectMask", "parent_class": null, "start_line": 252, "end_line": 258, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::ops::BitAnd" } }, { "name": "EffectMask", "parent_class": null, "start_line": 260, "end_line": 264, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::ops::BitAndAssign" } } ], "functions": [ { "name": "new", "start_line": 81, "end_line": 83, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "from_bits", "start_line": 86, "end_line": 88, "parameters": [ "bits: u16" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "bits", "start_line": 91, "end_line": 93, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add", "start_line": 96, "end_line": 98, "parameters": [ "self", "effect: Effect" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "remove", "start_line": 101, "end_line": 103, "parameters": [ "self", "effect: Effect" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "contains", "start_line": 106, "end_line": 108, "parameters": [ "self", "effect: Effect" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "contains_any", "start_line": 111, "end_line": 113, "parameters": [ "self", "mask: EffectMask" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "contains_all", "start_line": 116, "end_line": 118, "parameters": [ "self", "mask: EffectMask" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "union", "start_line": 121, "end_line": 123, "parameters": [ "self", "other: EffectMask" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "intersection", "start_line": 126, "end_line": 128, "parameters": [ "self", "other: EffectMask" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_pure", "start_line": 131, "end_line": 133, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_mut", "start_line": 136, "end_line": 140, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_io", "start_line": 143, "end_line": 153, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_control", "start_line": 156, "end_line": 158, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "primary_category", "start_line": 161, "end_line": 171, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_read_only", "start_line": 174, "end_line": 176, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_parallel_safe", "start_line": 179, "end_line": 183, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_moveable", "start_line": 186, "end_line": 188, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "effect_names", "start_line": 191, "end_line": 218, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 222, "end_line": 224, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 228, "end_line": 235, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "bitor", "start_line": 241, "end_line": 243, "parameters": [ "self", "rhs: Self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "bitor_assign", "start_line": 247, "end_line": 249, "parameters": [ "&mut self", "rhs: Self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "bitand", "start_line": 255, "end_line": 257, "parameters": [ "self", "rhs: Self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "bitand_assign", "start_line": 261, "end_line": 263, "parameters": [ "&mut self", "rhs: Self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_effect_mask_creation", "start_line": 271, "end_line": 282, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_effect_combination", "start_line": 285, "end_line": 300, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_effect_union", "start_line": 303, "end_line": 313, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_parallel_safety", "start_line": 316, "end_line": 326, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_effect_names", "start_line": 329, "end_line": 337, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_effect_display", "start_line": 340, "end_line": 348, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 268, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 9, "function_count": 31, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Effect", "full_name": "", "start_line": 15, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 50, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "PURE", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "MUT", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "IO", "full_name": "", "start_line": 58, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "CONTROL", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "READ", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "read", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "WRITE", "full_name": "", "start_line": 69, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "P2P", "full_name": "", "start_line": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "PANIC", "full_name": "", "start_line": 75, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "ALL", "full_name": "", "start_line": 78, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_bits", "full_name": "", "start_line": 86, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bits", "full_name": "", "start_line": 91, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add", "full_name": "", "start_line": 96, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "remove", "full_name": "", "start_line": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains", "full_name": "", "start_line": 106, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains_any", "full_name": "", "start_line": 111, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains_all", "full_name": "", "start_line": 116, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "union", "full_name": "", "start_line": 121, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "intersection", "full_name": "", "start_line": 126, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_pure", "full_name": "", "start_line": 131, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_mut", "full_name": "", "start_line": 136, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_io", "full_name": "", "start_line": 143, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_control", "full_name": "", "start_line": 156, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "primary_category", "full_name": "", "start_line": 161, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 162, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 164, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 166, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_read_only", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_parallel_safe", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_moveable", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "effect_names", "full_name": "", "start_line": 191, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 195, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 197, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 198, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 202, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 203, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 205, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 206, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 207, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 210, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 211, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 213, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 221, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 222, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 227, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 228, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 230, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 238, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitor", "full_name": "", "start_line": 241, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 246, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitor_assign", "full_name": "", "start_line": 247, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 252, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitand", "full_name": "", "start_line": 255, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 260, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitand_assign", "full_name": "", "start_line": 261, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 268, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_mask_creation", "full_name": "", "start_line": 271, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 272, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 273, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 274, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_combination", "full_name": "", "start_line": 285, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 286, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_union", "full_name": "", "start_line": 303, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 304, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 305, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 307, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_parallel_safety", "full_name": "", "start_line": 316, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 317, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 318, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 319, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 320, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_names", "full_name": "", "start_line": 329, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 330, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 333, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 334, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_display", "full_name": "", "start_line": 340, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 341, "end_line": 341, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 344, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 345, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 92, "max_depth": 10, "node_type_counts": { "import": 2, "if_statement": 20, "function": 31, "variable": 29, "file_root": 1, "class": 9 }, "classes": 9, "functions": 31, "methods": 0, "variables": 29, "control_structures": 20 }, "generated_at": "2025-08-15T16:19:40.619379045Z" }, { "file_info": { "name": "function.rs", "path": "src/mir/function.rs", "size_bytes": 0, "total_lines": 500, "code_lines": 345, "comment_lines": 67, "empty_lines": 88, "code_ratio": 0.69, "analyzed_at": "2025-08-15T16:19:40.619246278Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "FunctionSignature", "parent_class": null, "start_line": 13, "end_line": 25, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MirFunction", "parent_class": null, "start_line": 29, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "FunctionMetadata", "parent_class": null, "start_line": 54, "end_line": 69, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MirFunction", "parent_class": null, "start_line": 71, "end_line": 242, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FunctionStats", "parent_class": null, "start_line": 246, "end_line": 252, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MirModule", "parent_class": null, "start_line": 256, "end_line": 268, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ModuleMetadata", "parent_class": null, "start_line": 272, "end_line": 284, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MirModule", "parent_class": null, "start_line": 286, "end_line": 355, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ModuleStats", "parent_class": null, "start_line": 359, "end_line": 366, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MirFunction", "parent_class": null, "start_line": 368, "end_line": 397, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "MirModule", "parent_class": null, "start_line": 399, "end_line": 420, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 73, "end_line": 86, "parameters": [ "signature: FunctionSignature", "entry_block: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "next_value_id", "start_line": 89, "end_line": 93, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "add_block", "start_line": 96, "end_line": 100, "parameters": [ "&mut self", "block: BasicBlock" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_block", "start_line": 103, "end_line": 105, "parameters": [ "&self", "id: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_block_mut", "start_line": 108, "end_line": 110, "parameters": [ "&mut self", "id: BasicBlockId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "entry_block", "start_line": 113, "end_line": 116, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "block_ids", "start_line": 119, "end_line": 123, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "defined_values", "start_line": 126, "end_line": 135, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "verify", "start_line": 138, "end_line": 175, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "compute_reachable_blocks", "start_line": 178, "end_line": 191, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "update_cfg", "start_line": 194, "end_line": 212, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 202, "end_line": 204, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 203, "end_line": 203, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "mark_reachable_blocks", "start_line": 215, "end_line": 222, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "stats", "start_line": 225, "end_line": 241, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 227, "end_line": 227, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 231, "end_line": 231, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "new", "start_line": 288, "end_line": 295, "parameters": [ "name: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "add_function", "start_line": 298, "end_line": 301, "parameters": [ "&mut self", "function: MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_function", "start_line": 304, "end_line": 306, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_function_mut", "start_line": 309, "end_line": 311, "parameters": [ "&mut self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "function_names", "start_line": 314, "end_line": 316, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_global", "start_line": 319, "end_line": 321, "parameters": [ "&mut self", "name: String", "value" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "verify", "start_line": 324, "end_line": 338, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "stats", "start_line": 341, "end_line": 354, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 343, "end_line": 343, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 349, "end_line": 349, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 350, "end_line": 350, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 351, "end_line": 351, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 352, "end_line": 352, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "fmt", "start_line": 369, "end_line": 396, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 400, "end_line": 419, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_function_creation", "start_line": 428, "end_line": 442, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_module_creation", "start_line": 445, "end_line": 461, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_value_id_generation", "start_line": 464, "end_line": 481, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_function_stats", "start_line": 484, "end_line": 499, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{BasicBlock, BasicBlockId, ValueId, EffectMask, MirType}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 424, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirType, EffectMask}", "imported_names": [], "alias": null, "line_number": 425, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 11, "function_count": 36, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FunctionSignature", "full_name": "", "start_line": 13, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirFunction", "full_name": "", "start_line": 29, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FunctionMetadata", "full_name": "", "start_line": 54, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirFunction", "full_name": "", "start_line": 71, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 73, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 74, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next_value_id", "full_name": "", "start_line": 89, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_block", "full_name": "", "start_line": 96, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 97, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_block", "full_name": "", "start_line": 103, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_block_mut", "full_name": "", "start_line": 108, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "entry_block", "full_name": "", "start_line": 113, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "block_ids", "full_name": "", "start_line": 119, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 120, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "defined_values", "full_name": "", "start_line": 126, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify", "full_name": "", "start_line": 138, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 140, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 146, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 147, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 153, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 159, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 161, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compute_reachable_blocks", "full_name": "", "start_line": 178, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 179, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 180, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 182, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 184, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "update_cfg", "full_name": "", "start_line": 194, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 196, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<(BasicBlockId, BasicBlockId)>", "full_name": "", "start_line": 201, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 207, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "mark_reachable_blocks", "full_name": "", "start_line": 215, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 216, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 217, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 218, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stats", "full_name": "", "start_line": 225, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 226, "end_line": 228, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 227, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 230, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FunctionStats", "full_name": "", "start_line": 246, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirModule", "full_name": "", "start_line": 256, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuleMetadata", "full_name": "", "start_line": 272, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirModule", "full_name": "", "start_line": 286, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 288, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_function", "full_name": "", "start_line": 298, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 299, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_function", "full_name": "", "start_line": 304, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_function_mut", "full_name": "", "start_line": 309, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "function_names", "full_name": "", "start_line": 314, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_global", "full_name": "", "start_line": 319, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify", "full_name": "", "start_line": 324, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 325, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 327, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 328, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 333, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stats", "full_name": "", "start_line": 341, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 342, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ModuleStats", "full_name": "", "start_line": 359, "end_line": 366, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirFunction", "full_name": "", "start_line": 368, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 369, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 380, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 385, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 388, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 389, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirModule", "full_name": "", "start_line": 399, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 400, "end_line": 419, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 404, "end_line": 410, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 406, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 413, "end_line": 415, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 424, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 425, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_function_creation", "full_name": "", "start_line": 428, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 429, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 436, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_module_creation", "full_name": "", "start_line": 445, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 446, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 448, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 455, "end_line": 455, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_value_id_generation", "full_name": "", "start_line": 464, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 465, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 472, "end_line": 472, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 474, "end_line": 474, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 475, "end_line": 475, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 476, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_function_stats", "full_name": "", "start_line": 484, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 485, "end_line": 490, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 492, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 493, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 101, "max_depth": 15, "node_type_counts": { "for_loop": 12, "variable": 30, "import": 5, "file_root": 1, "if_statement": 15, "function": 27, "class": 11 }, "classes": 11, "functions": 27, "methods": 0, "variables": 30, "control_structures": 27 }, "generated_at": "2025-08-15T16:19:40.619274662Z" }, { "file_info": { "name": "instruction.rs", "path": "src/mir/instruction.rs", "size_bytes": 0, "total_lines": 793, "code_lines": 554, "comment_lines": 127, "empty_lines": 112, "code_ratio": 0.6986128625472888, "analyzed_at": "2025-08-15T16:19:40.674623014Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MirInstruction", "parent_class": null, "start_line": 13, "end_line": 288, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "ConstValue", "parent_class": null, "start_line": 292, "end_line": 299, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "BinaryOp", "parent_class": null, "start_line": 303, "end_line": 312, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "UnaryOp", "parent_class": null, "start_line": 316, "end_line": 325, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "CompareOp", "parent_class": null, "start_line": 329, "end_line": 331, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "MirType", "parent_class": null, "start_line": 335, "end_line": 345, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "MirInstruction", "parent_class": null, "start_line": 347, "end_line": 524, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ConstValue", "parent_class": null, "start_line": 526, "end_line": 553, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirInstruction", "parent_class": null, "start_line": 555, "end_line": 608, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } }, { "name": "ConstValue", "parent_class": null, "start_line": 610, "end_line": 621, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } } ], "functions": [ { "name": "effects", "start_line": 349, "end_line": 408, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "dst_value", "start_line": 411, "end_line": 452, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "used_values", "start_line": 455, "end_line": 523, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 480, "end_line": 480, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 498, "end_line": 498, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "fmt", "start_line": 556, "end_line": 607, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 611, "end_line": 620, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_const_instruction", "start_line": 628, "end_line": 638, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_binop_instruction", "start_line": 641, "end_line": 653, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_call_instruction", "start_line": 656, "end_line": 672, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_ref_new_instruction", "start_line": 688, "end_line": 696, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_ref_get_instruction", "start_line": 699, "end_line": 709, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_ref_set_instruction", "start_line": 712, "end_line": 722, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_new_instruction", "start_line": 725, "end_line": 733, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_load_instruction", "start_line": 736, "end_line": 745, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_barrier_instructions", "start_line": 748, "end_line": 762, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_extern_call_instruction", "start_line": 765, "end_line": 792, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{ValueId, EffectMask, Effect}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 625, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 10, "function_count": 17, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstruction", "full_name": "", "start_line": 13, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 292, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOp", "full_name": "", "start_line": 303, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "UnaryOp", "full_name": "", "start_line": 316, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareOp", "full_name": "", "start_line": 329, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirType", "full_name": "", "start_line": 335, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstruction", "full_name": "", "start_line": 347, "end_line": 524, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "effects", "full_name": "", "start_line": 349, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dst_value", "full_name": "", "start_line": 411, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "used_values", "full_name": "", "start_line": 455, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 484, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 490, "end_line": 490, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 526, "end_line": 553, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstruction", "full_name": "", "start_line": 555, "end_line": 608, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 556, "end_line": 607, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 577, "end_line": 585, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 588, "end_line": 592, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 595, "end_line": 603, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 610, "end_line": 621, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 611, "end_line": 620, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 625, "end_line": 625, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_const_instruction", "full_name": "", "start_line": 628, "end_line": 638, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 629, "end_line": 629, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 630, "end_line": 633, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_binop_instruction", "full_name": "", "start_line": 641, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 642, "end_line": 642, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 643, "end_line": 643, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 644, "end_line": 644, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 646, "end_line": 648, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_call_instruction", "full_name": "", "start_line": 656, "end_line": 672, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 657, "end_line": 657, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 658, "end_line": 658, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 659, "end_line": 659, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 660, "end_line": 660, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 662, "end_line": 667, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ref_new_instruction", "full_name": "", "start_line": 688, "end_line": 696, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 689, "end_line": 689, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 690, "end_line": 690, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 691, "end_line": 691, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ref_get_instruction", "full_name": "", "start_line": 699, "end_line": 709, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 700, "end_line": 700, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 701, "end_line": 701, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 702, "end_line": 702, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 703, "end_line": 703, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ref_set_instruction", "full_name": "", "start_line": 712, "end_line": 722, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 713, "end_line": 713, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 714, "end_line": 714, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 715, "end_line": 715, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 716, "end_line": 716, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_new_instruction", "full_name": "", "start_line": 725, "end_line": 733, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 726, "end_line": 726, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 727, "end_line": 727, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 728, "end_line": 728, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_load_instruction", "full_name": "", "start_line": 736, "end_line": 745, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 737, "end_line": 737, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 738, "end_line": 738, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 739, "end_line": 739, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_barrier_instructions", "full_name": "", "start_line": 748, "end_line": 762, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 749, "end_line": 749, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 751, "end_line": 751, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 757, "end_line": 757, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_extern_call_instruction", "full_name": "", "start_line": 765, "end_line": 792, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 766, "end_line": 766, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 767, "end_line": 767, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 768, "end_line": 768, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 769, "end_line": 775, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 782, "end_line": 788, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 70, "max_depth": 11, "node_type_counts": { "variable": 38, "if_statement": 3, "class": 10, "file_root": 1, "import": 3, "function": 15 }, "classes": 10, "functions": 15, "methods": 0, "variables": 38, "control_structures": 3 }, "generated_at": "2025-08-15T16:19:40.674665280Z" }, { "file_info": { "name": "instruction_v2.rs", "path": "src/mir/instruction_v2.rs", "size_bytes": 0, "total_lines": 543, "code_lines": 357, "comment_lines": 98, "empty_lines": 88, "code_ratio": 0.6574585635359116, "analyzed_at": "2025-08-15T16:19:40.619138874Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MirInstructionV2", "parent_class": null, "start_line": 12, "end_line": 201, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "ConstValue", "parent_class": null, "start_line": 205, "end_line": 212, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "BinaryOp", "parent_class": null, "start_line": 216, "end_line": 225, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "CompareOp", "parent_class": null, "start_line": 229, "end_line": 231, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "AtomicOrdering", "parent_class": null, "start_line": 235, "end_line": 241, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "MirInstructionV2", "parent_class": null, "start_line": 243, "end_line": 459, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirInstructionV2", "parent_class": null, "start_line": 461, "end_line": 465, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } } ], "functions": [ { "name": "effects", "start_line": 245, "end_line": 295, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "dst_value", "start_line": 298, "end_line": 317, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "used_values", "start_line": 320, "end_line": 386, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 332, "end_line": 332, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 342, "end_line": 342, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "tier", "start_line": 389, "end_line": 422, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "description", "start_line": 425, "end_line": 458, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 462, "end_line": 464, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_instruction_count", "start_line": 473, "end_line": 481, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_effect_categories", "start_line": 484, "end_line": 521, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_ownership_operations", "start_line": 524, "end_line": 542, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{ValueId, EffectMask, Effect, BasicBlockId}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 469, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{ValueIdGenerator, BasicBlockIdGenerator}", "imported_names": [], "alias": null, "line_number": 470, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 11, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstructionV2", "full_name": "", "start_line": 12, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 205, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOp", "full_name": "", "start_line": 216, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareOp", "full_name": "", "start_line": 229, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AtomicOrdering", "full_name": "", "start_line": 235, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstructionV2", "full_name": "", "start_line": 243, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "effects", "full_name": "", "start_line": 245, "end_line": 295, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dst_value", "full_name": "", "start_line": 298, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "used_values", "full_name": "", "start_line": 320, "end_line": 386, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 352, "end_line": 352, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 373, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "tier", "full_name": "", "start_line": 389, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "description", "full_name": "", "start_line": 425, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstructionV2", "full_name": "", "start_line": 461, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 462, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 469, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 470, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_instruction_count", "full_name": "", "start_line": 473, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 476, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 477, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 478, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 479, "end_line": 479, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_categories", "full_name": "", "start_line": 484, "end_line": 521, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 485, "end_line": 485, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 486, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 489, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 497, "end_line": 501, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 506, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 514, "end_line": 518, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ownership_operations", "full_name": "", "start_line": 524, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 525, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 528, "end_line": 531, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 536, "end_line": 539, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 37, "max_depth": 10, "node_type_counts": { "class": 7, "file_root": 1, "import": 4, "function": 9, "variable": 16 }, "classes": 7, "functions": 9, "methods": 0, "variables": 16, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.619167942Z" }, { "file_info": { "name": "mod.rs", "path": "src/mir/mod.rs", "size_bytes": 0, "total_lines": 210, "code_lines": 163, "comment_lines": 16, "empty_lines": 31, "code_ratio": 0.7761904761904762, "analyzed_at": "2025-08-15T16:19:40.619389418Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MirCompileResult", "parent_class": null, "start_line": 33, "end_line": 36, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MirCompiler", "parent_class": null, "start_line": 39, "end_line": 42, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MirCompiler", "parent_class": null, "start_line": 44, "end_line": 71, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirCompiler", "parent_class": null, "start_line": 73, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } } ], "functions": [ { "name": "new", "start_line": 46, "end_line": 51, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "compile", "start_line": 54, "end_line": 65, "parameters": [ "&mut self", "ast" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "dump_mir", "start_line": 68, "end_line": 70, "parameters": [ "&self", "module: &MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "default", "start_line": 74, "end_line": 76, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_basic_mir_compilation", "start_line": 85, "end_line": 100, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_mir_dump", "start_line": 103, "end_line": 116, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_throw_compilation", "start_line": 119, "end_line": 137, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_loop_compilation", "start_line": 140, "end_line": 167, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_try_catch_compilation", "start_line": 170, "end_line": 209, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "instruction::{MirInstruction, BinaryOp, CompareOp, UnaryOp, ConstValue, MirType}", "imported_names": [], "alias": null, "line_number": 20, "metadata": {} }, { "type": "rust_use", "module_path": "instruction_v2::{MirInstructionV2, AtomicOrdering}", "imported_names": [], "alias": null, "line_number": 21, "metadata": {} }, { "type": "rust_use", "module_path": "basic_block::{BasicBlock, BasicBlockId, BasicBlockIdGenerator}", "imported_names": [], "alias": null, "line_number": 22, "metadata": {} }, { "type": "rust_use", "module_path": "function::{MirFunction, MirModule, FunctionSignature}", "imported_names": [], "alias": null, "line_number": 23, "metadata": {} }, { "type": "rust_use", "module_path": "builder::MirBuilder", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} }, { "type": "rust_use", "module_path": "verification::{MirVerifier, VerificationError}", "imported_names": [], "alias": null, "line_number": 25, "metadata": {} }, { "type": "rust_use", "module_path": "ownership_verifier_simple::{OwnershipVerifier, OwnershipError, OwnershipStats}", "imported_names": [], "alias": null, "line_number": 26, "metadata": {} }, { "type": "rust_use", "module_path": "printer::MirPrinter", "imported_names": [], "alias": null, "line_number": 27, "metadata": {} }, { "type": "rust_use", "module_path": "value_id::{ValueId, LocalId, ValueIdGenerator}", "imported_names": [], "alias": null, "line_number": 28, "metadata": {} }, { "type": "rust_use", "module_path": "effect::{EffectMask, Effect}", "imported_names": [], "alias": null, "line_number": 29, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 81, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::{ASTNode, LiteralValue}", "imported_names": [], "alias": null, "line_number": 82, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 9, "import_count": 12, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 20, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 22, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 23, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 24, "end_line": 24, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 25, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 26, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 27, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 28, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 29, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirCompileResult", "full_name": "", "start_line": 33, "end_line": 36, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirCompiler", "full_name": "", "start_line": 39, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirCompiler", "full_name": "", "start_line": 44, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 46, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile", "full_name": "", "start_line": 54, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 56, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dump_mir", "full_name": "", "start_line": 68, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirCompiler", "full_name": "", "start_line": 73, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 74, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 81, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_basic_mir_compilation", "full_name": "", "start_line": 85, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 86, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 89, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 95, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 98, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_mir_dump", "full_name": "", "start_line": 103, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 106, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 112, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_throw_compilation", "full_name": "", "start_line": 119, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 120, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 122, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 130, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 133, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 134, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_loop_compilation", "full_name": "", "start_line": 140, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 143, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 163, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_try_catch_compilation", "full_name": "", "start_line": 170, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 171, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 173, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 203, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 206, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 51, "max_depth": 5, "node_type_counts": { "function": 9, "class": 4, "file_root": 1, "variable": 25, "import": 12 }, "classes": 4, "functions": 9, "methods": 0, "variables": 25, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.619400943Z" }, { "file_info": { "name": "ownership_verifier.rs", "path": "src/mir/ownership_verifier.rs", "size_bytes": 0, "total_lines": 559, "code_lines": 385, "comment_lines": 81, "empty_lines": 93, "code_ratio": 0.6887298747763864, "analyzed_at": "2025-08-15T16:19:40.619176709Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "OwnershipError", "parent_class": null, "start_line": 17, "end_line": 60, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "OwnershipVerifier", "parent_class": null, "start_line": 63, "end_line": 78, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "OwnershipVerifier", "parent_class": null, "start_line": 80, "end_line": 395, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "OwnershipStats", "parent_class": null, "start_line": 399, "end_line": 405, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "OwnershipVerifier", "parent_class": null, "start_line": 407, "end_line": 411, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 82, "end_line": 90, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "verify_module", "start_line": 93, "end_line": 107, "parameters": [ "&mut self", "module: &MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "verify_function", "start_line": 110, "end_line": 139, "parameters": [ "&mut self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "process_instruction", "start_line": 142, "end_line": 245, "parameters": [ "&mut self", "instruction: &MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "verify_ownership_forest", "start_line": 248, "end_line": 285, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "check_multiple_owners", "start_line": 288, "end_line": 300, "parameters": [ "&self", "target: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 291, "end_line": 291, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 292, "end_line": 292, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "would_create_cycle", "start_line": 303, "end_line": 324, "parameters": [ "&self", "parent: ValueId", "child: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "find_strong_cycle", "start_line": 327, "end_line": 349, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "dfs_cycle", "start_line": 352, "end_line": 383, "parameters": [ "&self", "node: ValueId", "visited: &mut HashSet", "rec_stack: &mut HashSet", "path: &mut Vec" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 368, "end_line": 368, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "ownership_stats", "start_line": 386, "end_line": 394, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "default", "start_line": 408, "end_line": 410, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_ownership_forest_basic", "start_line": 419, "end_line": 435, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_multiple_owners_error", "start_line": 438, "end_line": 461, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_strong_cycle_detection", "start_line": 464, "end_line": 483, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_reference_safety", "start_line": 486, "end_line": 516, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_unsafe_ref_set", "start_line": 519, "end_line": 538, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_safe_ref_set_with_release", "start_line": 541, "end_line": 558, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{MirInstruction, ValueId, MirFunction, MirModule}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::{HashMap, HashSet, VecDeque}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 415, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{ValueIdGenerator, ConstValue}", "imported_names": [], "alias": null, "line_number": 416, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 20, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipError", "full_name": "", "start_line": 17, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipVerifier", "full_name": "", "start_line": 63, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipVerifier", "full_name": "", "start_line": 80, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 82, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_module", "full_name": "", "start_line": 93, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 94, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 96, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 97, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 102, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_function", "full_name": "", "start_line": 110, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 121, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 122, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 123, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 130, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 134, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "process_instruction", "full_name": "", "start_line": 142, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 143, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 156, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 158, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 171, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 179, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 188, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 206, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 219, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 220, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 229, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 230, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 240, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_ownership_forest", "full_name": "", "start_line": 248, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 249, "end_line": 249, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap>", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 253, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 257, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 258, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 264, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 269, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 270, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 271, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 280, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "check_multiple_owners", "full_name": "", "start_line": 288, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 289, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 295, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "would_create_cycle", "full_name": "", "start_line": 303, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 305, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 306, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 308, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 309, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 313, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 315, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 316, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find_strong_cycle", "full_name": "", "start_line": 327, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 328, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 329, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 330, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 333, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 334, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 340, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 341, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 342, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dfs_cycle", "full_name": "", "start_line": 352, "end_line": 383, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 364, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 365, "end_line": 377, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 366, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 368, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 372, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 373, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ownership_stats", "full_name": "", "start_line": 386, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipStats", "full_name": "", "start_line": 399, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipVerifier", "full_name": "", "start_line": 407, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 408, "end_line": 410, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 415, "end_line": 415, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 416, "end_line": 416, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ownership_forest_basic", "full_name": "", "start_line": 419, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 420, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 421, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 423, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 424, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 427, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 433, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_multiple_owners_error", "full_name": "", "start_line": 438, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 439, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 440, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 442, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 443, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 444, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 455, "end_line": 455, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 458, "end_line": 460, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_strong_cycle_detection", "full_name": "", "start_line": 464, "end_line": 483, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 465, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 466, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 468, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 469, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 470, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 477, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 480, "end_line": 482, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_reference_safety", "full_name": "", "start_line": 486, "end_line": 516, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 487, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 488, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 490, "end_line": 490, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 491, "end_line": 491, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 494, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 501, "end_line": 503, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 507, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 513, "end_line": 513, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_unsafe_ref_set", "full_name": "", "start_line": 519, "end_line": 538, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 520, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 521, "end_line": 521, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 523, "end_line": 523, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 524, "end_line": 524, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 525, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 531, "end_line": 531, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 532, "end_line": 532, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 535, "end_line": 537, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_safe_ref_set_with_release", "full_name": "", "start_line": 541, "end_line": 558, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 542, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 543, "end_line": 543, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 545, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 546, "end_line": 546, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 547, "end_line": 547, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 556, "end_line": 556, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 124, "max_depth": 15, "node_type_counts": { "file_root": 1, "class": 5, "for_loop": 11, "if_statement": 34, "function": 17, "variable": 52, "import": 4 }, "classes": 5, "functions": 17, "methods": 0, "variables": 52, "control_structures": 45 }, "generated_at": "2025-08-15T16:19:40.619206874Z" }, { "file_info": { "name": "ownership_verifier_simple.rs", "path": "src/mir/ownership_verifier_simple.rs", "size_bytes": 0, "total_lines": 370, "code_lines": 259, "comment_lines": 51, "empty_lines": 60, "code_ratio": 0.7, "analyzed_at": "2025-08-15T16:19:40.620911381Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "OwnershipError", "parent_class": null, "start_line": 13, "end_line": 31, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "OwnershipVerifier", "parent_class": null, "start_line": 34, "end_line": 49, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "OwnershipVerifier", "parent_class": null, "start_line": 51, "end_line": 284, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "OwnershipStats", "parent_class": null, "start_line": 288, "end_line": 294, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "OwnershipVerifier", "parent_class": null, "start_line": 296, "end_line": 300, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } } ], "functions": [ { "name": "new", "start_line": 53, "end_line": 61, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "verify_module", "start_line": 64, "end_line": 78, "parameters": [ "&mut self", "module: &MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "verify_function", "start_line": 81, "end_line": 110, "parameters": [ "&mut self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "process_instruction", "start_line": 113, "end_line": 170, "parameters": [ "&mut self", "instruction: &MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "verify_ownership_forest", "start_line": 173, "end_line": 198, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "check_multiple_owners", "start_line": 201, "end_line": 213, "parameters": [ "&self", "target: ValueId" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 204, "end_line": 204, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 205, "end_line": 205, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "find_strong_cycle", "start_line": 216, "end_line": 238, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "dfs_cycle", "start_line": 241, "end_line": 272, "parameters": [ "&self", "node: ValueId", "visited: &mut HashSet", "rec_stack: &mut HashSet", "path: &mut Vec" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 257, "end_line": 257, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "ownership_stats", "start_line": 275, "end_line": 283, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 297, "end_line": 299, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_ownership_forest_basic", "start_line": 308, "end_line": 328, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_reference_tracking", "start_line": 331, "end_line": 349, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_basic_ref_set", "start_line": 352, "end_line": 369, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{MirInstruction, ValueId, MirFunction, MirModule}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::{HashMap, HashSet}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 304, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::ValueIdGenerator", "imported_names": [], "alias": null, "line_number": 305, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 16, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipError", "full_name": "", "start_line": 13, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipVerifier", "full_name": "", "start_line": 34, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipVerifier", "full_name": "", "start_line": 51, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 53, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_module", "full_name": "", "start_line": 64, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 67, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 68, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 73, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_function", "full_name": "", "start_line": 81, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 82, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 92, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 93, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "process_instruction", "full_name": "", "start_line": 113, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 114, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 126, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 128, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 141, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 154, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 155, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 165, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_ownership_forest", "full_name": "", "start_line": 173, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "HashMap>", "full_name": "", "start_line": 177, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 178, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 182, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 189, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 193, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "check_multiple_owners", "full_name": "", "start_line": 201, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 202, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find_strong_cycle", "full_name": "", "start_line": 216, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 217, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 218, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 219, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 222, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 223, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 229, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 230, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 231, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dfs_cycle", "full_name": "", "start_line": 241, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 253, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 254, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 257, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 261, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 262, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ownership_stats", "full_name": "", "start_line": 275, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipStats", "full_name": "", "start_line": 288, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OwnershipVerifier", "full_name": "", "start_line": 296, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 297, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 304, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 305, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ownership_forest_basic", "full_name": "", "start_line": 308, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 309, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 310, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 312, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 313, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 316, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 326, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_reference_tracking", "full_name": "", "start_line": 331, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 332, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 333, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 335, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 339, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 342, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 347, "end_line": 347, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_basic_ref_set", "full_name": "", "start_line": 352, "end_line": 369, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 353, "end_line": 353, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 354, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 356, "end_line": 356, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 357, "end_line": 357, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 360, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 82, "max_depth": 15, "node_type_counts": { "import": 4, "variable": 30, "if_statement": 21, "function": 13, "for_loop": 8, "class": 5, "file_root": 1 }, "classes": 5, "functions": 13, "methods": 0, "variables": 30, "control_structures": 29 }, "generated_at": "2025-08-15T16:19:40.620933682Z" }, { "file_info": { "name": "printer.rs", "path": "src/mir/printer.rs", "size_bytes": 0, "total_lines": 441, "code_lines": 325, "comment_lines": 34, "empty_lines": 82, "code_ratio": 0.7369614512471655, "analyzed_at": "2025-08-15T16:19:40.665400481Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MirPrinter", "parent_class": null, "start_line": 11, "end_line": 20, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MirPrinter", "parent_class": null, "start_line": 22, "end_line": 390, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirPrinter", "parent_class": null, "start_line": 392, "end_line": 396, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 24, "end_line": 30, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "verbose", "start_line": 33, "end_line": 39, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_verbose", "start_line": 42, "end_line": 45, "parameters": [ "&mut self", "verbose: bool" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_show_line_numbers", "start_line": 48, "end_line": 51, "parameters": [ "&mut self", "show: bool" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "print_module", "start_line": 54, "end_line": 92, "parameters": [ "&self", "module: &MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "print_function", "start_line": 95, "end_line": 148, "parameters": [ "&self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "print_basic_block", "start_line": 151, "end_line": 186, "parameters": [ "&self", "block: &BasicBlock" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 160, "end_line": 160, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "format_instruction", "start_line": 189, "end_line": 374, "parameters": [ "&self", "instruction: &MirInstruction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 217, "end_line": 217, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 230, "end_line": 230, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 259, "end_line": 259, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 267, "end_line": 267, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 366, "end_line": 366, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "format_type", "start_line": 377, "end_line": 389, "parameters": [ "&self", "mir_type: &super::MirType" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "default", "start_line": 393, "end_line": 395, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_empty_module_printing", "start_line": 404, "end_line": 412, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_function_printing", "start_line": 415, "end_line": 430, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_verbose_printing", "start_line": 433, "end_line": 440, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{MirModule, MirFunction, BasicBlock, MirInstruction}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::Write", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 400, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlockId}", "imported_names": [], "alias": null, "line_number": 401, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 3, "function_count": 19, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirPrinter", "full_name": "", "start_line": 11, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirPrinter", "full_name": "", "start_line": 22, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 24, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verbose", "full_name": "", "start_line": 33, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_verbose", "full_name": "", "start_line": 42, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_show_line_numbers", "full_name": "", "start_line": 48, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "print_module", "full_name": "", "start_line": 54, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 59, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 65, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 66, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 77, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 79, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 86, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "print_function", "full_name": "", "start_line": 95, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 103, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 104, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 112, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 119, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 120, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 126, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 133, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 136, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 137, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 138, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "print_basic_block", "full_name": "", "start_line": 151, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 152, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 158, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 159, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 168, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 169, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 170, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 181, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "format_instruction", "full_name": "", "start_line": 189, "end_line": 374, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 216, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 221, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 234, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 250, "end_line": 254, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 258, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 266, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 311, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 366, "end_line": 366, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "format_type", "full_name": "", "start_line": 377, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirPrinter", "full_name": "", "start_line": 392, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 393, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 400, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 401, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_empty_module_printing", "full_name": "", "start_line": 404, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 405, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 406, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 408, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_function_printing", "full_name": "", "start_line": 415, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 416, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 423, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 424, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 426, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_verbose_printing", "full_name": "", "start_line": 433, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 434, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 435, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 66, "max_depth": 12, "node_type_counts": { "file_root": 1, "class": 3, "variable": 23, "function": 13, "import": 4, "if_statement": 17, "for_loop": 5 }, "classes": 3, "functions": 13, "methods": 0, "variables": 23, "control_structures": 22 }, "generated_at": "2025-08-15T16:19:40.665425530Z" }, { "file_info": { "name": "value_id.rs", "path": "src/mir/value_id.rs", "size_bytes": 0, "total_lines": 197, "code_lines": 136, "comment_lines": 22, "empty_lines": 39, "code_ratio": 0.6903553299492385, "analyzed_at": "2025-08-15T16:19:40.659667393Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ValueId", "parent_class": null, "start_line": 11, "end_line": 11, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ValueId", "parent_class": null, "start_line": 13, "end_line": 33, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ValueId", "parent_class": null, "start_line": 35, "end_line": 39, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "LocalId", "parent_class": null, "start_line": 43, "end_line": 43, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "LocalId", "parent_class": null, "start_line": 45, "end_line": 55, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "LocalId", "parent_class": null, "start_line": 57, "end_line": 61, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "ValueIdGenerator", "parent_class": null, "start_line": 65, "end_line": 67, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ValueIdGenerator", "parent_class": null, "start_line": 69, "end_line": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ValueIdGenerator", "parent_class": null, "start_line": 93, "end_line": 97, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } }, { "name": "LocalIdGenerator", "parent_class": null, "start_line": 101, "end_line": 103, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "LocalIdGenerator", "parent_class": null, "start_line": 105, "end_line": 122, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "LocalIdGenerator", "parent_class": null, "start_line": 124, "end_line": 128, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } } ], "functions": [ { "name": "new", "start_line": 15, "end_line": 17, "parameters": [ "id: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "as_u32", "start_line": 20, "end_line": 22, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "from_usize", "start_line": 25, "end_line": 27, "parameters": [ "id: usize" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_usize", "start_line": 30, "end_line": 32, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "fmt", "start_line": 36, "end_line": 38, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 47, "end_line": 49, "parameters": [ "id: u32" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "as_u32", "start_line": 52, "end_line": 54, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "fmt", "start_line": 58, "end_line": 60, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 71, "end_line": 73, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "next", "start_line": 76, "end_line": 80, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "peek_next", "start_line": 83, "end_line": 85, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "reset", "start_line": 88, "end_line": 90, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 94, "end_line": 96, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 107, "end_line": 109, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "next", "start_line": 112, "end_line": 116, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "reset", "start_line": 119, "end_line": 121, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 125, "end_line": 127, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_value_id_creation", "start_line": 135, "end_line": 145, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_value_id_generator", "start_line": 148, "end_line": 160, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_local_id_creation", "start_line": 163, "end_line": 169, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_local_id_generator", "start_line": 172, "end_line": 180, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_value_id_ordering", "start_line": 183, "end_line": 196, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::fmt", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 132, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 12, "function_count": 22, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ValueId", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ValueId", "full_name": "", "start_line": 13, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 15, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_u32", "full_name": "", "start_line": 20, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_usize", "full_name": "", "start_line": 25, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_usize", "full_name": "", "start_line": 30, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ValueId", "full_name": "", "start_line": 35, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 36, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LocalId", "full_name": "", "start_line": 43, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LocalId", "full_name": "", "start_line": 45, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 47, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_u32", "full_name": "", "start_line": 52, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LocalId", "full_name": "", "start_line": 57, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 58, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ValueIdGenerator", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ValueIdGenerator", "full_name": "", "start_line": 69, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 71, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next", "full_name": "", "start_line": 76, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 77, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "peek_next", "full_name": "", "start_line": 83, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 88, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ValueIdGenerator", "full_name": "", "start_line": 93, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LocalIdGenerator", "full_name": "", "start_line": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LocalIdGenerator", "full_name": "", "start_line": 105, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 107, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next", "full_name": "", "start_line": 112, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 119, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LocalIdGenerator", "full_name": "", "start_line": 124, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 125, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 132, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_value_id_creation", "full_name": "", "start_line": 135, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 137, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_value_id_generator", "full_name": "", "start_line": 148, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 151, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 152, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 153, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_local_id_creation", "full_name": "", "start_line": 163, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_local_id_generator", "full_name": "", "start_line": 172, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 173, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 175, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 176, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_value_id_ordering", "full_name": "", "start_line": 183, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 184, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 185, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 186, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 54, "max_depth": 5, "node_type_counts": { "import": 2, "function": 22, "class": 12, "variable": 17, "file_root": 1 }, "classes": 12, "functions": 22, "methods": 0, "variables": 17, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.659677658Z" }, { "file_info": { "name": "verification.rs", "path": "src/mir/verification.rs", "size_bytes": 0, "total_lines": 337, "code_lines": 246, "comment_lines": 46, "empty_lines": 45, "code_ratio": 0.7299703264094956, "analyzed_at": "2025-08-15T16:19:40.663417177Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "VerificationError", "parent_class": null, "start_line": 12, "end_line": 51, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "MirVerifier", "parent_class": null, "start_line": 54, "end_line": 57, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MirVerifier", "parent_class": null, "start_line": 59, "end_line": 271, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirVerifier", "parent_class": null, "start_line": 273, "end_line": 277, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } }, { "name": "VerificationError", "parent_class": null, "start_line": 279, "end_line": 306, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 61, "end_line": 65, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "verify_module", "start_line": 68, "end_line": 86, "parameters": [ "&mut self", "module: &MirModule" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "verify_function", "start_line": 89, "end_line": 112, "parameters": [ "&mut self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "verify_ssa_form", "start_line": 115, "end_line": 154, "parameters": [ "&self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "verify_dominance", "start_line": 157, "end_line": 188, "parameters": [ "&self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "verify_control_flow", "start_line": 191, "end_line": 221, "parameters": [ "&self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "compute_reachable_blocks", "start_line": 224, "end_line": 260, "parameters": [ "&self", "function: &MirFunction" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "get_errors", "start_line": 263, "end_line": 265, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "clear_errors", "start_line": 268, "end_line": 270, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 274, "end_line": 276, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 280, "end_line": 305, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_valid_function_verification", "start_line": 314, "end_line": 329, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_undefined_value_detection", "start_line": 332, "end_line": 336, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{MirModule, MirFunction, BasicBlockId, ValueId}", "imported_names": [], "alias": null, "line_number": 7, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::{HashSet, HashMap}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 310, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}", "imported_names": [], "alias": null, "line_number": 311, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 5, "function_count": 13, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 7, "end_line": 7, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VerificationError", "full_name": "", "start_line": 12, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirVerifier", "full_name": "", "start_line": 54, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirVerifier", "full_name": "", "start_line": 59, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 61, "end_line": 65, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_module", "full_name": "", "start_line": 68, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 71, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 72, "end_line": 78, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 74, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_function", "full_name": "", "start_line": 89, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 93, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 103, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 107, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_ssa_form", "full_name": "", "start_line": 115, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 116, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 117, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 120, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 121, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 122, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 123, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 135, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 136, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 137, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 138, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 149, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_dominance", "full_name": "", "start_line": 157, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 163, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 166, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 168, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 169, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 177, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 183, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "verify_control_flow", "full_name": "", "start_line": 191, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 195, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 196, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 197, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 208, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 216, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compute_reachable_blocks", "full_name": "", "start_line": 224, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 225, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 226, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 228, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 229, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 230, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 232, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 233, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 239, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 240, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 241, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 248, "end_line": 254, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 249, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 250, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_errors", "full_name": "", "start_line": 263, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear_errors", "full_name": "", "start_line": 268, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirVerifier", "full_name": "", "start_line": 273, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 274, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VerificationError", "full_name": "", "start_line": 279, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 280, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 310, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 311, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_valid_function_verification", "full_name": "", "start_line": 314, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 315, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 322, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 323, "end_line": 323, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 325, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 326, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_undefined_value_detection", "full_name": "", "start_line": 332, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 77, "max_depth": 21, "node_type_counts": { "class": 5, "function": 13, "for_loop": 16, "file_root": 1, "import": 4, "if_statement": 24, "variable": 14 }, "classes": 5, "functions": 13, "methods": 0, "variables": 14, "control_structures": 40 }, "generated_at": "2025-08-15T16:19:40.663438283Z" }, { "file_info": { "name": "operator_traits.rs", "path": "src/operator_traits.rs", "size_bytes": 0, "total_lines": 144, "code_lines": 65, "comment_lines": 51, "empty_lines": 28, "code_ratio": 0.4513888888888889, "analyzed_at": "2025-08-15T16:19:40.664639750Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashAdd", "parent_class": null, "start_line": 25, "end_line": 31, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "NyashSub", "parent_class": null, "start_line": 34, "end_line": 40, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "NyashMul", "parent_class": null, "start_line": 43, "end_line": 49, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "NyashDiv", "parent_class": null, "start_line": 52, "end_line": 58, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "DynamicAdd", "parent_class": null, "start_line": 64, "end_line": 71, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "DynamicSub", "parent_class": null, "start_line": 74, "end_line": 80, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "DynamicMul", "parent_class": null, "start_line": 83, "end_line": 89, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "DynamicDiv", "parent_class": null, "start_line": 92, "end_line": 98, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "OperatorError", "parent_class": null, "start_line": 104, "end_line": 120, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "OperatorError", "parent_class": null, "start_line": 122, "end_line": 138, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "OperatorError", "parent_class": null, "start_line": 140, "end_line": 140, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::error::Error", "type": "impl" } } ], "functions": [ { "name": "fmt", "start_line": 123, "end_line": 137, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::NyashBox", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 11, "function_count": 1, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashAdd", "full_name": "", "start_line": 25, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashSub", "full_name": "", "start_line": 34, "end_line": 40, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashMul", "full_name": "", "start_line": 43, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashDiv", "full_name": "", "start_line": 52, "end_line": 58, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicAdd", "full_name": "", "start_line": 64, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicSub", "full_name": "", "start_line": 74, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicMul", "full_name": "", "start_line": 83, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicDiv", "full_name": "", "start_line": 92, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorError", "full_name": "", "start_line": 104, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorError", "full_name": "", "start_line": 122, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 123, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorError", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 15, "max_depth": 3, "node_type_counts": { "import": 2, "file_root": 1, "function": 1, "class": 11 }, "classes": 11, "functions": 1, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.664649004Z" }, { "file_info": { "name": "expressions.rs", "path": "src/parser/expressions.rs", "size_bytes": 0, "total_lines": 556, "code_lines": 442, "comment_lines": 40, "empty_lines": 74, "code_ratio": 0.7949640287769785, "analyzed_at": "2025-08-15T16:19:40.673599518Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashParser", "parent_class": null, "start_line": 44, "end_line": 556, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "parse_expression", "start_line": 46, "end_line": 48, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_or", "start_line": 51, "end_line": 67, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_and", "start_line": 70, "end_line": 86, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_equality", "start_line": 89, "end_line": 109, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_comparison", "start_line": 112, "end_line": 137, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_term", "start_line": 140, "end_line": 171, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_factor", "start_line": 174, "end_line": 195, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_unary", "start_line": 198, "end_line": 229, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_call", "start_line": 232, "end_line": 312, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_primary", "start_line": 315, "end_line": 469, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_from_call", "start_line": 472, "end_line": 555, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::tokenizer::TokenType", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::{ASTNode, BinaryOperator, LiteralValue, UnaryOperator, Span}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::{NyashParser, ParseError}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 11, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashParser", "full_name": "", "start_line": 44, "end_line": 556, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_expression", "full_name": "", "start_line": 46, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_or", "full_name": "", "start_line": 51, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 52, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 54, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 57, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_and", "full_name": "", "start_line": 70, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 71, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 73, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 74, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 76, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_equality", "full_name": "", "start_line": 89, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 90, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 92, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 93, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 99, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_comparison", "full_name": "", "start_line": 112, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 115, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 119, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_term", "full_name": "", "start_line": 140, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 143, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 144, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 147, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 154, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_factor", "full_name": "", "start_line": 174, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 175, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 177, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 185, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_unary", "full_name": "", "start_line": 198, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 199, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 211, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 219, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 221, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_call", "full_name": "", "start_line": 232, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 233, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 235, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 236, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 239, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 240, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 243, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 246, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 247, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 249, "end_line": 259, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 278, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 285, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 287, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 289, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 291, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 295, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_primary", "full_name": "", "start_line": 315, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 318, "end_line": 318, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 327, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 381, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 382, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 386, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 386, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 388, "end_line": 388, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 390, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 391, "end_line": 407, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 395, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 401, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 417, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 419, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 423, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 452, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 459, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 465, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_from_call", "full_name": "", "start_line": 472, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 476, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 476, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 477, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 481, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 490, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 490, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 497, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 514, "end_line": 514, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 525, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 534, "end_line": 534, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 536, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 541, "end_line": 544, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 95, "max_depth": 23, "node_type_counts": { "variable": 48, "for_loop": 12, "if_statement": 19, "class": 1, "function": 11, "file_root": 1, "import": 3 }, "classes": 1, "functions": 11, "methods": 0, "variables": 48, "control_structures": 31 }, "generated_at": "2025-08-15T16:19:40.673636548Z" }, { "file_info": { "name": "mod.rs", "path": "src/parser/mod.rs", "size_bytes": 0, "total_lines": 1530, "code_lines": 1158, "comment_lines": 142, "empty_lines": 230, "code_ratio": 0.7568627450980392, "analyzed_at": "2025-08-15T16:19:40.692040671Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ParseError", "parent_class": null, "start_line": 61, "end_line": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "NyashParser", "parent_class": null, "start_line": 94, "end_line": 101, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NyashParser", "parent_class": null, "start_line": 103, "end_line": 1529, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 105, "end_line": 112, "parameters": [ "tokens" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "parse_from_string", "start_line": 115, "end_line": 117, "parameters": [ "input" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "parse_from_string_with_fuel", "start_line": 121, "end_line": 129, "parameters": [ "input", "fuel" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "parse", "start_line": 132, "end_line": 134, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "parse_program", "start_line": 139, "end_line": 166, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_box_declaration", "start_line": 170, "end_line": 681, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_interface_box_declaration", "start_line": 684, "end_line": 779, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_global_var", "start_line": 782, "end_line": 802, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_function_declaration", "start_line": 806, "end_line": 871, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_static_declaration", "start_line": 874, "end_line": 890, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_static_function", "start_line": 893, "end_line": 976, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_static_box", "start_line": 979, "end_line": 1252, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parse_assignment_or_function_call", "start_line": 1255, "end_line": 1284, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "current_token", "start_line": 1291, "end_line": 1297, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "peek_token", "start_line": 1300, "end_line": 1306, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "advance", "start_line": 1309, "end_line": 1313, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "skip_newlines", "start_line": 1316, "end_line": 1324, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "consume", "start_line": 1327, "end_line": 1342, "parameters": [ "&mut self", "expected: TokenType" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "match_token", "start_line": 1345, "end_line": 1348, "parameters": [ "&self", "token_type: &TokenType" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_at_end", "start_line": 1351, "end_line": 1354, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "extract_dependencies_from_statements", "start_line": 1361, "end_line": 1369, "parameters": [ "&self", "statements: &[ASTNode]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "extract_dependencies_from_ast", "start_line": 1372, "end_line": 1425, "parameters": [ "&self", "node: &ASTNode", "dependencies: &mut std::collections::HashSet" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "check_circular_dependencies", "start_line": 1428, "end_line": 1442, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "has_cycle_dfs", "start_line": 1445, "end_line": 1478, "parameters": [ "&self", "current: &str", "visited: &mut std::collections::HashSet", "rec_stack: &mut std::collections::HashSet", "path: &mut Vec" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 1464, "end_line": 1464, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "validate_override_methods", "start_line": 1483, "end_line": 1528, "parameters": [ "&self", "child_name: &str", "parent_name: &str", "methods: &HashMap" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::tokenizer::{Token, TokenType, TokenizeError}", "imported_names": [], "alias": null, "line_number": 20, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::{ASTNode, Span}", "imported_names": [], "alias": null, "line_number": 21, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 22, "metadata": {} }, { "type": "rust_use", "module_path": "thiserror::Error", "imported_names": [], "alias": null, "line_number": 23, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 3, "function_count": 26, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 20, "end_line": 20, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 22, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 23, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ParseError", "full_name": "", "start_line": 61, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashParser", "full_name": "", "start_line": 94, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashParser", "full_name": "", "start_line": 103, "end_line": 1529, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 105, "end_line": 112, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_from_string", "full_name": "", "start_line": 115, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_from_string_with_fuel", "full_name": "", "start_line": 121, "end_line": 129, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 122, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 123, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 125, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "full_name": "", "start_line": 132, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_program", "full_name": "", "start_line": 139, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 140, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 143, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 146, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 151, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 156, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_box_declaration", "full_name": "", "start_line": 170, "end_line": 681, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 173, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 173, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 187, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 189, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 191, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 192, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 196, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 202, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 218, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 218, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 221, "end_line": 221, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 223, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 224, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 228, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 234, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 249, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 249, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 254, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 259, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 265, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 282, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 283, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 284, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 286, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 288, "end_line": 654, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 292, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 297, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 302, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 305, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 310, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 310, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 317, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 319, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 325, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 331, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 343, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 344, "end_line": 347, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 350, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 351, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 355, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 357, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 368, "end_line": 379, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 371, "end_line": 374, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 376, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 384, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 385, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 387, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 394, "end_line": 401, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 404, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 410, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 411, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 415, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 417, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 427, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 428, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 431, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 436, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 444, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 445, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 447, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 454, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 464, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 470, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 471, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 475, "end_line": 526, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 477, "end_line": 483, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 487, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 488, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 491, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 496, "end_line": 498, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 504, "end_line": 504, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 505, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 507, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 514, "end_line": 521, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 524, "end_line": 524, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 527, "end_line": 653, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 528, "end_line": 528, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 532, "end_line": 646, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 534, "end_line": 635, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 536, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 546, "end_line": 546, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 547, "end_line": 558, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 550, "end_line": 553, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 555, "end_line": 557, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 563, "end_line": 563, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 564, "end_line": 569, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 566, "end_line": 568, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 573, "end_line": 580, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 583, "end_line": 583, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 589, "end_line": 589, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 590, "end_line": 610, "start_column": 0, "end_column": 0, "depth": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 593, "end_line": 609, "start_column": 0, "end_column": 0, "depth": 28, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 597, "end_line": 600, "start_column": 0, "end_column": 0, "depth": 31, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 601, "end_line": 609, "start_column": 0, "end_column": 0, "depth": 30, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 603, "end_line": 603, "start_column": 0, "end_column": 0, "depth": 32, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 615, "end_line": 615, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 616, "end_line": 621, "start_column": 0, "end_column": 0, "depth": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 618, "end_line": 620, "start_column": 0, "end_column": 0, "depth": 28, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 625, "end_line": 632, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 638, "end_line": 644, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 650, "end_line": 650, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 659, "end_line": 664, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 661, "end_line": 663, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_interface_box_declaration", "full_name": "", "start_line": 684, "end_line": 779, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 688, "end_line": 699, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 688, "end_line": 699, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 689, "end_line": 689, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 693, "end_line": 693, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 704, "end_line": 704, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 706, "end_line": 760, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 708, "end_line": 759, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 709, "end_line": 709, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 713, "end_line": 751, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 716, "end_line": 716, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 717, "end_line": 726, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 718, "end_line": 721, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 723, "end_line": 725, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 731, "end_line": 738, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 745, "end_line": 745, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 753, "end_line": 753, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_global_var", "full_name": "", "start_line": 782, "end_line": 802, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 785, "end_line": 796, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 785, "end_line": 796, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 786, "end_line": 786, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 790, "end_line": 790, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 799, "end_line": 799, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_function_declaration", "full_name": "", "start_line": 806, "end_line": 871, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 810, "end_line": 821, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 810, "end_line": 821, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 811, "end_line": 811, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 815, "end_line": 815, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 825, "end_line": 825, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 827, "end_line": 845, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 830, "end_line": 844, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 834, "end_line": 836, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 837, "end_line": 844, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 838, "end_line": 838, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 853, "end_line": 853, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 854, "end_line": 859, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 856, "end_line": 858, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_static_declaration", "full_name": "", "start_line": 874, "end_line": 890, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 882, "end_line": 882, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_static_function", "full_name": "", "start_line": 893, "end_line": 976, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 897, "end_line": 926, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 897, "end_line": 926, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 898, "end_line": 898, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 902, "end_line": 916, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 905, "end_line": 915, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 909, "end_line": 909, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 920, "end_line": 920, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 930, "end_line": 930, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 932, "end_line": 950, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 935, "end_line": 949, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 939, "end_line": 941, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 942, "end_line": 949, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 943, "end_line": 943, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 958, "end_line": 958, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 959, "end_line": 964, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 961, "end_line": 963, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_static_box", "full_name": "", "start_line": 979, "end_line": 1252, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 982, "end_line": 993, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 982, "end_line": 993, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 983, "end_line": 983, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 987, "end_line": 987, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 996, "end_line": 1024, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 996, "end_line": 1024, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 998, "end_line": 998, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1000, "end_line": 1018, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1001, "end_line": 1017, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1005, "end_line": 1009, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1011, "end_line": 1011, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1027, "end_line": 1055, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1027, "end_line": 1055, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1030, "end_line": 1030, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1032, "end_line": 1050, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1033, "end_line": 1049, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1037, "end_line": 1041, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1043, "end_line": 1043, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1058, "end_line": 1086, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1058, "end_line": 1086, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1061, "end_line": 1061, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1063, "end_line": 1081, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1064, "end_line": 1080, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1068, "end_line": 1072, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1074, "end_line": 1074, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1091, "end_line": 1091, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1092, "end_line": 1092, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1093, "end_line": 1093, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1094, "end_line": 1094, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1095, "end_line": 1095, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1096, "end_line": 1096, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1098, "end_line": 1225, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1102, "end_line": 1104, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1107, "end_line": 1122, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1111, "end_line": 1111, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1112, "end_line": 1117, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1114, "end_line": 1116, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1125, "end_line": 1168, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1130, "end_line": 1164, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1133, "end_line": 1135, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1138, "end_line": 1143, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1138, "end_line": 1143, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1145, "end_line": 1163, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1147, "end_line": 1149, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1153, "end_line": 1155, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1159, "end_line": 1159, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1170, "end_line": 1224, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1171, "end_line": 1171, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1175, "end_line": 1217, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1179, "end_line": 1179, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1180, "end_line": 1189, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1181, "end_line": 1184, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1186, "end_line": 1188, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1194, "end_line": 1194, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1195, "end_line": 1200, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1197, "end_line": 1199, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1204, "end_line": 1211, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1230, "end_line": 1235, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1231, "end_line": 1231, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_assignment_or_function_call", "full_name": "", "start_line": 1255, "end_line": 1284, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1258, "end_line": 1258, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1261, "end_line": 1283, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1263, "end_line": 1263, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1276, "end_line": 1276, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "current_token", "full_name": "", "start_line": 1291, "end_line": 1297, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "peek_token", "full_name": "", "start_line": 1300, "end_line": 1306, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1301, "end_line": 1305, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "advance", "full_name": "", "start_line": 1309, "end_line": 1313, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1310, "end_line": 1312, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "skip_newlines", "full_name": "", "start_line": 1316, "end_line": 1324, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1317, "end_line": 1317, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1318, "end_line": 1321, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1322, "end_line": 1323, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "consume", "full_name": "", "start_line": 1327, "end_line": 1342, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1329, "end_line": 1341, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1331, "end_line": 1331, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1335, "end_line": 1335, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "match_token", "full_name": "", "start_line": 1345, "end_line": 1348, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_at_end", "full_name": "", "start_line": 1351, "end_line": 1354, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "extract_dependencies_from_statements", "full_name": "", "start_line": 1361, "end_line": 1369, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1362, "end_line": 1362, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1364, "end_line": 1366, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "extract_dependencies_from_ast", "full_name": "", "start_line": 1372, "end_line": 1425, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1376, "end_line": 1378, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1382, "end_line": 1384, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1399, "end_line": 1401, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1402, "end_line": 1406, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1403, "end_line": 1405, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1410, "end_line": 1412, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1415, "end_line": 1417, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "check_circular_dependencies", "full_name": "", "start_line": 1428, "end_line": 1442, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1429, "end_line": 1429, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1430, "end_line": 1430, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1431, "end_line": 1431, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1433, "end_line": 1439, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1434, "end_line": 1438, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1435, "end_line": 1437, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has_cycle_dfs", "full_name": "", "start_line": 1445, "end_line": 1478, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1456, "end_line": 1473, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1457, "end_line": 1472, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1458, "end_line": 1471, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1459, "end_line": 1461, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1462, "end_line": 1471, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1464, "end_line": 1464, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 1465, "end_line": 1465, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1466, "end_line": 1466, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "validate_override_methods", "full_name": "", "start_line": 1483, "end_line": 1528, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1484, "end_line": 1484, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1487, "end_line": 1519, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1488, "end_line": 1518, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1489, "end_line": 1517, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1496, "end_line": 1499, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1501, "end_line": 1507, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1510, "end_line": 1516, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1522, "end_line": 1525, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 306, "max_depth": 32, "node_type_counts": { "import": 4, "class": 3, "file_root": 1, "function": 25, "variable": 118, "for_loop": 39, "if_statement": 116 }, "classes": 3, "functions": 25, "methods": 0, "variables": 118, "control_structures": 155 }, "generated_at": "2025-08-15T16:19:40.692131742Z" }, { "file_info": { "name": "statements.rs", "path": "src/parser/statements.rs", "size_bytes": 0, "total_lines": 489, "code_lines": 376, "comment_lines": 50, "empty_lines": 63, "code_ratio": 0.7689161554192229, "analyzed_at": "2025-08-15T16:19:40.667537697Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashParser", "parent_class": null, "start_line": 12, "end_line": 489, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "parse_statement", "start_line": 14, "end_line": 87, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_if", "start_line": 90, "end_line": 138, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_loop", "start_line": 141, "end_line": 165, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_break", "start_line": 168, "end_line": 171, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_return", "start_line": 174, "end_line": 187, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_print", "start_line": 190, "end_line": 197, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_nowait", "start_line": 200, "end_line": 225, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_include", "start_line": 228, "end_line": 245, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_local", "start_line": 248, "end_line": 306, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_outbox", "start_line": 309, "end_line": 350, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_try_catch", "start_line": 353, "end_line": 443, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_throw", "start_line": 446, "end_line": 450, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_from_call_statement", "start_line": 453, "end_line": 460, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_using", "start_line": 463, "end_line": 488, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub(super)" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::tokenizer::TokenType", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::{ASTNode, CatchClause, Span}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "super::{NyashParser, ParseError}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 1, "function_count": 14, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashParser", "full_name": "", "start_line": 12, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_statement", "full_name": "", "start_line": 14, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 16, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 81, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_if", "full_name": "", "start_line": 90, "end_line": 138, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 94, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 98, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 99, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 108, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 108, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 111, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 113, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 118, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 119, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 121, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_loop", "full_name": "", "start_line": 141, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 151, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 152, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 154, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_break", "full_name": "", "start_line": 168, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_return", "full_name": "", "start_line": 174, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 178, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_print", "full_name": "", "start_line": 190, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 193, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_nowait", "full_name": "", "start_line": 200, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 204, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 205, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 209, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 218, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_include", "full_name": "", "start_line": 228, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 231, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 231, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 232, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 236, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_local", "full_name": "", "start_line": 248, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 252, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 255, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 260, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 275, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 278, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 283, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 299, "end_line": 299, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_outbox", "full_name": "", "start_line": 309, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 312, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 315, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 320, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 323, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 327, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 336, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 343, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_try_catch", "full_name": "", "start_line": 353, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 357, "end_line": 357, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 358, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 360, "end_line": 362, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 370, "end_line": 416, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 375, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 375, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 376, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 384, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 384, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 385, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 389, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 400, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 401, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 403, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 419, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 419, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 423, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 424, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 426, "end_line": 428, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_throw", "full_name": "", "start_line": 446, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 448, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_from_call_statement", "full_name": "", "start_line": 453, "end_line": 460, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 455, "end_line": 455, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_using", "full_name": "", "start_line": 463, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 467, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 468, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 472, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 88, "max_depth": 19, "node_type_counts": { "file_root": 1, "for_loop": 9, "import": 3, "function": 14, "class": 1, "variable": 39, "if_statement": 21 }, "classes": 1, "functions": 14, "methods": 0, "variables": 39, "control_structures": 30 }, "generated_at": "2025-08-15T16:19:40.667571110Z" }, { "file_info": { "name": "runner.rs", "path": "src/runner.rs", "size_bytes": 0, "total_lines": 711, "code_lines": 548, "comment_lines": 68, "empty_lines": 95, "code_ratio": 0.770745428973277, "analyzed_at": "2025-08-15T16:19:40.662801328Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashRunner", "parent_class": null, "start_line": 21, "end_line": 23, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashRunner", "parent_class": null, "start_line": 25, "end_line": 459, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 27, "end_line": 29, "parameters": [ "config: CliConfig" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "run", "start_line": 32, "end_line": 49, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "execute_file_mode", "start_line": 52, "end_line": 76, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_demo_mode", "start_line": 79, "end_line": 106, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_nyash_file", "start_line": 109, "end_line": 169, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_mir_mode", "start_line": 172, "end_line": 227, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_vm_mode", "start_line": 230, "end_line": 271, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "execute_wasm_mode", "start_line": 274, "end_line": 343, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 315, "end_line": 321, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_aot_mode", "start_line": 346, "end_line": 403, "parameters": [ "&self", "filename: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 385, "end_line": 391, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "execute_benchmark_mode", "start_line": 406, "end_line": 458, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_basic_boxes", "start_line": 462, "end_line": 479, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_box_operations", "start_line": 481, "end_line": 497, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_box_collections", "start_line": 499, "end_line": 505, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_environment_system", "start_line": 507, "end_line": 510, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_tokenizer_system", "start_line": 512, "end_line": 528, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_parser_system", "start_line": 530, "end_line": 632, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "demo_interpreter_system", "start_line": 634, "end_line": 686, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_runner_creation", "start_line": 693, "end_line": 710, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::cli::CliConfig", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::{\n box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox, AddBox, BoxCore},\n tokenizer::{NyashTokenizer},\n ast::ASTNode,\n parser::NyashParser,\n interpreter::NyashInterpreter,\n mir::{MirCompiler, MirPrinter},\n backend::{VM, wasm::WasmBackend, aot::AotBackend},\n}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::{fs, process}", "imported_names": [], "alias": null, "line_number": 18, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::Write", "imported_names": [], "alias": null, "line_number": 148, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 690, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 2, "function_count": 20, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 18, "end_line": 18, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashRunner", "full_name": "", "start_line": 21, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashRunner", "full_name": "", "start_line": 25, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 27, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run", "full_name": "", "start_line": 32, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 34, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 44, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_file_mode", "full_name": "", "start_line": 52, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 53, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 56, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 59, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 62, "end_line": 75, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 67, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_demo_mode", "full_name": "", "start_line": 79, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_nyash_file", "full_name": "", "start_line": 109, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 111, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 127, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 143, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 148, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 149, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 150, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 156, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_mir_mode", "full_name": "", "start_line": 172, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 174, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 183, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 193, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 202, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 208, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 217, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 218, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 218, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_vm_mode", "full_name": "", "start_line": 230, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 232, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 241, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 250, "end_line": 250, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 251, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 260, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_wasm_mode", "full_name": "", "start_line": 274, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 276, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 285, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 294, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 295, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 304, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 305, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 314, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 316, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 322, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 325, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_aot_mode", "full_name": "", "start_line": 346, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 348, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 357, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 366, "end_line": 366, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 367, "end_line": 373, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 376, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 384, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 386, "end_line": 390, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_benchmark_mode", "full_name": "", "start_line": 406, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 410, "end_line": 416, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 423, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 424, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 425, "end_line": 428, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 426, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 427, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 430, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 437, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 438, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 439, "end_line": 445, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 440, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 441, "end_line": 444, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 442, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 443, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 447, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 453, "end_line": 453, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_basic_boxes", "full_name": "", "start_line": 462, "end_line": 479, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 466, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 467, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 468, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 469, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_box_operations", "full_name": "", "start_line": 481, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 485, "end_line": 485, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 486, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 487, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 492, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 493, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 494, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_box_collections", "full_name": "", "start_line": 499, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_environment_system", "full_name": "", "start_line": 507, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_tokenizer_system", "full_name": "", "start_line": 512, "end_line": 528, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 516, "end_line": 516, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 520, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_parser_system", "full_name": "", "start_line": 530, "end_line": 632, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 535, "end_line": 543, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 550, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 552, "end_line": 554, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 562, "end_line": 567, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 573, "end_line": 578, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 575, "end_line": 577, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 585, "end_line": 588, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 594, "end_line": 600, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 595, "end_line": 599, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 596, "end_line": 598, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 607, "end_line": 618, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 624, "end_line": 628, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 625, "end_line": 627, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_interpreter_system", "full_name": "", "start_line": 634, "end_line": 686, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 638, "end_line": 642, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 649, "end_line": 649, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 663, "end_line": 667, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 674, "end_line": 674, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 690, "end_line": 690, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_runner_creation", "full_name": "", "start_line": 693, "end_line": 710, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 694, "end_line": 706, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 708, "end_line": 708, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 117, "max_depth": 16, "node_type_counts": { "class": 2, "for_loop": 7, "if_statement": 21, "file_root": 1, "variable": 63, "function": 18, "import": 5 }, "classes": 2, "functions": 18, "methods": 0, "variables": 63, "control_structures": 28 }, "generated_at": "2025-08-15T16:19:40.662844756Z" }, { "file_info": { "name": "mod.rs", "path": "src/stdlib/mod.rs", "size_bytes": 0, "total_lines": 225, "code_lines": 152, "comment_lines": 35, "empty_lines": 38, "code_ratio": 0.6755555555555556, "analyzed_at": "2025-08-15T16:19:40.624546078Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BuiltinStdlib", "parent_class": null, "start_line": 14, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BuiltinNamespace", "parent_class": null, "start_line": 19, "end_line": 22, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BuiltinStaticBox", "parent_class": null, "start_line": 25, "end_line": 28, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BuiltinStdlib", "parent_class": null, "start_line": 33, "end_line": 225, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 35, "end_line": 44, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "register_nyashstd", "start_line": 47, "end_line": 69, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "create_string_box", "start_line": 72, "end_line": 117, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 79, "end_line": 95, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 98, "end_line": 114, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "create_integer_box", "start_line": 120, "end_line": 146, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 127, "end_line": 143, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "create_bool_box", "start_line": 149, "end_line": 175, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 156, "end_line": 172, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "create_array_box", "start_line": 178, "end_line": 197, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 185, "end_line": 194, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "create_console_box", "start_line": 200, "end_line": 224, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 207, "end_line": 221, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, IntegerBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::{ArrayBox, ConsoleBox}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "crate::interpreter::RuntimeError", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::VoidBox", "imported_names": [], "alias": null, "line_number": 219, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 13, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BuiltinStdlib", "full_name": "", "start_line": 14, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BuiltinNamespace", "full_name": "", "start_line": 19, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BuiltinStaticBox", "full_name": "", "start_line": 25, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BuiltinStdlib", "full_name": "", "start_line": 33, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 35, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 36, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_nyashstd", "full_name": "", "start_line": 47, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 48, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_string_box", "full_name": "", "start_line": 72, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 73, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 80, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 87, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 106, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 107, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_integer_box", "full_name": "", "start_line": 120, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 121, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 128, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 135, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 136, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_bool_box", "full_name": "", "start_line": 149, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 150, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 157, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 164, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_array_box", "full_name": "", "start_line": 178, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 179, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 186, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_console_box", "full_name": "", "start_line": 200, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 201, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 215, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 219, "end_line": 219, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 40, "max_depth": 13, "node_type_counts": { "file_root": 1, "class": 4, "import": 5, "function": 7, "variable": 13, "if_statement": 10 }, "classes": 4, "functions": 7, "methods": 0, "variables": 13, "control_structures": 10 }, "generated_at": "2025-08-15T16:19:40.624561090Z" }, { "file_info": { "name": "tokenizer.rs", "path": "src/tokenizer.rs", "size_bytes": 0, "total_lines": 634, "code_lines": 529, "comment_lines": 40, "empty_lines": 65, "code_ratio": 0.8343848580441641, "analyzed_at": "2025-08-15T16:19:40.619098346Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "TokenType", "parent_class": null, "start_line": 12, "end_line": 87, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "Token", "parent_class": null, "start_line": 91, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "Token", "parent_class": null, "start_line": 97, "end_line": 101, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TokenizeError", "parent_class": null, "start_line": 105, "end_line": 117, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "NyashTokenizer", "parent_class": null, "start_line": 120, "end_line": 125, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashTokenizer", "parent_class": null, "start_line": 127, "end_line": 478, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 98, "end_line": 100, "parameters": [ "token_type: TokenType", "line: usize", "column: usize" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 129, "end_line": 137, "parameters": [ "input" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "tokenize", "start_line": 140, "end_line": 160, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "tokenize_next", "start_line": 163, "end_line": 300, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "read_string", "start_line": 303, "end_line": 338, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "read_numeric_literal", "start_line": 341, "end_line": 372, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 351, "end_line": 351, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 365, "end_line": 365, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 370, "end_line": 370, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "read_keyword_or_identifier", "start_line": 375, "end_line": 428, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "skip_line_comment", "start_line": 431, "end_line": 438, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "skip_whitespace", "start_line": 441, "end_line": 449, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "current_char", "start_line": 452, "end_line": 454, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "peek_char", "start_line": 457, "end_line": 459, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "advance", "start_line": 462, "end_line": 472, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_at_end", "start_line": 475, "end_line": 477, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_simple_tokens", "start_line": 487, "end_line": 499, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_string_literal", "start_line": 502, "end_line": 511, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_number_literal", "start_line": 514, "end_line": 531, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_identifier", "start_line": 534, "end_line": 551, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_operators", "start_line": 554, "end_line": 565, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_complex_code", "start_line": 568, "end_line": 592, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 586, "end_line": 586, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_line_numbers", "start_line": 595, "end_line": 603, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_comments", "start_line": 606, "end_line": 617, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "closure", "start_line": 615, "end_line": 615, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "test_error_handling", "start_line": 620, "end_line": 633, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "thiserror::Error", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 484, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 6, "function_count": 27, "import_count": 2, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TokenType", "full_name": "", "start_line": 12, "end_line": 87, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Token", "full_name": "", "start_line": 91, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Token", "full_name": "", "start_line": 97, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TokenizeError", "full_name": "", "start_line": 105, "end_line": 117, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashTokenizer", "full_name": "", "start_line": 120, "end_line": 125, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashTokenizer", "full_name": "", "start_line": 127, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 129, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 130, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "tokenize", "full_name": "", "start_line": 140, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 141, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 143, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 147, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 152, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "tokenize_next", "full_name": "", "start_line": 163, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 169, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 173, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 177, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read_string", "full_name": "", "start_line": 303, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 304, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 307, "end_line": 307, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 309, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 310, "end_line": 313, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 316, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read_numeric_literal", "full_name": "", "start_line": 341, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 342, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 343, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 344, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 347, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 348, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 351, "end_line": 358, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 361, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read_keyword_or_identifier", "full_name": "", "start_line": 375, "end_line": 428, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 376, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 378, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 379, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "skip_line_comment", "full_name": "", "start_line": 431, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 432, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 433, "end_line": 435, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "skip_whitespace", "full_name": "", "start_line": 441, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 442, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 443, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "current_char", "full_name": "", "start_line": 452, "end_line": 454, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "peek_char", "full_name": "", "start_line": 457, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "advance", "full_name": "", "start_line": 462, "end_line": 472, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 463, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 464, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_at_end", "full_name": "", "start_line": 475, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 484, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_simple_tokens", "full_name": "", "start_line": 487, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 488, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 489, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_string_literal", "full_name": "", "start_line": 502, "end_line": 511, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 503, "end_line": 503, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 504, "end_line": 504, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_number_literal", "full_name": "", "start_line": 514, "end_line": 531, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 515, "end_line": 515, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 516, "end_line": 516, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_identifier", "full_name": "", "start_line": 534, "end_line": 551, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 535, "end_line": 535, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 536, "end_line": 536, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_operators", "full_name": "", "start_line": 554, "end_line": 565, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 555, "end_line": 555, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 556, "end_line": 556, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_complex_code", "full_name": "", "start_line": 568, "end_line": 592, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 569, "end_line": 580, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 582, "end_line": 582, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 583, "end_line": 583, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 586, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_line_numbers", "full_name": "", "start_line": 595, "end_line": 603, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 596, "end_line": 596, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 597, "end_line": 597, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 598, "end_line": 598, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_comments", "full_name": "", "start_line": 606, "end_line": 617, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 607, "end_line": 609, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 611, "end_line": 611, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 612, "end_line": 612, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 615, "end_line": 615, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_error_handling", "full_name": "", "start_line": 620, "end_line": 633, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 621, "end_line": 621, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 622, "end_line": 622, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 85, "max_depth": 11, "node_type_counts": { "file_root": 1, "import": 2, "function": 22, "variable": 37, "for_loop": 6, "if_statement": 11, "class": 6 }, "classes": 6, "functions": 22, "methods": 0, "variables": 37, "control_structures": 17 }, "generated_at": "2025-08-15T16:19:40.619133203Z" }, { "file_info": { "name": "inprocess.rs", "path": "src/transport/inprocess.rs", "size_bytes": 0, "total_lines": 103, "code_lines": 71, "comment_lines": 19, "empty_lines": 13, "code_ratio": 0.6893203883495146, "analyzed_at": "2025-08-15T16:19:40.664097471Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "InProcessTransport", "parent_class": null, "start_line": 20, "end_line": 25, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "InProcessTransport", "parent_class": null, "start_line": 27, "end_line": 51, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "InProcessTransport", "parent_class": null, "start_line": 53, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Transport" } }, { "name": "InProcessTransport", "parent_class": null, "start_line": 97, "end_line": 103, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Drop" } } ], "functions": [ { "name": "new", "start_line": 29, "end_line": 45, "parameters": [ "node_id: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_handler", "start_line": 48, "end_line": 50, "parameters": [ "&self", "intent_name: &str", "handler: IntentHandler" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "node_id", "start_line": 54, "end_line": 56, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "send", "start_line": 58, "end_line": 80, "parameters": [ "&self", "to: &str", "intent: IntentBox", "_opts: SendOpts" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "on_receive", "start_line": 82, "end_line": 85, "parameters": [ "&mut self", "callback" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "is_reachable", "start_line": 87, "end_line": 90, "parameters": [ "&self", "node_id: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "transport_type", "start_line": 92, "end_line": 94, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "drop", "start_line": 98, "end_line": 102, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "super::{Transport, IntentEnvelope, SendOpts, TransportError}", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::messaging::{MessageBus, MessageBusData, BusEndpoint, SendError, IntentHandler}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::IntentBox", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 8, "import_count": 4, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 14, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 15, "end_line": 15, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 16, "end_line": 16, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 17, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InProcessTransport", "full_name": "", "start_line": 20, "end_line": 25, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InProcessTransport", "full_name": "", "start_line": 27, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 29, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 30, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 31, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 35, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_handler", "full_name": "", "start_line": 48, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InProcessTransport", "full_name": "", "start_line": 53, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "node_id", "full_name": "", "start_line": 54, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "send", "full_name": "", "start_line": 58, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 59, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 64, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 65, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "on_receive", "full_name": "", "start_line": 82, "end_line": 85, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 83, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_reachable", "full_name": "", "start_line": 87, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "transport_type", "full_name": "", "start_line": 92, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InProcessTransport", "full_name": "", "start_line": 97, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "drop", "full_name": "", "start_line": 98, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 100, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 26, "max_depth": 13, "node_type_counts": { "file_root": 1, "import": 4, "class": 4, "function": 8, "variable": 8, "if_statement": 1 }, "classes": 4, "functions": 8, "methods": 0, "variables": 8, "control_structures": 1 }, "generated_at": "2025-08-15T16:19:40.664104597Z" }, { "file_info": { "name": "mod.rs", "path": "src/transport/mod.rs", "size_bytes": 0, "total_lines": 55, "code_lines": 30, "comment_lines": 14, "empty_lines": 11, "code_ratio": 0.5454545454545454, "analyzed_at": "2025-08-15T16:19:40.624262818Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntentEnvelope", "parent_class": null, "start_line": 14, "end_line": 19, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "SendOpts", "parent_class": null, "start_line": 23, "end_line": 26, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "TransportError", "parent_class": null, "start_line": 30, "end_line": 35, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "Transport", "parent_class": null, "start_line": 38, "end_line": 53, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } } ], "functions": [], "imports": [ { "type": "rust_use", "module_path": "crate::boxes::IntentBox", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "inprocess::InProcessTransport", "imported_names": [], "alias": null, "line_number": 55, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 4, "function_count": 0, "import_count": 3, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentEnvelope", "full_name": "", "start_line": 14, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SendOpts", "full_name": "", "start_line": 23, "end_line": 26, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TransportError", "full_name": "", "start_line": 30, "end_line": 35, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Transport", "full_name": "", "start_line": 38, "end_line": 53, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 8, "max_depth": 1, "node_type_counts": { "class": 4, "file_root": 1, "import": 3 }, "classes": 4, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-15T16:19:40.624266924Z" }, { "file_info": { "name": "type_box.rs", "path": "src/type_box.rs", "size_bytes": 0, "total_lines": 446, "code_lines": 307, "comment_lines": 61, "empty_lines": 78, "code_ratio": 0.6883408071748879, "analyzed_at": "2025-08-15T16:19:40.662734024Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MethodSignature", "parent_class": null, "start_line": 16, "end_line": 22, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MethodSignature", "parent_class": null, "start_line": 24, "end_line": 49, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TypeBox", "parent_class": null, "start_line": 53, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "TypeBox", "parent_class": null, "start_line": 79, "end_line": 233, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TypeBox", "parent_class": null, "start_line": 236, "end_line": 261, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "TypeBox", "parent_class": null, "start_line": 263, "end_line": 283, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "TypeBox", "parent_class": null, "start_line": 285, "end_line": 289, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "TypeRegistry", "parent_class": null, "start_line": 293, "end_line": 303, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TypeRegistry", "parent_class": null, "start_line": 305, "end_line": 403, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TypeBoxBuilder", "parent_class": null, "start_line": 406, "end_line": 408, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TypeBoxBuilder", "parent_class": null, "start_line": 410, "end_line": 446, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 25, "end_line": 33, "parameters": [ "name: String", "parameters" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "with_types", "start_line": 35, "end_line": 48, "parameters": [ "name: String", "parameters", "parameter_types", "return_type" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 81, "end_line": 92, "parameters": [ "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "builtin", "start_line": 95, "end_line": 99, "parameters": [ "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "add_field", "start_line": 102, "end_line": 104, "parameters": [ "&mut self", "name: &str", "field_type" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "add_method", "start_line": 107, "end_line": 109, "parameters": [ "&mut self", "method: MethodSignature" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "set_parent", "start_line": 112, "end_line": 114, "parameters": [ "&mut self", "parent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "add_type_parameter", "start_line": 117, "end_line": 119, "parameters": [ "&mut self", "param: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "set_concrete_type", "start_line": 122, "end_line": 124, "parameters": [ "&mut self", "param: &str", "concrete_type" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_field_type", "start_line": 127, "end_line": 139, "parameters": [ "&self", "field_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "get_method_signature", "start_line": 142, "end_line": 154, "parameters": [ "&self", "method_name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_compatible_with", "start_line": 157, "end_line": 171, "parameters": [ "&self", "other: &TypeBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_generic", "start_line": 174, "end_line": 176, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_concrete_generic", "start_line": 179, "end_line": 181, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "full_name", "start_line": 184, "end_line": 203, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 192, "end_line": 196, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 194, "end_line": 194, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 195, "end_line": 195, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "void_type", "start_line": 206, "end_line": 208, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "string_type", "start_line": 210, "end_line": 212, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "integer_type", "start_line": 214, "end_line": 216, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "bool_type", "start_line": 218, "end_line": 220, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "array_type", "start_line": 222, "end_line": 226, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "method_box_type", "start_line": 228, "end_line": 232, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_string_box", "start_line": 237, "end_line": 239, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "equals", "start_line": 241, "end_line": 247, "parameters": [ "&self", "other: &dyn NyashBox" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "type_name", "start_line": 249, "end_line": 251, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "clone_box", "start_line": 253, "end_line": 255, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "share_box", "start_line": 258, "end_line": 260, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "box_id", "start_line": 264, "end_line": 266, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "parent_type_id", "start_line": 268, "end_line": 270, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt_box", "start_line": 272, "end_line": 274, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any", "start_line": 276, "end_line": 278, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "as_any_mut", "start_line": 280, "end_line": 282, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 286, "end_line": 288, "parameters": [ "&self", "f: &mut std::fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "new", "start_line": 307, "end_line": 317, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "register_builtin_types", "start_line": 320, "end_line": 327, "parameters": [ "&mut self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "register_type", "start_line": 330, "end_line": 343, "parameters": [ "&mut self", "type_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_type", "start_line": 346, "end_line": 348, "parameters": [ "&self", "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_compatible", "start_line": 351, "end_line": 361, "parameters": [ "&self", "from_type: &str", "to_type: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "get_all_type_names", "start_line": 364, "end_line": 366, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "instantiate_generic", "start_line": 369, "end_line": 402, "parameters": [ "&mut self", "base_type: &str", "concrete_types: &[&str]" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 371, "end_line": 371, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 392, "end_line": 392, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "new", "start_line": 412, "end_line": 416, "parameters": [ "name: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "field", "start_line": 419, "end_line": 422, "parameters": [ "mut self", "name: &str", "field_type" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "method", "start_line": 425, "end_line": 428, "parameters": [ "mut self", "method: MethodSignature" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "parent", "start_line": 431, "end_line": 434, "parameters": [ "mut self", "parent" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "type_param", "start_line": 437, "end_line": 440, "parameters": [ "mut self", "param: &str" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "build", "start_line": 443, "end_line": 445, "parameters": [ "self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } } ], "imports": [ { "type": "rust_use", "module_path": "crate::box_trait::{NyashBox, StringBox, BoolBox, BoxCore, BoxBase}", "imported_names": [], "alias": null, "line_number": 8, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{Debug, Display}", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 11, "function_count": 50, "import_count": 5, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 8, "end_line": 8, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 9, "end_line": 9, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodSignature", "full_name": "", "start_line": 16, "end_line": 22, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodSignature", "full_name": "", "start_line": 24, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 25, "end_line": 33, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "with_types", "full_name": "", "start_line": 35, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBox", "full_name": "", "start_line": 53, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBox", "full_name": "", "start_line": 79, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 81, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "builtin", "full_name": "", "start_line": 95, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 96, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_field", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_method", "full_name": "", "start_line": 107, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_parent", "full_name": "", "start_line": 112, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add_type_parameter", "full_name": "", "start_line": 117, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_concrete_type", "full_name": "", "start_line": 122, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_field_type", "full_name": "", "start_line": 127, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 134, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_method_signature", "full_name": "", "start_line": 142, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 144, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 149, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_compatible_with", "full_name": "", "start_line": 157, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 159, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 164, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 165, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_generic", "full_name": "", "start_line": 174, "end_line": 176, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_concrete_generic", "full_name": "", "start_line": 179, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "full_name", "full_name": "", "start_line": 184, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 185, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 188, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 191, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "void_type", "full_name": "", "start_line": 206, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "string_type", "full_name": "", "start_line": 210, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "integer_type", "full_name": "", "start_line": 214, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bool_type", "full_name": "", "start_line": 218, "end_line": 220, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "array_type", "full_name": "", "start_line": 222, "end_line": 226, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 223, "end_line": 223, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "method_box_type", "full_name": "", "start_line": 228, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBox", "full_name": "", "start_line": 236, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string_box", "full_name": "", "start_line": 237, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 241, "end_line": 247, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 242, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 249, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 253, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "share_box", "full_name": "", "start_line": 258, "end_line": 260, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBox", "full_name": "", "start_line": 263, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 264, "end_line": 266, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent_type_id", "full_name": "", "start_line": 268, "end_line": 270, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 272, "end_line": 274, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 276, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any_mut", "full_name": "", "start_line": 280, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBox", "full_name": "", "start_line": 285, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 286, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeRegistry", "full_name": "", "start_line": 293, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeRegistry", "full_name": "", "start_line": 305, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 307, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 308, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_builtin_types", "full_name": "", "start_line": 320, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_type", "full_name": "", "start_line": 330, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 331, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 334, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 335, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 336, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_type", "full_name": "", "start_line": 346, "end_line": 348, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_compatible", "full_name": "", "start_line": 351, "end_line": 361, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 352, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 356, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_all_type_names", "full_name": "", "start_line": 364, "end_line": 366, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "instantiate_generic", "full_name": "", "start_line": 369, "end_line": 402, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 370, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 373, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 377, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 385, "end_line": 385, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 390, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 391, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 396, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBoxBuilder", "full_name": "", "start_line": 406, "end_line": 408, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBoxBuilder", "full_name": "", "start_line": 410, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 412, "end_line": 416, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "field", "full_name": "", "start_line": 419, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "method", "full_name": "", "start_line": 425, "end_line": 428, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent", "full_name": "", "start_line": 431, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_param", "full_name": "", "start_line": 437, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "build", "full_name": "", "start_line": 443, "end_line": 445, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 90, "max_depth": 9, "node_type_counts": { "file_root": 1, "import": 5, "function": 45, "variable": 13, "for_loop": 2, "class": 11, "if_statement": 13 }, "classes": 11, "functions": 45, "methods": 0, "variables": 13, "control_structures": 15 }, "generated_at": "2025-08-15T16:19:40.662760778Z" }, { "file_info": { "name": "value.rs", "path": "src/value.rs", "size_bytes": 0, "total_lines": 575, "code_lines": 448, "comment_lines": 57, "empty_lines": 70, "code_ratio": 0.7791304347826087, "analyzed_at": "2025-08-15T16:19:40.623310753Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashValue", "parent_class": null, "start_line": 17, "end_line": 37, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "NyashValue", "parent_class": null, "start_line": 39, "end_line": 231, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashValue", "parent_class": null, "start_line": 233, "end_line": 283, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "PartialEq" } }, { "name": "NyashValue", "parent_class": null, "start_line": 285, "end_line": 289, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "NyashValue", "parent_class": null, "start_line": 291, "end_line": 312, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } }, { "name": "NyashValue", "parent_class": null, "start_line": 315, "end_line": 395, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashValue", "parent_class": null, "start_line": 398, "end_line": 441, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new_integer", "start_line": 41, "end_line": 43, "parameters": [ "value: i64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new_float", "start_line": 45, "end_line": 47, "parameters": [ "value: f64" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_bool", "start_line": 49, "end_line": 51, "parameters": [ "value: bool" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_string", "start_line": 53, "end_line": 55, "parameters": [ "value: String" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "new_array", "start_line": 57, "end_line": 59, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_map", "start_line": 61, "end_line": 63, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_null", "start_line": 65, "end_line": 67, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "new_void", "start_line": 69, "end_line": 71, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "to_string", "start_line": 74, "end_line": 121, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 83, "end_line": 83, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "closure", "start_line": 93, "end_line": 93, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "to_integer", "start_line": 124, "end_line": 135, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 131, "end_line": 131, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "to_float", "start_line": 138, "end_line": 149, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 145, "end_line": 145, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "to_bool", "start_line": 152, "end_line": 166, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "start_line": 169, "end_line": 182, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "is_numeric", "start_line": 185, "end_line": 187, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_falsy", "start_line": 190, "end_line": 193, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "upgrade_weak", "start_line": 199, "end_line": 206, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 202, "end_line": 202, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "closure" } }, { "name": "downgrade_to_weak", "start_line": 210, "end_line": 217, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_weak_reference", "start_line": 220, "end_line": 222, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "is_weak_alive", "start_line": 225, "end_line": 230, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "eq", "start_line": 234, "end_line": 282, "parameters": [ "&self", "other: &Self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 286, "end_line": 288, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "fmt", "start_line": 292, "end_line": 311, "parameters": [ "&self", "f: &mut fmt::Formatter<'_>" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "from_box", "start_line": 317, "end_line": 355, "parameters": [ "nyash_box" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "to_box", "start_line": 358, "end_line": 394, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "modifiers": "pub", "type": "function" } }, { "name": "create_object", "start_line": 400, "end_line": 440, "parameters": [ "type_name: &str", "args" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "test_basic_creation", "start_line": 448, "end_line": 458, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_type_conversion", "start_line": 461, "end_line": 471, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_cross_type_equality", "start_line": 474, "end_line": 480, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_object_creation", "start_line": 483, "end_line": 495, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_type_names", "start_line": 498, "end_line": 505, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_reference_basic", "start_line": 508, "end_line": 525, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_reference_drop", "start_line": 528, "end_line": 542, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_reference_equality", "start_line": 545, "end_line": 558, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } }, { "name": "test_weak_reference_string_representation", "start_line": 561, "end_line": 574, "parameters": [], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex, Weak}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "std::fmt::{self, Display, Debug}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::NyashBox", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 359, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::null_box::NullBox", "imported_names": [], "alias": null, "line_number": 360, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 445, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 509, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 529, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 546, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::StringBox", "imported_names": [], "alias": null, "line_number": 562, "metadata": {} } ], "exports": [], "function_calls": [], "call_frequency": {}, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "commented_lines": [], "metadata": {}, "stats": { "class_count": 7, "function_count": 39, "import_count": 11, "export_count": 0, "unique_calls": 0, "total_calls": 0, "commented_lines_count": 0 }, "ast_root": { "type": "file_root", "name": "", "full_name": "", "start_line": 0, "end_line": 0, "start_column": 0, "end_column": 0, "depth": 0, "scope_path": "", "children": [ { "type": "import", "name": "", "full_name": "", "start_line": 10, "end_line": 10, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 11, "end_line": 11, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 12, "end_line": 12, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 13, "end_line": 13, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 17, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 39, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_integer", "full_name": "", "start_line": 41, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_float", "full_name": "", "start_line": 45, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_bool", "full_name": "", "start_line": 49, "end_line": 51, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_string", "full_name": "", "start_line": 53, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_array", "full_name": "", "start_line": 57, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_map", "full_name": "", "start_line": 61, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_null", "full_name": "", "start_line": 65, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_void", "full_name": "", "start_line": 69, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string", "full_name": "", "start_line": 74, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 81, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 82, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 91, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 92, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 101, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 108, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 109, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_integer", "full_name": "", "start_line": 124, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 128, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_float", "full_name": "", "start_line": 138, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 142, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_bool", "full_name": "", "start_line": 152, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 169, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_numeric", "full_name": "", "start_line": 185, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_falsy", "full_name": "", "start_line": 190, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "upgrade_weak", "full_name": "", "start_line": 199, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "downgrade_to_weak", "full_name": "", "start_line": 210, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_weak_reference", "full_name": "", "start_line": 220, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_weak_alive", "full_name": "", "start_line": 225, "end_line": 230, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 233, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "eq", "full_name": "", "start_line": 234, "end_line": 282, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 265, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 272, "end_line": 276, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 285, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 286, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 291, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 292, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 302, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 315, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_box", "full_name": "", "start_line": 317, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 319, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 320, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 321, "end_line": 321, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 326, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 331, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 336, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_box", "full_name": "", "start_line": 358, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 359, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 360, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashValue", "full_name": "", "start_line": 398, "end_line": 441, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_object", "full_name": "", "start_line": 400, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 403, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 410, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 417, "end_line": 420, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 424, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 445, "end_line": 445, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_basic_creation", "full_name": "", "start_line": 448, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 449, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 450, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 451, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 452, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_type_conversion", "full_name": "", "start_line": 461, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 462, "end_line": 462, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 466, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 469, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_cross_type_equality", "full_name": "", "start_line": 474, "end_line": 480, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 475, "end_line": 475, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 476, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_object_creation", "full_name": "", "start_line": 483, "end_line": 495, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 484, "end_line": 486, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 490, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_type_names", "full_name": "", "start_line": 498, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_reference_basic", "full_name": "", "start_line": 508, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 509, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 512, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 515, "end_line": 515, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 520, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_reference_drop", "full_name": "", "start_line": 528, "end_line": 542, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 529, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 531, "end_line": 534, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 532, "end_line": 532, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_reference_equality", "full_name": "", "start_line": 545, "end_line": 558, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 546, "end_line": 546, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 548, "end_line": 548, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 549, "end_line": 549, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 550, "end_line": 550, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_reference_string_representation", "full_name": "", "start_line": 561, "end_line": 574, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 562, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 564, "end_line": 564, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 565, "end_line": 565, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 96, "max_depth": 14, "node_type_counts": { "file_root": 1, "function": 34, "if_statement": 14, "class": 7, "variable": 29, "import": 11 }, "classes": 7, "functions": 34, "methods": 0, "variables": 29, "control_structures": 14 }, "generated_at": "2025-08-15T16:19:40.623343753Z" } ], "summary": { "total_files": 106, "total_lines": 36689, "total_size": 0, "large_files": 23, "complex_files": 0, "total_classes": 619, "total_functions": 2189, "total_complexity": 106, "average_complexity": 1.0, "max_complexity": 1, "most_complex_file": "ast.rs" }, "generated_at": "2025-08-15T16:19:40.467057940Z" }