{ "id": "0d514b6c", "path": "src", "created_at": "2025-08-13T11:36:22.984115384Z", "last_accessed": "2025-08-13T11:36:22.984115703Z", "metadata": {}, "analysis_results": [ { "file_info": { "name": "ast.rs", "path": "src/ast.rs", "size_bytes": 0, "total_lines": 987, "code_lines": 808, "comment_lines": 88, "empty_lines": 91, "code_ratio": 0.8186423505572442, "analyzed_at": "2025-08-13T11:36:21.739176604Z", "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": { "modifiers": "pub", "type": "enum" } }, { "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": { "type": "enum", "modifiers": "pub" } }, { "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": 254, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "LiteralValue", "parent_class": null, "start_line": 256, "end_line": 292, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "LiteralValue", "parent_class": null, "start_line": 294, "end_line": 304, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "UnaryOperator", "parent_class": null, "start_line": 308, "end_line": 311, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "BinaryOperator", "parent_class": null, "start_line": 315, "end_line": 328, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "UnaryOperator", "parent_class": null, "start_line": 330, "end_line": 338, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "BinaryOperator", "parent_class": null, "start_line": 340, "end_line": 358, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "ASTNode", "parent_class": null, "start_line": 362, "end_line": 592, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "ASTNode", "parent_class": null, "start_line": 594, "end_line": 843, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ASTNode", "parent_class": null, "start_line": 845, "end_line": 849, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "ASTNode", "parent_class": null, "start_line": 851, "end_line": 859, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": 258, "end_line": 269, "parameters": [ "&self" ], "is_async": false, "is_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_nyash_box", "start_line": 272, "end_line": 291, "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": 295, "end_line": 303, "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": 331, "end_line": 337, "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": 341, "end_line": 357, "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": 596, "end_line": 630, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "classify", "start_line": 634, "end_line": 673, "parameters": [ "&self" ], "is_async": false, "is_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": 676, "end_line": 678, "parameters": [ "&self" ], "is_async": false, "is_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": 681, "end_line": 683, "parameters": [ "&self" ], "is_async": false, "is_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_statement", "start_line": 686, "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": "info", "start_line": 691, "end_line": 805, "parameters": [ "&self" ], "is_async": false, "is_arrow_function": false, "complexity": { "cyclomatic_complexity": 1, "max_nesting_depth": 0, "cognitive_complexity": 0, "rating": "simple", "rating_emoji": "🟢" }, "metadata": { "type": "function", "modifiers": "pub" } }, { "name": "span", "start_line": 808, "end_line": 842, "parameters": [ "&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": 846, "end_line": 848, "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": 853, "end_line": 858, "parameters": [ "&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": "test_ast_node_creation", "start_line": 869, "end_line": 899, "parameters": [], "is_async": 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": 902, "end_line": 911, "parameters": [], "is_async": 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": 914, "end_line": 955, "parameters": [], "is_async": 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": 958, "end_line": 971, "parameters": [], "is_async": 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": 974, "end_line": 986, "parameters": [], "is_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": 259, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 260, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 274, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox, VoidBox}", "imported_names": [], "alias": null, "line_number": 275, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 276, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 865, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::{StringBox, IntegerBox, BoolBox}", "imported_names": [], "alias": null, "line_number": 866, "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": 254, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LiteralValue", "full_name": "", "start_line": 256, "end_line": 292, "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": 258, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "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": "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": "function", "name": "from_nyash_box", "full_name": "", "start_line": 272, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "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": "import", "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": "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": "if_statement", "name": "", "full_name": "", "start_line": 278, "end_line": 290, "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": 290, "start_column": 0, "end_column": 0, "depth": 8, "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": 10, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 286, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "LiteralValue", "full_name": "", "start_line": 294, "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": 295, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "UnaryOperator", "full_name": "", "start_line": 308, "end_line": 311, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOperator", "full_name": "", "start_line": 315, "end_line": 328, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "UnaryOperator", "full_name": "", "start_line": 330, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 331, "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": 332, "end_line": 335, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOperator", "full_name": "", "start_line": 340, "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": 341, "end_line": 357, "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": 355, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 362, "end_line": 592, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 594, "end_line": 843, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "node_type", "full_name": "", "start_line": 596, "end_line": 630, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "classify", "full_name": "", "start_line": 634, "end_line": 673, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_structure", "full_name": "", "start_line": 676, "end_line": 678, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_expression", "full_name": "", "start_line": 681, "end_line": 683, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_statement", "full_name": "", "start_line": 686, "end_line": 688, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "info", "full_name": "", "start_line": 691, "end_line": 805, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 705, "end_line": 709, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 713, "end_line": 717, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 713, "end_line": 717, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 719, "end_line": 721, "start_column": 0, "end_column": 0, "depth": 11, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 731, "end_line": 731, "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": 731, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 732, "end_line": 732, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 732, "end_line": 732, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 756, "end_line": 760, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 792, "end_line": 793, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 794, "end_line": 796, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "span", "full_name": "", "start_line": 808, "end_line": 842, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 845, "end_line": 849, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 846, "end_line": 848, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ASTNode", "full_name": "", "start_line": 851, "end_line": 859, "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": 853, "end_line": 858, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 865, "end_line": 865, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 866, "end_line": 866, "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": 869, "end_line": 899, "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": 874, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 879, "end_line": 882, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 888, "end_line": 895, "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": 902, "end_line": 911, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 903, "end_line": 903, "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": 909, "end_line": 909, "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": 914, "end_line": 955, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 916, "end_line": 916, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 935, "end_line": 949, "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": 958, "end_line": 971, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 960, "end_line": 965, "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": 974, "end_line": 986, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 976, "end_line": 981, "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": 14, "node_type_counts": { "if_statement": 16, "import": 10, "for_loop": 2, "function": 25, "variable": 20, "file_root": 1, "class": 19 }, "classes": 19, "functions": 25, "methods": 0, "variables": 20, "control_structures": 18 }, "generated_at": "2025-08-13T11:36:21.739234192Z" }, { "file_info": { "name": "mod.rs", "path": "src/backend/mod.rs", "size_bytes": 0, "total_lines": 7, "code_lines": 2, "comment_lines": 3, "empty_lines": 2, "code_ratio": 0.2857142857142857, "analyzed_at": "2025-08-13T11:36:21.739109652Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "vm::{VM, VMError, VMValue}", "imported_names": [], "alias": null, "line_number": 7, "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": 7, "end_line": 7, "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": { "import": 1, "file_root": 1 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.739110821Z" }, { "file_info": { "name": "vm.rs", "path": "src/backend/vm.rs", "size_bytes": 0, "total_lines": 589, "code_lines": 422, "comment_lines": 87, "empty_lines": 80, "code_ratio": 0.7164685908319185, "analyzed_at": "2025-08-13T11:36:21.739194282Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "VMError", "parent_class": null, "start_line": 13, "end_line": 20, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "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": { "type": "impl", "implementing_trait": "std::error::Error" } }, { "name": "VMValue", "parent_class": null, "start_line": 39, "end_line": 45, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "VMValue", "parent_class": null, "start_line": 47, "end_line": 86, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "VMValue", "parent_class": null, "start_line": 88, "end_line": 99, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "From<&ConstValue>" } }, { "name": "VM", "parent_class": null, "start_line": 102, "end_line": 115, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "VM", "parent_class": null, "start_line": 117, "end_line": 530, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ControlFlow", "parent_class": null, "start_line": 533, "end_line": 537, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum" } }, { "name": "VM", "parent_class": null, "start_line": 539, "end_line": 543, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } } ], "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": 49, "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": { "modifiers": "pub", "type": "function" } }, { "name": "to_string", "start_line": 60, "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": "as_integer", "start_line": 71, "end_line": 76, "parameters": [ "&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": "as_bool", "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", "modifiers": "pub" } }, { "name": "from", "start_line": 89, "end_line": 98, "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": 119, "end_line": 128, "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": 131, "end_line": 141, "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": 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": "execute_function", "start_line": 144, "end_line": 188, "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": 152, "end_line": 152, "parameters": [], "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": 191, "end_line": 443, "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": "get_value", "start_line": 446, "end_line": 450, "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": 449, "end_line": 449, "parameters": [], "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": 453, "end_line": 489, "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": 492, "end_line": 498, "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": 501, "end_line": 529, "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": "default", "start_line": 540, "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_basic_vm_execution", "start_line": 551, "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_binary_operations", "start_line": 568, "end_line": 588, "parameters": [], "is_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": 547, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlock}", "imported_names": [], "alias": null, "line_number": 548, "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": 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": 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": 45, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VMValue", "full_name": "", "start_line": 47, "end_line": 86, "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": 49, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "to_string", "full_name": "", "start_line": 60, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_integer", "full_name": "", "start_line": 71, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_bool", "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": "VMValue", "full_name": "", "start_line": 88, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from", "full_name": "", "start_line": 89, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VM", "full_name": "", "start_line": 102, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VM", "full_name": "", "start_line": 117, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 119, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_module", "full_name": "", "start_line": 131, "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": 133, "end_line": 134, "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": "execute_function", "full_name": "", "start_line": 144, "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": 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": 150, "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": 151, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 8, "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": "for_loop", "name": "", "full_name": "", "start_line": 161, "end_line": 175, "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": 186, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_instruction", "full_name": "", "start_line": 191, "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": 194, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 10, "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": 10, "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": "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": "variable", "name": "", "full_name": "", "start_line": 208, "end_line": 208, "start_column": 0, "end_column": 0, "depth": 10, "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": 10, "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": "variable", "name": "", "full_name": "", "start_line": 216, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 10, "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": "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": "variable", "name": "", "full_name": "", "start_line": 229, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 10, "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": 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": "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": "if_statement", "name": "", "full_name": "", "start_line": 255, "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": 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": 265, "end_line": 265, "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": 280, "end_line": 282, "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": 291, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "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": 10, "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": 10, "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": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 382, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 382, "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": 383, "end_line": 388, "start_column": 0, "end_column": 0, "depth": 14, "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": 10, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 408, "end_line": 410, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 418, "end_line": 418, "start_column": 0, "end_column": 0, "depth": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_value", "full_name": "", "start_line": 446, "end_line": 450, "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": 453, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 456, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 10, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_unary_op", "full_name": "", "start_line": 492, "end_line": 498, "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": 501, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 504, "end_line": 511, "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": 523, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ControlFlow", "full_name": "", "start_line": 533, "end_line": 537, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VM", "full_name": "", "start_line": 539, "end_line": 543, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 540, "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": 547, "end_line": 547, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 548, "end_line": 548, "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": 551, "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": 552, "end_line": 552, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 555, "end_line": 558, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 560, "end_line": 560, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_binary_operations", "full_name": "", "start_line": 568, "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": 569, "end_line": 569, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 576, "end_line": 581, "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": "", "full_name": "", "start_line": 586, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 89, "max_depth": 16, "node_type_counts": { "class": 10, "file_root": 1, "for_loop": 2, "import": 5, "function": 17, "variable": 42, "if_statement": 12 }, "classes": 10, "functions": 17, "methods": 0, "variables": 42, "control_structures": 14 }, "generated_at": "2025-08-13T11:36:21.739232231Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/array/mod.rs", "size_bytes": 0, "total_lines": 310, "code_lines": 238, "comment_lines": 27, "empty_lines": 45, "code_ratio": 0.7677419354838709, "analyzed_at": "2025-08-13T11:36:21.740974727Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ArrayBox", "parent_class": null, "start_line": 11, "end_line": 14, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 16, "end_line": 237, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 239, "end_line": 263, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 265, "end_line": 269, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ArrayBox", "parent_class": null, "start_line": 271, "end_line": 310, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } } ], "functions": [ { "name": "new", "start_line": 18, "end_line": 23, "parameters": [], "is_async": false, "is_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_elements", "start_line": 26, "end_line": 31, "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": 34, "end_line": 37, "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": 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": { "modifiers": "pub", "type": "function" } }, { "name": "length", "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": { "modifiers": "pub", "type": "function" } }, { "name": "len", "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", "modifiers": "pub" } }, { "name": "get", "start_line": 58, "end_line": 69, "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": 72, "end_line": 85, "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": { "type": "function", "modifiers": "pub" } }, { "name": "remove", "start_line": 88, "end_line": 100, "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": 103, "end_line": 111, "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": 114, "end_line": 122, "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": 125, "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": { "modifiers": "pub", "type": "function" } }, { "name": "join", "start_line": 131, "end_line": 142, "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": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 136, "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": "closure" } }, { "name": "sort", "start_line": 145, "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": 149, "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": "reverse", "start_line": 193, "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": { "modifiers": "pub", "type": "function" } }, { "name": "slice", "start_line": 200, "end_line": 236, "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": 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": "box_id", "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": "parent_type_id", "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" } }, { "name": "fmt_box", "start_line": 248, "end_line": 254, "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": 251, "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": "closure" } }, { "name": "as_any", "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": "as_any_mut", "start_line": 260, "end_line": 262, "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": 266, "end_line": 268, "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": 272, "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" } }, { "name": "to_string_box", "start_line": 276, "end_line": 282, "parameters": [ "&self" ], "is_async": 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": 279, "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": "closure" } }, { "name": "type_name", "start_line": 285, "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" } }, { "name": "equals", "start_line": 290, "end_line": 309, "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" } } ], "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, Mutex}", "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": 150, "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": 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": 11, "end_line": 14, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 16, "end_line": 237, "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": 23, "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": 26, "end_line": 31, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "push", "full_name": "", "start_line": 34, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "pop", "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": "length", "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": "len", "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": "get", "full_name": "", "start_line": 58, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 3, "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": 6, "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": "variable", "name": "", "full_name": "", "start_line": 61, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 72, "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": 73, "end_line": 84, "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": 75, "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": 76, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "remove", "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": 89, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 6, "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": "variable", "name": "", "full_name": "", "start_line": 91, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 8, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "indexOf", "full_name": "", "start_line": 103, "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": 104, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "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": "if_statement", "name": "", "full_name": "", "start_line": 106, "end_line": 108, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains", "full_name": "", "start_line": 114, "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": 115, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 116, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 117, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 125, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "join", "full_name": "", "start_line": 131, "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": 132, "end_line": 141, "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": "Vec", "full_name": "", "start_line": 134, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "sort", "full_name": "", "start_line": 145, "end_line": 190, "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": "import", "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": 153, "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": 161, "end_line": 166, "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": 174, "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": 181, "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": "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": "function", "name": "reverse", "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": "slice", "full_name": "", "start_line": 200, "end_line": 236, "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": 204, "end_line": 212, "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": 212, "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": "variable", "name": "", "full_name": "", "start_line": 214, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 214, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 6, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 225, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 230, "end_line": 233, "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": 263, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "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": "fmt_box", "full_name": "", "start_line": 248, "end_line": 254, "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": "Vec", "full_name": "", "start_line": 250, "end_line": 252, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 260, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 265, "end_line": 269, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 266, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ArrayBox", "full_name": "", "start_line": 271, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_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": "to_string_box", "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": "Vec", "full_name": "", "start_line": 278, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 285, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 290, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 291, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "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": 8, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 299, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 300, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 84, "max_depth": 12, "node_type_counts": { "file_root": 1, "function": 26, "if_statement": 20, "variable": 24, "for_loop": 3, "import": 5, "class": 5 }, "classes": 5, "functions": 26, "methods": 0, "variables": 24, "control_structures": 23 }, "generated_at": "2025-08-13T11:36:21.740993122Z" }, { "file_info": { "name": "audio_box.rs", "path": "src/boxes/audio_box.rs", "size_bytes": 0, "total_lines": 331, "code_lines": 214, "comment_lines": 72, "empty_lines": 45, "code_ratio": 0.6465256797583081, "analyzed_at": "2025-08-13T11:36:21.739036113Z", "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": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "AudioBox", "parent_class": null, "start_line": 305, "end_line": 325, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "AudioBox", "parent_class": null, "start_line": 327, "end_line": 331, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "to_string_box", "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": { "type": "function" } }, { "name": "type_name", "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": "equals", "start_line": 318, "end_line": 324, "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": 328, "end_line": 330, "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": 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": 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": 325, "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": "to_string_box", "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": "type_name", "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": "equals", "full_name": "", "start_line": 318, "end_line": 324, "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": 323, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AudioBox", "full_name": "", "start_line": 327, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 328, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 68, "max_depth": 18, "node_type_counts": { "class": 5, "function": 27, "variable": 14, "for_loop": 1, "import": 4, "file_root": 1, "if_statement": 16 }, "classes": 5, "functions": 27, "methods": 0, "variables": 14, "control_structures": 17 }, "generated_at": "2025-08-13T11:36:21.739056974Z" }, { "file_info": { "name": "bool_box.rs", "path": "src/boxes/bool_box.rs", "size_bytes": 0, "total_lines": 119, "code_lines": 62, "comment_lines": 40, "empty_lines": 17, "code_ratio": 0.5210084033613446, "analyzed_at": "2025-08-13T11:36:21.739002446Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoolBox", "parent_class": null, "start_line": 47, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "BoolBox", "parent_class": null, "start_line": 93, "end_line": 113, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "BoolBox", "parent_class": null, "start_line": 115, "end_line": 119, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": 86, "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": { "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": 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": 13, "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": 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": 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": 86, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "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": "BoolBox", "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": 7, "node_type_counts": { "function": 13, "import": 3, "file_root": 1, "if_statement": 2, "class": 5 }, "classes": 5, "functions": 13, "methods": 0, "variables": 0, "control_structures": 2 }, "generated_at": "2025-08-13T11:36:21.739011224Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/buffer/mod.rs", "size_bytes": 0, "total_lines": 211, "code_lines": 145, "comment_lines": 40, "empty_lines": 26, "code_ratio": 0.6872037914691943, "analyzed_at": "2025-08-13T11:36:21.740662280Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BufferBox", "parent_class": null, "start_line": 38, "end_line": 41, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BufferBox", "parent_class": null, "start_line": 43, "end_line": 154, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BufferBox", "parent_class": null, "start_line": 156, "end_line": 177, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "BufferBox", "parent_class": null, "start_line": 179, "end_line": 183, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "BufferBox", "parent_class": null, "start_line": 185, "end_line": 211, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } } ], "functions": [ { "name": "new", "start_line": 44, "end_line": 49, "parameters": [], "is_async": false, "is_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": 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": { "modifiers": "pub", "type": "function" } }, { "name": "from_vec", "start_line": 56, "end_line": 61, "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": 64, "end_line": 81, "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": "readAll", "start_line": 84, "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": "read", "start_line": 94, "end_line": 109, "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": { "modifiers": "pub", "type": "function" } }, { "name": "clear", "start_line": 112, "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": "length", "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", "modifiers": "pub" } }, { "name": "append", "start_line": 123, "end_line": 132, "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": 135, "end_line": 153, "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": "box_id", "start_line": 157, "end_line": 159, "parameters": [ "&self" ], "is_async": 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": 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": "fmt_box", "start_line": 165, "end_line": 168, "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": 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": "as_any_mut", "start_line": 174, "end_line": 176, "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": 180, "end_line": 182, "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": 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" } }, { "name": "to_string_box", "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" } }, { "name": "type_name", "start_line": 196, "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": "equals", "start_line": 201, "end_line": 210, "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" } } ], "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, Mutex}", "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": 5, "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": 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": 38, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 43, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 44, "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": "from_vec", "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": "write", "full_name": "", "start_line": 64, "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": 66, "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": 67, "end_line": 67, "start_column": 0, "end_column": 0, "depth": 8, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 69, "end_line": 75, "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": 74, "start_column": 0, "end_column": 0, "depth": 12, "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": 15, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "readAll", "full_name": "", "start_line": 84, "end_line": 91, "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": "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": "for_loop", "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": "function", "name": "read", "full_name": "", "start_line": 94, "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": 95, "end_line": 108, "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": "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": "", "full_name": "", "start_line": 98, "end_line": 98, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 101, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 102, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 112, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "length", "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": "append", "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": "function", "name": "slice", "full_name": "", "start_line": 135, "end_line": 153, "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": 152, "start_column": 0, "end_column": 0, "depth": 6, "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": "variable", "name": "", "full_name": "", "start_line": 142, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 144, "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": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 156, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 157, "end_line": 159, "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": 161, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "as_any", "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_mut", "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": "BufferBox", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 180, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BufferBox", "full_name": "", "start_line": 185, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "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": "to_string_box", "full_name": "", "start_line": 190, "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": 191, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 196, "end_line": 198, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 201, "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": 202, "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": 204, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 8, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 61, "max_depth": 15, "node_type_counts": { "class": 5, "variable": 19, "for_loop": 3, "function": 20, "import": 5, "file_root": 1, "if_statement": 8 }, "classes": 5, "functions": 20, "methods": 0, "variables": 19, "control_structures": 11 }, "generated_at": "2025-08-13T11:36:21.740675436Z" }, { "file_info": { "name": "canvas_event_box.rs", "path": "src/boxes/canvas_event_box.rs", "size_bytes": 0, "total_lines": 299, "code_lines": 185, "comment_lines": 76, "empty_lines": 38, "code_ratio": 0.6187290969899666, "analyzed_at": "2025-08-13T11:36:21.749943411Z", "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": 293, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "CanvasEventBox", "parent_class": null, "start_line": 295, "end_line": 299, "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "to_string_box", "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": { "type": "function" } }, { "name": "type_name", "start_line": 282, "end_line": 284, "parameters": [ "&self" ], "is_async": 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": 286, "end_line": 292, "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": 296, "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" } } ], "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": 34, "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": 293, "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": "to_string_box", "full_name": "", "start_line": 278, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 282, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 286, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 287, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasEventBox", "full_name": "", "start_line": 295, "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": 296, "end_line": 298, "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": 8, "node_type_counts": { "file_root": 1, "variable": 12, "import": 4, "class": 5, "function": 28, "if_statement": 8 }, "classes": 5, "functions": 28, "methods": 0, "variables": 12, "control_structures": 8 }, "generated_at": "2025-08-13T11:36:21.749962466Z" }, { "file_info": { "name": "canvas_loop_box.rs", "path": "src/boxes/canvas_loop_box.rs", "size_bytes": 0, "total_lines": 309, "code_lines": 198, "comment_lines": 67, "empty_lines": 44, "code_ratio": 0.6407766990291263, "analyzed_at": "2025-08-13T11:36:21.739091788Z", "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": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "CanvasLoopBox", "parent_class": null, "start_line": 283, "end_line": 303, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "CanvasLoopBox", "parent_class": null, "start_line": 305, "end_line": 309, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "to_string_box", "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": "type_name", "start_line": 292, "end_line": 294, "parameters": [ "&self" ], "is_async": 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": 296, "end_line": 302, "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": 306, "end_line": 308, "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": 28, "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": 303, "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": "to_string_box", "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": "type_name", "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": "equals", "full_name": "", "start_line": 296, "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": 297, "end_line": 301, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CanvasLoopBox", "full_name": "", "start_line": 305, "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": 306, "end_line": 308, "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": 8, "node_type_counts": { "if_statement": 11, "import": 4, "file_root": 1, "class": 5, "function": 26, "variable": 9 }, "classes": 5, "functions": 26, "methods": 0, "variables": 9, "control_structures": 11 }, "generated_at": "2025-08-13T11:36:21.739112639Z" }, { "file_info": { "name": "console_box.rs", "path": "src/boxes/console_box.rs", "size_bytes": 0, "total_lines": 217, "code_lines": 127, "comment_lines": 54, "empty_lines": 36, "code_ratio": 0.5852534562211982, "analyzed_at": "2025-08-13T11:36:21.739177145Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ConsoleBox", "parent_class": null, "start_line": 55, "end_line": 57, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 110, "end_line": 127, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 132, "end_line": 134, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 137, "end_line": 158, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 161, "end_line": 181, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 184, "end_line": 201, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 206, "end_line": 210, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "ConsoleBox", "parent_class": null, "start_line": 213, "end_line": 217, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "new", "start_line": 138, "end_line": 140, "parameters": [], "is_async": false, "is_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": 143, "end_line": 145, "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": 147, "end_line": 149, "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": 151, "end_line": 153, "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": 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": "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": "to_string_box", "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" } }, { "name": "equals", "start_line": 189, "end_line": 191, "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": 193, "end_line": 195, "parameters": [ "&self" ], "is_async": 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": 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": "fmt", "start_line": 207, "end_line": 209, "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": 214, "end_line": 216, "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": 30, "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": 127, "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": "class", "name": "ConsoleBox", "full_name": "", "start_line": 132, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 137, "end_line": 158, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "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": "log", "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": "warn", "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": "error", "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": "clear", "full_name": "", "start_line": 155, "end_line": 157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "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": "ConsoleBox", "full_name": "", "start_line": 184, "end_line": 201, "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": 185, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "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": "type_name", "full_name": "", "start_line": 193, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 197, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConsoleBox", "full_name": "", "start_line": 206, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": 213, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 214, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 44, "max_depth": 3, "node_type_counts": { "class": 10, "file_root": 1, "function": 30, "import": 3 }, "classes": 10, "functions": 30, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.739188962Z" }, { "file_info": { "name": "debug_box.rs", "path": "src/boxes/debug_box.rs", "size_bytes": 0, "total_lines": 366, "code_lines": 206, "comment_lines": 111, "empty_lines": 49, "code_ratio": 0.5628415300546448, "analyzed_at": "2025-08-13T11:36:21.739127325Z", "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": 333, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "DebugBox", "parent_class": null, "start_line": 336, "end_line": 340, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "DebugBox", "parent_class": null, "start_line": 343, "end_line": 366, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "name": "box_id", "start_line": 313, "end_line": 315, "parameters": [ "&self" ], "is_async": 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": 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": "fmt_box", "start_line": 321, "end_line": 324, "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": 326, "end_line": 328, "parameters": [ "&self" ], "is_async": 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": 330, "end_line": 332, "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": 337, "end_line": 339, "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": 344, "end_line": 347, "parameters": [ "&self" ], "is_async": 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": 349, "end_line": 355, "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": 357, "end_line": 359, "parameters": [ "&self" ], "is_async": 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": 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": { "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::{Arc, Mutex}", "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, next_box_id, 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": 7, "function_count": 26, "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": 333, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 313, "end_line": 315, "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": 317, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 321, "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": 322, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 326, "end_line": 328, "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": 330, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 336, "end_line": 340, "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": 339, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DebugBox", "full_name": "", "start_line": 343, "end_line": 366, "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": 344, "end_line": 347, "start_column": 0, "end_column": 0, "depth": 3, "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": "function", "name": "equals", "full_name": "", "start_line": 349, "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": 350, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 357, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 361, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 74, "max_depth": 8, "node_type_counts": { "import": 7, "variable": 26, "if_statement": 4, "for_loop": 4, "file_root": 1, "class": 7, "function": 25 }, "classes": 7, "functions": 25, "methods": 0, "variables": 26, "control_structures": 8 }, "generated_at": "2025-08-13T11:36:21.739150599Z" }, { "file_info": { "name": "egui_box.rs", "path": "src/boxes/egui_box.rs", "size_bytes": 0, "total_lines": 220, "code_lines": 144, "comment_lines": 47, "empty_lines": 29, "code_ratio": 0.6545454545454545, "analyzed_at": "2025-08-13T11:36:21.738931978Z", "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": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashApp", "parent_class": null, "start_line": 94, "end_line": 97, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct" } }, { "name": "NyashApp", "parent_class": null, "start_line": 99, "end_line": 105, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "eframe::App", "type": "impl" } }, { "name": "EguiBox", "parent_class": null, "start_line": 107, "end_line": 127, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "EguiBox", "parent_class": null, "start_line": 129, "end_line": 133, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "EguiBox", "parent_class": null, "start_line": 135, "end_line": 166, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "EguiBox", "parent_class": null, "start_line": 169, "end_line": 201, "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": "new", "start_line": 69, "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": { "modifiers": "pub", "type": "function" } }, { "name": "set_app_state", "start_line": 80, "end_line": 82, "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": { "modifiers": "pub", "type": "function" } }, { "name": "set_update_fn", "start_line": 85, "end_line": 90, "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": { "modifiers": "pub", "type": "function" } }, { "name": "update", "start_line": 100, "end_line": 104, "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": 108, "end_line": 110, "parameters": [ "&self" ], "is_async": 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": 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" } }, { "name": "fmt_box", "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" } }, { "name": "as_any", "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": { "type": "function" } }, { "name": "as_any_mut", "start_line": 124, "end_line": 126, "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": 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": "to_string_box", "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" } }, { "name": "clone_box", "start_line": 142, "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": "equals", "start_line": 154, "end_line": 160, "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": 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": "run_gui", "start_line": 170, "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", "modifiers": "pub" } }, { "name": "closure", "start_line": 191, "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": { "type": "closure" } }, { "name": "test_egui_box_creation", "start_line": 208, "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_egui_box_to_string", "start_line": 215, "end_line": 219, "parameters": [], "is_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::{Arc, Mutex}", "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": 205, "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": 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": 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": 91, "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": 77, "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": 80, "end_line": 82, "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": 85, "end_line": 90, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashApp", "full_name": "", "start_line": 94, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashApp", "full_name": "", "start_line": 99, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "update", "full_name": "", "start_line": 100, "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": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 107, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "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": "fmt_box", "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": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 124, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 129, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": "EguiBox", "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": "to_string_box", "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": "clone_box", "full_name": "", "start_line": 142, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 154, "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": 155, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 162, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EguiBox", "full_name": "", "start_line": 169, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "run_gui", "full_name": "", "start_line": 170, "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": 171, "end_line": 199, "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": 172, "start_column": 0, "end_column": 0, "depth": 8, "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": 175, "end_line": 180, "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": 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": 192, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 205, "end_line": 205, "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": 208, "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": 209, "end_line": 209, "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": 215, "end_line": 219, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 45, "max_depth": 8, "node_type_counts": { "variable": 8, "if_statement": 3, "file_root": 1, "function": 18, "import": 6, "class": 9 }, "classes": 9, "functions": 18, "methods": 0, "variables": 8, "control_structures": 3 }, "generated_at": "2025-08-13T11:36:21.738947834Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/file/mod.rs", "size_bytes": 0, "total_lines": 154, "code_lines": 119, "comment_lines": 12, "empty_lines": 23, "code_ratio": 0.7727272727272727, "analyzed_at": "2025-08-13T11:36:21.740729209Z", "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": 98, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FileBox", "parent_class": null, "start_line": 100, "end_line": 120, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "FileBox", "parent_class": null, "start_line": 122, "end_line": 148, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "FileBox", "parent_class": null, "start_line": 150, "end_line": 154, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 19, "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": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 29, "end_line": 29, "parameters": [], "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": 39, "end_line": 46, "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": 48, "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", "modifiers": "pub" } }, { "name": "write_all", "start_line": 55, "end_line": 58, "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": "read", "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", "start_line": 69, "end_line": 75, "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": 78, "end_line": 81, "parameters": [ "&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": "delete", "start_line": 84, "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": { "modifiers": "pub", "type": "function" } }, { "name": "copy", "start_line": 92, "end_line": 97, "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": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "start_line": 101, "end_line": 103, "parameters": [ "&self" ], "is_async": 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": 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": "fmt_box", "start_line": 109, "end_line": 111, "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": 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": "as_any_mut", "start_line": 117, "end_line": 119, "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": 123, "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": "to_string_box", "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": "type_name", "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": "equals", "start_line": 141, "end_line": 147, "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": 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" } } ], "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::{Arc, Mutex}", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs::OpenOptions", "imported_names": [], "alias": null, "line_number": 27, "metadata": {} }, { "type": "rust_use", "module_path": "std::path::Path", "imported_names": [], "alias": null, "line_number": 79, "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": 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": 98, "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": 37, "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": 5, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 28, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "open", "full_name": "", "start_line": 39, "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": 40, "end_line": 40, "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": 48, "end_line": 53, "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": "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": "function", "name": "write_all", "full_name": "", "start_line": 55, "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": 56, "end_line": 56, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 61, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 69, "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": 70, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "exists", "full_name": "", "start_line": 78, "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": 79, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 84, "end_line": 89, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "copy", "full_name": "", "start_line": 92, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 100, "end_line": 120, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "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": "fmt_box", "full_name": "", "start_line": 109, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 113, "end_line": 115, "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": 117, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 122, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 123, "end_line": 129, "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": 131, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "equals", "full_name": "", "start_line": 141, "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": 142, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 40, "max_depth": 10, "node_type_counts": { "function": 19, "import": 7, "variable": 7, "class": 5, "if_statement": 1, "file_root": 1 }, "classes": 5, "functions": 19, "methods": 0, "variables": 7, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.740737870Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/future/mod.rs", "size_bytes": 0, "total_lines": 147, "code_lines": 113, "comment_lines": 12, "empty_lines": 22, "code_ratio": 0.7687074829931972, "analyzed_at": "2025-08-13T11:36:21.739796757Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashFutureBox", "parent_class": null, "start_line": 12, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 18, "end_line": 26, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Clone" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 28, "end_line": 65, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 67, "end_line": 99, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 101, "end_line": 131, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "NyashFutureBox", "parent_class": null, "start_line": 133, "end_line": 137, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "FutureBox", "parent_class": null, "start_line": 142, "end_line": 147, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "clone", "start_line": 19, "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": { "type": "function" } }, { "name": "new", "start_line": 29, "end_line": 35, "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": 38, "end_line": 43, "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": 46, "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", "modifiers": "pub" } }, { "name": "ready", "start_line": 62, "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", "modifiers": "pub" } }, { "name": "clone_box", "start_line": 68, "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": "to_string_box", "start_line": 72, "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": "type_name", "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": "equals", "start_line": 92, "end_line": 98, "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": 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": "parent_type_id", "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": "fmt_box", "start_line": 110, "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" } }, { "name": "as_any", "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": "as_any_mut", "start_line": 128, "end_line": 130, "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": 134, "end_line": 136, "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": 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", "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::{Arc, Mutex}", "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": 16, "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": 26, "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": 25, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 28, "end_line": 65, "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": 35, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_result", "full_name": "", "start_line": 38, "end_line": 43, "start_column": 0, "end_column": 0, "depth": 3, "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": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 46, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 48, "end_line": 55, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 50, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 9, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "ready", "full_name": "", "start_line": 62, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 67, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 68, "end_line": 70, "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": 72, "end_line": 84, "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": "if_statement", "name": "", "full_name": "", "start_line": 74, "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": 75, "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": 76, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "equals", "full_name": "", "start_line": 92, "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": 93, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashFutureBox", "full_name": "", "start_line": 101, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_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": "parent_type_id", "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": "fmt_box", "full_name": "", "start_line": 110, "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": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 112, "end_line": 121, "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": "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": "function", "name": "as_any", "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": "as_any_mut", "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": "NyashFutureBox", "full_name": "", "start_line": 133, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 134, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 142, "end_line": 147, "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": 144, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 44, "max_depth": 9, "node_type_counts": { "class": 7, "for_loop": 1, "function": 16, "if_statement": 6, "file_root": 1, "import": 5, "variable": 8 }, "classes": 7, "functions": 16, "methods": 0, "variables": 8, "control_structures": 7 }, "generated_at": "2025-08-13T11:36:21.739806215Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/http/mod.rs", "size_bytes": 0, "total_lines": 101, "code_lines": 70, "comment_lines": 11, "empty_lines": 20, "code_ratio": 0.693069306930693, "analyzed_at": "2025-08-13T11:36:21.746755307Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "HttpClientBox", "parent_class": null, "start_line": 14, "end_line": 16, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 18, "end_line": 49, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 51, "end_line": 73, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 75, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "HttpClientBox", "parent_class": null, "start_line": 97, "end_line": 101, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 19, "end_line": 23, "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": 26, "end_line": 28, "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": { "modifiers": "pub", "type": "function" } }, { "name": "post", "start_line": 31, "end_line": 33, "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": 36, "end_line": 38, "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": 41, "end_line": 43, "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": 46, "end_line": 48, "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": 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" } }, { "name": "to_string_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": "type_name", "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" } }, { "name": "equals", "start_line": 66, "end_line": 72, "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": 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" } }, { "name": "parent_type_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": "fmt_box", "start_line": 84, "end_line": 86, "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": 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": "as_any_mut", "start_line": 92, "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": "fmt", "start_line": 98, "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" } } ], "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": {} }, { "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": 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": "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": "HttpClientBox", "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": "HttpClientBox", "full_name": "", "start_line": 18, "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": 19, "end_line": 23, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "http_get", "full_name": "", "start_line": 26, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "post", "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": "put", "full_name": "", "start_line": 36, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "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": "request", "full_name": "", "start_line": 46, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 51, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "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": "to_string_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": "type_name", "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": "equals", "full_name": "", "start_line": 66, "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": 67, "end_line": 71, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "HttpClientBox", "full_name": "", "start_line": 75, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_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": "fmt_box", "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": "as_any", "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_mut", "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": "HttpClientBox", "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": "fmt", "full_name": "", "start_line": 98, "end_line": 100, "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": { "class": 5, "function": 16, "import": 4, "file_root": 1, "if_statement": 1 }, "classes": 5, "functions": 16, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.746760887Z" }, { "file_info": { "name": "integer_box.rs", "path": "src/boxes/integer_box.rs", "size_bytes": 0, "total_lines": 115, "code_lines": 60, "comment_lines": 39, "empty_lines": 16, "code_ratio": 0.5217391304347826, "analyzed_at": "2025-08-13T11:36:21.738934060Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntegerBox", "parent_class": null, "start_line": 46, "end_line": 49, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": 87, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 89, "end_line": 109, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 111, "end_line": 115, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "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": 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": "box_id", "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": "parent_type_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": "fmt_box", "start_line": 98, "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" } } ], "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": 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": 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": 87, "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": 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": 89, "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": 90, "end_line": 92, "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": 94, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "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": "IntegerBox", "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 23, "max_depth": 6, "node_type_counts": { "import": 4, "file_root": 1, "function": 12, "if_statement": 1, "class": 5 }, "classes": 5, "functions": 12, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.738942934Z" }, { "file_info": { "name": "intent_box.rs", "path": "src/boxes/intent_box.rs", "size_bytes": 0, "total_lines": 133, "code_lines": 74, "comment_lines": 41, "empty_lines": 18, "code_ratio": 0.556390977443609, "analyzed_at": "2025-08-13T11:36:21.738952892Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntentBoxData", "parent_class": null, "start_line": 42, "end_line": 48, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "IntentBoxData", "parent_class": null, "start_line": 53, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "IntentBox", "parent_class": null, "start_line": 79, "end_line": 103, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "IntentBox", "parent_class": null, "start_line": 105, "end_line": 126, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "IntentBoxData", "parent_class": null, "start_line": 128, "end_line": 132, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 55, "end_line": 61, "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": 64, "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": { "modifiers": "pub", "type": "function" } }, { "name": "get_payload", "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": "set_payload", "start_line": 74, "end_line": 76, "parameters": [ "&mut 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": { "modifiers": "pub", "type": "function" } }, { "name": "to_string_box", "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": { "type": "function" } }, { "name": "equals", "start_line": 85, "end_line": 93, "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": 95, "end_line": 97, "parameters": [ "&self" ], "is_async": 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": 99, "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": "box_id", "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": "parent_type_id", "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": "fmt_box", "start_line": 114, "end_line": 117, "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": 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": "as_any_mut", "start_line": 123, "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": { "type": "function" } }, { "name": "fmt", "start_line": 129, "end_line": 131, "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::{Arc, Mutex}", "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": 5, "function_count": 14, "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": "IntentBoxData", "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": "IntentBoxData", "full_name": "", "start_line": 53, "end_line": 77, "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": 61, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_name", "full_name": "", "start_line": 64, "end_line": 66, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_payload", "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": "set_payload", "full_name": "", "start_line": 74, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 79, "end_line": 103, "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": 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": "equals", "full_name": "", "start_line": 85, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 86, "end_line": 92, "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": "variable", "name": "", "full_name": "", "start_line": 88, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 95, "end_line": 97, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 99, "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 }, { "type": "class", "name": "IntentBox", "full_name": "", "start_line": 105, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "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": "fmt_box", "full_name": "", "start_line": 114, "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": 115, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "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": "as_any_mut", "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": "IntentBoxData", "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": "fmt", "full_name": "", "start_line": 129, "end_line": 131, "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": 8, "node_type_counts": { "function": 14, "if_statement": 1, "import": 4, "variable": 5, "class": 5, "file_root": 1 }, "classes": 5, "functions": 14, "methods": 0, "variables": 5, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.738962871Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/json/mod.rs", "size_bytes": 0, "total_lines": 262, "code_lines": 209, "comment_lines": 22, "empty_lines": 31, "code_ratio": 0.7977099236641222, "analyzed_at": "2025-08-13T11:36:21.748407799Z", "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": 120, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "JSONBox", "parent_class": null, "start_line": 122, "end_line": 155, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "JSONBox", "parent_class": null, "start_line": 157, "end_line": 161, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } }, { "name": "JSONBox", "parent_class": null, "start_line": 163, "end_line": 188, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } } ], "functions": [ { "name": "from_str", "start_line": 19, "end_line": 25, "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": 27, "end_line": 32, "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": 34, "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": { "modifiers": "pub", "type": "function" } }, { "name": "parse", "start_line": 40, "end_line": 46, "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": "stringify", "start_line": 49, "end_line": 51, "parameters": [ "&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": 54, "end_line": 77, "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": "set", "start_line": 80, "end_line": 92, "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": 95, "end_line": 104, "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": 107, "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": "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": 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", "start_line": 148, "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" } }, { "name": "as_any_mut", "start_line": 152, "end_line": 154, "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": 158, "end_line": 160, "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": 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": "to_string_box", "start_line": 168, "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": { "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": "equals", "start_line": 179, "end_line": 187, "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": 191, "end_line": 225, "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": 228, "end_line": 262, "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": 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" } } ], "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::{Arc, Mutex}", "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": 5, "function_count": 22, "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": 120, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_str", "full_name": "", "start_line": 19, "end_line": 25, "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": "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": "to_string", "full_name": "", "start_line": 34, "end_line": 37, "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": "function", "name": "parse", "full_name": "", "start_line": 40, "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": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "stringify", "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": "get", "full_name": "", "start_line": 54, "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": 55, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 5, "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": "if_statement", "name": "", "full_name": "", "start_line": 58, "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": 59, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 64, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 65, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 66, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 80, "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": 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": "if_statement", "name": "", "full_name": "", "start_line": 86, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "has", "full_name": "", "start_line": 95, "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": 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": "if_statement", "name": "", "full_name": "", "start_line": 99, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "keys", "full_name": "", "start_line": 107, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "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": "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": 111, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 112, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 122, "end_line": 155, "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": 146, "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": "variable", "name": "", "full_name": "", "start_line": 133, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 152, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 157, "end_line": 161, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 158, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "JSONBox", "full_name": "", "start_line": 163, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_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": "to_string_box", "full_name": "", "start_line": 168, "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": 169, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 5, "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": "function", "name": "equals", "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": "function", "name": "json_value_to_nyash_box", "full_name": "", "start_line": 191, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 196, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 198, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 11, "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": "for_loop", "name": "", "full_name": "", "start_line": 209, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 9, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 216, "end_line": 221, "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": 228, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 229, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 231, "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": 233, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 242, "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": 244, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 245, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 246, "end_line": 248, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 250, "end_line": 261, "start_column": 0, "end_column": 0, "depth": 14, "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": 16, "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": 16, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 254, "end_line": 256, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 79, "max_depth": 17, "node_type_counts": { "file_root": 1, "import": 6, "class": 5, "for_loop": 4, "function": 21, "variable": 25, "if_statement": 17 }, "classes": 5, "functions": 21, "methods": 0, "variables": 25, "control_structures": 21 }, "generated_at": "2025-08-13T11:36:21.748442740Z" }, { "file_info": { "name": "map_box.rs", "path": "src/boxes/map_box.rs", "size_bytes": 0, "total_lines": 289, "code_lines": 142, "comment_lines": 119, "empty_lines": 28, "code_ratio": 0.4913494809688581, "analyzed_at": "2025-08-13T11:36:21.738966102Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MapBox", "parent_class": null, "start_line": 115, "end_line": 118, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MapBox", "parent_class": null, "start_line": 120, "end_line": 224, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MapBox", "parent_class": null, "start_line": 226, "end_line": 247, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "MapBox", "parent_class": null, "start_line": 249, "end_line": 272, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "MapBox", "parent_class": null, "start_line": 274, "end_line": 278, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "MapBox", "parent_class": null, "start_line": 280, "end_line": 289, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Debug" } } ], "functions": [ { "name": "new", "start_line": 121, "end_line": 126, "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", "start_line": 129, "end_line": 133, "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": 136, "end_line": 142, "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": "has", "start_line": 145, "end_line": 148, "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": "delete", "start_line": 151, "end_line": 157, "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": 160, "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", "modifiers": "pub" } }, { "name": "values", "start_line": 170, "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": { "modifiers": "pub", "type": "function" } }, { "name": "closure", "start_line": 173, "end_line": 173, "parameters": [], "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": 183, "end_line": 185, "parameters": [ "&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", "start_line": 188, "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": "forEach", "start_line": 194, "end_line": 198, "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": 201, "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": "get_data", "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": "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": 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": "type_name", "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": "to_string_box", "start_line": 254, "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": "clone_box", "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": "equals", "start_line": 263, "end_line": 270, "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": 275, "end_line": 277, "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": 281, "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" } } ], "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, Mutex}", "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": 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": 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": 115, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 120, "end_line": 224, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 121, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set", "full_name": "", "start_line": 129, "end_line": 133, "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": "get", "full_name": "", "start_line": 136, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 3, "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": "has", "full_name": "", "start_line": 145, "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": 146, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 151, "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": 152, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "keys", "full_name": "", "start_line": 160, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "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": "for_loop", "name": "", "full_name": "", "start_line": 163, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "values", "full_name": "", "start_line": 170, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 171, "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": 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": 176, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "size", "full_name": "", "start_line": 183, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clear", "full_name": "", "start_line": 188, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "forEach", "full_name": "", "start_line": 194, "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": 196, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "toJSON", "full_name": "", "start_line": 201, "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": 202, "end_line": 202, "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": "for_loop", "name": "", "full_name": "", "start_line": 205, "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": 206, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 208, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 208, "end_line": 213, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_data", "full_name": "", "start_line": 221, "end_line": 223, "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": 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": 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": 238, "start_column": 0, "end_column": 0, "depth": 3, "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": 5, "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": "MapBox", "full_name": "", "start_line": 249, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "to_string_box", "full_name": "", "start_line": 254, "end_line": 257, "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": "function", "name": "clone_box", "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": "equals", "full_name": "", "start_line": 263, "end_line": 270, "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": 269, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MapBox", "full_name": "", "start_line": 274, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": "MapBox", "full_name": "", "start_line": 280, "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": 281, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 3, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 57, "max_depth": 9, "node_type_counts": { "function": 23, "if_statement": 2, "file_root": 1, "variable": 16, "for_loop": 3, "class": 6, "import": 6 }, "classes": 6, "functions": 23, "methods": 0, "variables": 16, "control_structures": 5 }, "generated_at": "2025-08-13T11:36:21.738985241Z" }, { "file_info": { "name": "math_box.rs", "path": "src/boxes/math_box.rs", "size_bytes": 0, "total_lines": 498, "code_lines": 362, "comment_lines": 77, "empty_lines": 59, "code_ratio": 0.7269076305220884, "analyzed_at": "2025-08-13T11:36:21.739019743Z", "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": 328, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "MathBox", "parent_class": null, "start_line": 330, "end_line": 334, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "FloatBox", "parent_class": null, "start_line": 338, "end_line": 341, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "FloatBox", "parent_class": null, "start_line": 343, "end_line": 350, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 352, "end_line": 372, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "FloatBox", "parent_class": null, "start_line": 374, "end_line": 397, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "FloatBox", "parent_class": null, "start_line": 399, "end_line": 403, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "RangeBox", "parent_class": null, "start_line": 407, "end_line": 412, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "RangeBox", "parent_class": null, "start_line": 414, "end_line": 443, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "RangeBox", "parent_class": null, "start_line": 445, "end_line": 465, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "RangeBox", "parent_class": null, "start_line": 467, "end_line": 492, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "RangeBox", "parent_class": null, "start_line": 494, "end_line": 498, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "equals", "start_line": 320, "end_line": 326, "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": 331, "end_line": 333, "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": 344, "end_line": 349, "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": 353, "end_line": 355, "parameters": [ "&self" ], "is_async": 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": 357, "end_line": 359, "parameters": [ "&self" ], "is_async": 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": 361, "end_line": 363, "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": 365, "end_line": 367, "parameters": [ "&self" ], "is_async": 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": 369, "end_line": 371, "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": 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": "to_string_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": "clone_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": "equals", "start_line": 387, "end_line": 395, "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": 400, "end_line": 402, "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": 415, "end_line": 422, "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": { "type": "function", "modifiers": "pub" } }, { "name": "iter", "start_line": 425, "end_line": 442, "parameters": [ "&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": 446, "end_line": 448, "parameters": [ "&self" ], "is_async": 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": 450, "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" } }, { "name": "fmt_box", "start_line": 454, "end_line": 456, "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": 458, "end_line": 460, "parameters": [ "&self" ], "is_async": 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": 462, "end_line": 464, "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": 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": "to_string_box", "start_line": 472, "end_line": 474, "parameters": [ "&self" ], "is_async": 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": 476, "end_line": 478, "parameters": [ "&self" ], "is_async": 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": 480, "end_line": 490, "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": 495, "end_line": 497, "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": 50, "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": 328, "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": "equals", "full_name": "", "start_line": 320, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 321, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MathBox", "full_name": "", "start_line": 330, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": "FloatBox", "full_name": "", "start_line": 338, "end_line": 341, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 343, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 344, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 352, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 353, "end_line": 355, "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": 357, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 361, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "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": "as_any_mut", "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": "FloatBox", "full_name": "", "start_line": 374, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 1, "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": "to_string_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": "clone_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": "equals", "full_name": "", "start_line": 387, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 388, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 390, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FloatBox", "full_name": "", "start_line": 399, "end_line": 403, "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": 402, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 407, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 414, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 415, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "iter", "full_name": "", "start_line": 425, "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": 426, "end_line": 426, "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": "if_statement", "name": "", "full_name": "", "start_line": 429, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 430, "end_line": 433, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 434, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 435, "end_line": 438, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 445, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 446, "end_line": 448, "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": 450, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 454, "end_line": 456, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 458, "end_line": 460, "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": 462, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 467, "end_line": 492, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "to_string_box", "full_name": "", "start_line": 472, "end_line": 474, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 476, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 480, "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": 481, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RangeBox", "full_name": "", "start_line": 494, "end_line": 498, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 495, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 114, "max_depth": 11, "node_type_counts": { "variable": 3, "file_root": 1, "import": 3, "if_statement": 40, "function": 50, "class": 15, "for_loop": 2 }, "classes": 15, "functions": 50, "methods": 0, "variables": 3, "control_structures": 42 }, "generated_at": "2025-08-13T11:36:21.739050402Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/mod.rs", "size_bytes": 0, "total_lines": 140, "code_lines": 61, "comment_lines": 66, "empty_lines": 13, "code_ratio": 0.4357142857142857, "analyzed_at": "2025-08-13T11:36:21.739074944Z", "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": 124, "metadata": {} }, { "type": "rust_use", "module_path": "array::ArrayBox", "imported_names": [], "alias": null, "line_number": 127, "metadata": {} }, { "type": "rust_use", "module_path": "buffer::BufferBox", "imported_names": [], "alias": null, "line_number": 128, "metadata": {} }, { "type": "rust_use", "module_path": "file::FileBox", "imported_names": [], "alias": null, "line_number": 129, "metadata": {} }, { "type": "rust_use", "module_path": "future::{NyashFutureBox, FutureBox}", "imported_names": [], "alias": null, "line_number": 130, "metadata": {} }, { "type": "rust_use", "module_path": "json::JSONBox", "imported_names": [], "alias": null, "line_number": 131, "metadata": {} }, { "type": "rust_use", "module_path": "result::{NyashResultBox, ResultBox}", "imported_names": [], "alias": null, "line_number": 132, "metadata": {} }, { "type": "rust_use", "module_path": "http::HttpClientBox", "imported_names": [], "alias": null, "line_number": 133, "metadata": {} }, { "type": "rust_use", "module_path": "stream::{NyashStreamBox, StreamBox}", "imported_names": [], "alias": null, "line_number": 134, "metadata": {} }, { "type": "rust_use", "module_path": "regex::RegexBox", "imported_names": [], "alias": null, "line_number": 135, "metadata": {} }, { "type": "rust_use", "module_path": "intent_box::IntentBox", "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": 0, "function_count": 0, "import_count": 28, "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": 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": 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": 128, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 129, "end_line": 129, "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": 138, "end_line": 138, "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": 1, "node_type_counts": { "file_root": 1, "import": 28 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.739084264Z" }, { "file_info": { "name": "null_box.rs", "path": "src/boxes/null_box.rs", "size_bytes": 0, "total_lines": 239, "code_lines": 114, "comment_lines": 95, "empty_lines": 30, "code_ratio": 0.4769874476987448, "analyzed_at": "2025-08-13T11:36:21.738987708Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NullBox", "parent_class": null, "start_line": 93, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": 177, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "NullBox", "parent_class": null, "start_line": 179, "end_line": 183, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "equals", "start_line": 172, "end_line": 175, "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": 180, "end_line": 182, "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": 186, "end_line": 188, "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": "test_null_creation", "start_line": 196, "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": "function" } }, { "name": "test_null_check", "start_line": 204, "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": "function" } }, { "name": "test_null_equality", "start_line": 216, "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": "function" } }, { "name": "test_get_or_default", "start_line": 226, "end_line": 238, "parameters": [], "is_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": 192, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::IntegerBox", "imported_names": [], "alias": null, "line_number": 193, "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": 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": 177, "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": "equals", "full_name": "", "start_line": 172, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NullBox", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": "null", "full_name": "", "start_line": 186, "end_line": 188, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 192, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 193, "end_line": 193, "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": 196, "end_line": 201, "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": "function", "name": "test_null_check", "full_name": "", "start_line": 204, "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": 205, "end_line": 205, "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": "function", "name": "test_null_equality", "full_name": "", "start_line": 216, "end_line": 223, "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": "function", "name": "test_get_or_default", "full_name": "", "start_line": 226, "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": 227, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 5, "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 }, { "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": 236, "end_line": 236, "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": 6, "node_type_counts": { "file_root": 1, "import": 5, "if_statement": 1, "function": 21, "variable": 11, "class": 5 }, "classes": 5, "functions": 21, "methods": 0, "variables": 11, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.739004690Z" }, { "file_info": { "name": "p2p_box.rs", "path": "src/boxes/p2p_box.rs", "size_bytes": 0, "total_lines": 183, "code_lines": 108, "comment_lines": 49, "empty_lines": 26, "code_ratio": 0.5901639344262295, "analyzed_at": "2025-08-13T11:36:21.739061151Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "P2PBoxData", "parent_class": null, "start_line": 46, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "P2PBoxData", "parent_class": null, "start_line": 52, "end_line": 60, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Debug" } }, { "name": "TransportKind", "parent_class": null, "start_line": 67, "end_line": 70, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "TransportKind", "parent_class": null, "start_line": 72, "end_line": 81, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::str::FromStr" } }, { "name": "P2PBoxData", "parent_class": null, "start_line": 83, "end_line": 126, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "P2PBox", "parent_class": null, "start_line": 130, "end_line": 154, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "P2PBox", "parent_class": null, "start_line": 156, "end_line": 177, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "P2PBoxData", "parent_class": null, "start_line": 179, "end_line": 183, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "fmt", "start_line": 53, "end_line": 59, "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_str", "start_line": 75, "end_line": 80, "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": 85, "end_line": 95, "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": 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", "modifiers": "pub" } }, { "name": "send", "start_line": 103, "end_line": 106, "parameters": [ "&self", "to: &str", "intent: IntentBox" ], "is_async": false, "is_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", "start_line": 109, "end_line": 113, "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": "is_reachable", "start_line": 116, "end_line": 119, "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", "modifiers": "pub" } }, { "name": "get_transport_type", "start_line": 122, "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": { "modifiers": "pub", "type": "function" } }, { "name": "to_string_box", "start_line": 131, "end_line": 134, "parameters": [ "&self" ], "is_async": 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": 136, "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": 150, "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": "box_id", "start_line": 157, "end_line": 159, "parameters": [ "&self" ], "is_async": 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": 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": "fmt_box", "start_line": 165, "end_line": 168, "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": 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": "as_any_mut", "start_line": 174, "end_line": 176, "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": 180, "end_line": 182, "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::{Arc, Mutex}", "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": 8, "function_count": 18, "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": 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": "class", "name": "P2PBoxData", "full_name": "", "start_line": 46, "end_line": 50, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBoxData", "full_name": "", "start_line": 52, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 53, "end_line": 59, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TransportKind", "full_name": "", "start_line": 67, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TransportKind", "full_name": "", "start_line": 72, "end_line": 81, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_str", "full_name": "", "start_line": 75, "end_line": 80, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBoxData", "full_name": "", "start_line": 83, "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": 85, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 86, "end_line": 88, "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": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "send", "full_name": "", "start_line": 103, "end_line": 106, "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": "function", "name": "on", "full_name": "", "start_line": 109, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_reachable", "full_name": "", "start_line": 116, "end_line": 119, "start_column": 0, "end_column": 0, "depth": 3, "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": "function", "name": "get_transport_type", "full_name": "", "start_line": 122, "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": 123, "end_line": 123, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 130, "end_line": 154, "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": 131, "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": 132, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 136, "end_line": 144, "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": 143, "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": 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": "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": 150, "end_line": 153, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "P2PBox", "full_name": "", "start_line": 156, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 157, "end_line": 159, "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": 161, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "as_any", "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_mut", "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": "P2PBoxData", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 180, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 42, "max_depth": 8, "node_type_counts": { "if_statement": 1, "import": 6, "function": 18, "class": 8, "variable": 8, "file_root": 1 }, "classes": 8, "functions": 18, "methods": 0, "variables": 8, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.739075104Z" }, { "file_info": { "name": "qr_box.rs", "path": "src/boxes/qr_box.rs", "size_bytes": 0, "total_lines": 334, "code_lines": 217, "comment_lines": 78, "empty_lines": 39, "code_ratio": 0.6497005988023952, "analyzed_at": "2025-08-13T11:36:21.739141566Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "QRBox", "parent_class": null, "start_line": 65, "end_line": 73, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": 328, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "QRBox", "parent_class": null, "start_line": 330, "end_line": 334, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "to_string_box", "start_line": 313, "end_line": 315, "parameters": [ "&self" ], "is_async": 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": 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": "equals", "start_line": 321, "end_line": 327, "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": 331, "end_line": 333, "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": 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": 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": 328, "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": "to_string_box", "full_name": "", "start_line": 313, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 3, "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": "equals", "full_name": "", "start_line": 321, "end_line": 327, "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": 326, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "QRBox", "full_name": "", "start_line": 330, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 331, "end_line": 333, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 63, "max_depth": 21, "node_type_counts": { "class": 5, "function": 29, "for_loop": 3, "file_root": 1, "if_statement": 12, "import": 4, "variable": 9 }, "classes": 5, "functions": 29, "methods": 0, "variables": 9, "control_structures": 15 }, "generated_at": "2025-08-13T11:36:21.739164063Z" }, { "file_info": { "name": "random_box.rs", "path": "src/boxes/random_box.rs", "size_bytes": 0, "total_lines": 299, "code_lines": 171, "comment_lines": 91, "empty_lines": 37, "code_ratio": 0.5719063545150501, "analyzed_at": "2025-08-13T11:36:21.739161795Z", "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": 247, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "RandomBox", "parent_class": null, "start_line": 249, "end_line": 271, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "RandomBox", "parent_class": null, "start_line": 273, "end_line": 293, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "RandomBox", "parent_class": null, "start_line": 295, "end_line": 299, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 85, "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": { "modifiers": "pub", "type": "function" } }, { "name": "seed", "start_line": 99, "end_line": 106, "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": 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": "random", "start_line": 117, "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": "randInt", "start_line": 124, "end_line": 139, "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": { "type": "function", "modifiers": "pub" } }, { "name": "randBool", "start_line": 142, "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": { "modifiers": "pub", "type": "function" } }, { "name": "choice", "start_line": 148, "end_line": 161, "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": 164, "end_line": 202, "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": 205, "end_line": 224, "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": 227, "end_line": 246, "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": { "type": "function", "modifiers": "pub" } }, { "name": "type_name", "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": "to_string_box", "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": "clone_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": "equals", "start_line": 262, "end_line": 268, "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": 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": "parent_type_id", "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": { "type": "function" } }, { "name": "fmt_box", "start_line": 282, "end_line": 284, "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": 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": "as_any_mut", "start_line": 290, "end_line": 292, "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": 296, "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" } } ], "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::{Arc, Mutex}", "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": 5, "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": 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": 247, "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": 96, "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": 90, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "seed", "full_name": "", "start_line": 99, "end_line": 106, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 100, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "next_random", "full_name": "", "start_line": 109, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 3, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "random", "full_name": "", "start_line": 117, "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": 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": "function", "name": "randInt", "full_name": "", "start_line": 124, "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": 125, "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": 129, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 9, "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": "function", "name": "randBool", "full_name": "", "start_line": 142, "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": 143, "end_line": 143, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "choice", "full_name": "", "start_line": 148, "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": 149, "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": 150, "end_line": 150, "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": "variable", "name": "", "full_name": "", "start_line": 155, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "shuffle", "full_name": "", "start_line": 164, "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": 165, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 6, "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": "if_statement", "name": "", "full_name": "", "start_line": 167, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 172, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 175, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "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": 12, "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": "Vec", "full_name": "", "start_line": 186, "end_line": 186, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 188, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 9, "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": 190, "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": 191, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 11, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "randString", "full_name": "", "start_line": 205, "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": 206, "end_line": 223, "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": 209, "start_column": 0, "end_column": 0, "depth": 9, "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": "variable", "name": "Vec", "full_name": "", "start_line": 212, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 8, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 215, "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": 216, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "probability", "full_name": "", "start_line": 227, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 228, "end_line": 245, "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": 231, "start_column": 0, "end_column": 0, "depth": 9, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 235, "end_line": 245, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 237, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 11, "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": "class", "name": "RandomBox", "full_name": "", "start_line": 249, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "to_string_box", "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": "clone_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": "function", "name": "equals", "full_name": "", "start_line": 262, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 263, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 273, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "full_name": "", "start_line": 278, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 282, "end_line": 284, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 290, "end_line": 292, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RandomBox", "full_name": "", "start_line": 295, "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": 296, "end_line": 298, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 74, "max_depth": 12, "node_type_counts": { "file_root": 1, "for_loop": 3, "variable": 24, "function": 20, "import": 5, "class": 5, "if_statement": 16 }, "classes": 5, "functions": 20, "methods": 0, "variables": 24, "control_structures": 19 }, "generated_at": "2025-08-13T11:36:21.739181731Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/regex/mod.rs", "size_bytes": 0, "total_lines": 134, "code_lines": 102, "comment_lines": 8, "empty_lines": 24, "code_ratio": 0.7611940298507462, "analyzed_at": "2025-08-13T11:36:21.752222910Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "RegexBox", "parent_class": null, "start_line": 13, "end_line": 17, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": 106, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "RegexBox", "parent_class": null, "start_line": 108, "end_line": 128, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "RegexBox", "parent_class": null, "start_line": 130, "end_line": 134, "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "to_string_box", "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" } }, { "name": "type_name", "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": "equals", "start_line": 99, "end_line": 105, "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": 109, "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": "parent_type_id", "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": "fmt_box", "start_line": 117, "end_line": 119, "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": 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": "as_any_mut", "start_line": 125, "end_line": 127, "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": 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" } } ], "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, Mutex}", "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": 18, "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": 106, "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": "to_string_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": "type_name", "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": "equals", "full_name": "", "start_line": 99, "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": 100, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 108, "end_line": 128, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 109, "end_line": 111, "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": 113, "end_line": 115, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_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": "function", "name": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 125, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RegexBox", "full_name": "", "start_line": 130, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 131, "end_line": 133, "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": 18, "for_loop": 2, "file_root": 1, "variable": 12, "class": 5, "if_statement": 2, "import": 6 }, "classes": 5, "functions": 18, "methods": 0, "variables": 12, "control_structures": 4 }, "generated_at": "2025-08-13T11:36:21.752230721Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/result/mod.rs", "size_bytes": 0, "total_lines": 136, "code_lines": 104, "comment_lines": 9, "empty_lines": 23, "code_ratio": 0.7647058823529411, "analyzed_at": "2025-08-13T11:36:21.752403241Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashResultBox", "parent_class": null, "start_line": 9, "end_line": 12, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "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": 71, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "NyashResultBox", "parent_class": null, "start_line": 73, "end_line": 104, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "NyashResultBox", "parent_class": null, "start_line": 106, "end_line": 110, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "ResultBox", "parent_class": null, "start_line": 115, "end_line": 136, "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "to_string_box", "start_line": 47, "end_line": 52, "parameters": [ "&self" ], "is_async": 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": 55, "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": "equals", "start_line": 60, "end_line": 70, "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": 74, "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": "parent_type_id", "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": { "type": "function" } }, { "name": "fmt_box", "start_line": 90, "end_line": 95, "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": 97, "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": "as_any_mut", "start_line": 101, "end_line": 103, "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": 107, "end_line": 109, "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": 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", "modifiers": "pub" } }, { "name": "get_value", "start_line": 122, "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": "get_error", "start_line": 130, "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" } } ], "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": 18, "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": 71, "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": "to_string_box", "full_name": "", "start_line": 47, "end_line": 52, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 55, "end_line": 57, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 60, "end_line": 70, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 61, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 73, "end_line": 104, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 74, "end_line": 80, "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": 82, "end_line": 88, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 90, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 97, "end_line": 99, "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": 101, "end_line": 103, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashResultBox", "full_name": "", "start_line": 106, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 107, "end_line": 109, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 115, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_ok", "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_value", "full_name": "", "start_line": 122, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_error", "full_name": "", "start_line": 130, "end_line": 135, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 28, "max_depth": 6, "node_type_counts": { "if_statement": 1, "import": 2, "file_root": 1, "class": 6, "function": 18 }, "classes": 6, "functions": 18, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.752410457Z" }, { "file_info": { "name": "simple_intent_box.rs", "path": "src/boxes/simple_intent_box.rs", "size_bytes": 0, "total_lines": 233, "code_lines": 57, "comment_lines": 162, "empty_lines": 14, "code_ratio": 0.2446351931330472, "analyzed_at": "2025-08-13T11:36:21.741252030Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "SimpleIntentBox", "parent_class": null, "start_line": 168, "end_line": 172, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 174, "end_line": 181, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 183, "end_line": 200, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 202, "end_line": 227, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "SimpleIntentBox", "parent_class": null, "start_line": 229, "end_line": 233, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 175, "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", "modifiers": "pub" } }, { "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": 194, "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": 197, "end_line": 199, "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": 203, "end_line": 205, "parameters": [ "&self" ], "is_async": 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": 207, "end_line": 213, "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": 215, "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" } }, { "name": "clone_box", "start_line": 219, "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", "start_line": 230, "end_line": 232, "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::{Arc, Mutex}", "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": 5, "function_count": 10, "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": 181, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 175, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 183, "end_line": 200, "start_column": 0, "end_column": 0, "depth": 1, "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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 192, "end_line": 194, "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": 197, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 202, "end_line": 227, "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": 203, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 207, "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": 208, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 215, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 219, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SimpleIntentBox", "full_name": "", "start_line": 229, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 230, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 21, "max_depth": 6, "node_type_counts": { "function": 10, "class": 5, "file_root": 1, "import": 4, "if_statement": 1 }, "classes": 5, "functions": 10, "methods": 0, "variables": 0, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.741266536Z" }, { "file_info": { "name": "sound_box.rs", "path": "src/boxes/sound_box.rs", "size_bytes": 0, "total_lines": 366, "code_lines": 174, "comment_lines": 160, "empty_lines": 32, "code_ratio": 0.47540983606557374, "analyzed_at": "2025-08-13T11:36:21.743491890Z", "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": 338, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "SoundBox", "parent_class": null, "start_line": 340, "end_line": 360, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "SoundBox", "parent_class": null, "start_line": 362, "end_line": 366, "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "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": "box_id", "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": "parent_type_id", "start_line": 345, "end_line": 347, "parameters": [ "&self" ], "is_async": 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": 349, "end_line": 351, "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": 353, "end_line": 355, "parameters": [ "&self" ], "is_async": 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": 357, "end_line": 359, "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": 363, "end_line": 365, "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": 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": 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": 338, "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": "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": "class", "name": "SoundBox", "full_name": "", "start_line": 340, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "full_name": "", "start_line": 345, "end_line": 347, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 349, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 353, "end_line": 355, "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": 357, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SoundBox", "full_name": "", "start_line": 362, "end_line": 366, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 363, "end_line": 365, "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": 12, "node_type_counts": { "variable": 1, "if_statement": 11, "function": 20, "class": 5, "import": 5, "for_loop": 4, "file_root": 1 }, "classes": 5, "functions": 20, "methods": 0, "variables": 1, "control_structures": 15 }, "generated_at": "2025-08-13T11:36:21.743513856Z" }, { "file_info": { "name": "mod.rs", "path": "src/boxes/stream/mod.rs", "size_bytes": 0, "total_lines": 200, "code_lines": 154, "comment_lines": 15, "empty_lines": 31, "code_ratio": 0.77, "analyzed_at": "2025-08-13T11:36:21.762991950Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashStreamBox", "parent_class": null, "start_line": 13, "end_line": 17, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 19, "end_line": 137, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 139, "end_line": 167, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 169, "end_line": 191, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "NyashStreamBox", "parent_class": null, "start_line": 193, "end_line": 197, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } } ], "functions": [ { "name": "new", "start_line": 20, "end_line": 26, "parameters": [], "is_async": false, "is_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": 28, "end_line": 34, "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": 36, "end_line": 50, "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": 52, "end_line": 56, "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": "len", "start_line": 58, "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": { "modifiers": "pub", "type": "function" } }, { "name": "position", "start_line": 62, "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", "modifiers": "pub" } }, { "name": "reset", "start_line": 66, "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": { "type": "function", "modifiers": "pub" } }, { "name": "stream_write", "start_line": 71, "end_line": 102, "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": "stream_read", "start_line": 105, "end_line": 120, "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": { "modifiers": "pub", "type": "function" } }, { "name": "get_position", "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": "get_length", "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": { "modifiers": "pub", "type": "function" } }, { "name": "stream_reset", "start_line": 133, "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", "modifiers": "pub" } }, { "name": "clone_box", "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": "to_string_box", "start_line": 144, "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": "type_name", "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": "equals", "start_line": 156, "end_line": 166, "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": 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": "parent_type_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": "fmt_box", "start_line": 178, "end_line": 182, "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": 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": "as_any_mut", "start_line": 188, "end_line": 190, "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": 194, "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" } } ], "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::{Arc, Mutex}", "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": 5, "function_count": 22, "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": 13, "end_line": 17, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 19, "end_line": 137, "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": "from_data", "full_name": "", "start_line": 28, "end_line": 34, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 36, "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": 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": 38, "end_line": 38, "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": 41, "end_line": 41, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 43, "end_line": 45, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 52, "end_line": 56, "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": "len", "full_name": "", "start_line": 58, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "position", "full_name": "", "start_line": 62, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "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": "stream_write", "full_name": "", "start_line": 71, "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": 73, "end_line": 101, "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": "if_statement", "name": "", "full_name": "", "start_line": 77, "end_line": 93, "start_column": 0, "end_column": 0, "depth": 9, "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": "variable", "name": "", "full_name": "", "start_line": 79, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 80, "end_line": 86, "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": 15, "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": 18, "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": "stream_read", "full_name": "", "start_line": 105, "end_line": 120, "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": 119, "start_column": 0, "end_column": 0, "depth": 6, "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": "function", "name": "get_position", "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": "get_length", "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": "stream_reset", "full_name": "", "start_line": 133, "end_line": 136, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 139, "end_line": 167, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "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": "to_string_box", "full_name": "", "start_line": 144, "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": 145, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 5, "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": "type_name", "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": "equals", "full_name": "", "start_line": 156, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 157, "end_line": 165, "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": "variable", "name": "", "full_name": "", "start_line": 159, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 8, "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": 8, "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": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 169, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_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": "fmt_box", "full_name": "", "start_line": 178, "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": 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": "function", "name": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 188, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashStreamBox", "full_name": "", "start_line": 193, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 194, "end_line": 196, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 61, "max_depth": 18, "node_type_counts": { "variable": 18, "class": 5, "file_root": 1, "if_statement": 8, "for_loop": 1, "function": 22, "import": 6 }, "classes": 5, "functions": 22, "methods": 0, "variables": 18, "control_structures": 9 }, "generated_at": "2025-08-13T11:36:21.763004682Z" }, { "file_info": { "name": "string_box.rs", "path": "src/boxes/string_box.rs", "size_bytes": 0, "total_lines": 183, "code_lines": 115, "comment_lines": 42, "empty_lines": 26, "code_ratio": 0.6284153005464481, "analyzed_at": "2025-08-13T11:36:21.746878189Z", "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": 155, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "StringBox", "parent_class": null, "start_line": 157, "end_line": 177, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "StringBox", "parent_class": null, "start_line": 179, "end_line": 183, "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": 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": "box_id", "start_line": 158, "end_line": 160, "parameters": [ "&self" ], "is_async": 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": 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": "fmt_box", "start_line": 166, "end_line": 168, "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": 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": "as_any_mut", "start_line": 174, "end_line": 176, "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": 180, "end_line": 182, "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": 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": 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": 155, "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": 150, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 157, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 158, "end_line": 160, "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": 162, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "as_any", "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_mut", "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": "StringBox", "full_name": "", "start_line": 179, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 180, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 45, "max_depth": 8, "node_type_counts": { "class": 5, "file_root": 1, "import": 10, "function": 22, "variable": 4, "for_loop": 1, "if_statement": 2 }, "classes": 5, "functions": 22, "methods": 0, "variables": 4, "control_structures": 3 }, "generated_at": "2025-08-13T11:36:21.746889124Z" }, { "file_info": { "name": "timer_box.rs", "path": "src/boxes/timer_box.rs", "size_bytes": 0, "total_lines": 242, "code_lines": 155, "comment_lines": 56, "empty_lines": 31, "code_ratio": 0.640495867768595, "analyzed_at": "2025-08-13T11:36:21.756577761Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "TimerBox", "parent_class": null, "start_line": 59, "end_line": 63, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 216, "end_line": 236, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 238, "end_line": 242, "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": { "modifiers": "pub", "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": "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "to_string_box", "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" } }, { "name": "type_name", "start_line": 225, "end_line": 227, "parameters": [ "&self" ], "is_async": 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": 229, "end_line": 235, "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": 239, "end_line": 241, "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": 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": 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": 236, "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": "to_string_box", "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": "type_name", "full_name": "", "start_line": 225, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 229, "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": 230, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 238, "end_line": 242, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 239, "end_line": 241, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 45, "max_depth": 8, "node_type_counts": { "if_statement": 8, "function": 25, "class": 5, "file_root": 1, "variable": 1, "import": 5 }, "classes": 5, "functions": 25, "methods": 0, "variables": 1, "control_structures": 8 }, "generated_at": "2025-08-13T11:36:21.756592086Z" }, { "file_info": { "name": "time_box.rs", "path": "src/boxes/time_box.rs", "size_bytes": 0, "total_lines": 494, "code_lines": 289, "comment_lines": 145, "empty_lines": 60, "code_ratio": 0.5850202429149798, "analyzed_at": "2025-08-13T11:36:21.744582983Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "TimeBox", "parent_class": null, "start_line": 129, "end_line": 131, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": 211, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "TimeBox", "parent_class": null, "start_line": 213, "end_line": 233, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "TimeBox", "parent_class": null, "start_line": 235, "end_line": 239, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 243, "end_line": 246, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 248, "end_line": 359, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 361, "end_line": 382, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 384, "end_line": 404, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "DateTimeBox", "parent_class": null, "start_line": 406, "end_line": 410, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 414, "end_line": 417, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TimerBox", "parent_class": null, "start_line": 419, "end_line": 443, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TimerBox", "parent_class": null, "start_line": 445, "end_line": 466, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "TimerBox", "parent_class": null, "start_line": 468, "end_line": 488, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "TimerBox", "parent_class": null, "start_line": 490, "end_line": 494, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "equals", "start_line": 203, "end_line": 209, "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": 214, "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": { "type": "function" } }, { "name": "parent_type_id", "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": { "type": "function" } }, { "name": "fmt_box", "start_line": 222, "end_line": 224, "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": 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": "as_any_mut", "start_line": 230, "end_line": 232, "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": 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": "now", "start_line": 250, "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", "modifiers": "pub" } }, { "name": "from_timestamp", "start_line": 258, "end_line": 261, "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": { "type": "function", "modifiers": "pub" } }, { "name": "parse", "start_line": 264, "end_line": 282, "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": 285, "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": { "modifiers": "pub", "type": "function" } }, { "name": "month", "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": { "modifiers": "pub", "type": "function" } }, { "name": "day", "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": "hour", "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": "minute", "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", "modifiers": "pub" } }, { "name": "second", "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": { "type": "function", "modifiers": "pub" } }, { "name": "timestamp", "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": { "modifiers": "pub", "type": "function" } }, { "name": "toISOString", "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": "format", "start_line": 325, "end_line": 332, "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": { "type": "function", "modifiers": "pub" } }, { "name": "addDays", "start_line": 335, "end_line": 345, "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": { "modifiers": "pub", "type": "function" } }, { "name": "addHours", "start_line": 348, "end_line": 358, "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": 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": "to_string_box", "start_line": 366, "end_line": 368, "parameters": [ "&self" ], "is_async": 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": 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": "equals", "start_line": 374, "end_line": 380, "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": 385, "end_line": 387, "parameters": [ "&self" ], "is_async": 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": 389, "end_line": 391, "parameters": [ "&self" ], "is_async": 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": 393, "end_line": 395, "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": 397, "end_line": 399, "parameters": [ "&self" ], "is_async": 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": 401, "end_line": 403, "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": 407, "end_line": 409, "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": 420, "end_line": 425, "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": 428, "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", "modifiers": "pub" } }, { "name": "reset", "start_line": 439, "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", "modifiers": "pub" } }, { "name": "type_name", "start_line": 446, "end_line": 448, "parameters": [ "&self" ], "is_async": 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": 450, "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" } }, { "name": "clone_box", "start_line": 454, "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": "equals", "start_line": 458, "end_line": 464, "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": 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": "parent_type_id", "start_line": 473, "end_line": 475, "parameters": [ "&self" ], "is_async": 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": 477, "end_line": 479, "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": 481, "end_line": 483, "parameters": [ "&self" ], "is_async": 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": 485, "end_line": 487, "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": 491, "end_line": 493, "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": 53, "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": 211, "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": "equals", "full_name": "", "start_line": 203, "end_line": 209, "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": 208, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 213, "end_line": 233, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "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": "fmt_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": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 230, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimeBox", "full_name": "", "start_line": 235, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 236, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 243, "end_line": 246, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 248, "end_line": 359, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "now", "full_name": "", "start_line": 250, "end_line": 255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_timestamp", "full_name": "", "start_line": 258, "end_line": 261, "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": "function", "name": "parse", "full_name": "", "start_line": 264, "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": 275, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "year", "full_name": "", "start_line": 285, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "month", "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": "day", "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": "hour", "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": "minute", "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": "second", "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": "timestamp", "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": "toISOString", "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": "format", "full_name": "", "start_line": 325, "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": 326, "end_line": 331, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "addDays", "full_name": "", "start_line": 335, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 336, "end_line": 344, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "addHours", "full_name": "", "start_line": 348, "end_line": 358, "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": 357, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 361, "end_line": 382, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "to_string_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": "clone_box", "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": "equals", "full_name": "", "start_line": 374, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 375, "end_line": 379, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 384, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 385, "end_line": 387, "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": 389, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_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": "as_any", "full_name": "", "start_line": 397, "end_line": 399, "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": 401, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DateTimeBox", "full_name": "", "start_line": 406, "end_line": 410, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 407, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 414, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 419, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 420, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "elapsed", "full_name": "", "start_line": 428, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 431, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "reset", "full_name": "", "start_line": 439, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 445, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 446, "end_line": 448, "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": 450, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 454, "end_line": 456, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 458, "end_line": 464, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 459, "end_line": 463, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 468, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_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": "parent_type_id", "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": "fmt_box", "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", "full_name": "", "start_line": 481, "end_line": 483, "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": 485, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TimerBox", "full_name": "", "start_line": 490, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 491, "end_line": 493, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 93, "max_depth": 15, "node_type_counts": { "class": 15, "function": 53, "import": 5, "if_statement": 11, "variable": 8, "file_root": 1 }, "classes": 15, "functions": 53, "methods": 0, "variables": 8, "control_structures": 11 }, "generated_at": "2025-08-13T11:36:21.744610177Z" }, { "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-13T11:36:21.758862924Z", "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": { "file_root": 1, "import": 3 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.758864327Z" }, { "file_info": { "name": "web_canvas_box.rs", "path": "src/boxes/web/web_canvas_box.rs", "size_bytes": 0, "total_lines": 319, "code_lines": 238, "comment_lines": 34, "empty_lines": 47, "code_ratio": 0.7460815047021944, "analyzed_at": "2025-08-13T11:36:21.750387570Z", "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": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "WebCanvasBox", "parent_class": null, "start_line": 285, "end_line": 312, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "WebCanvasBox", "parent_class": null, "start_line": 315, "end_line": 319, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::fmt::Display", "type": "impl" } } ], "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "to_string_box", "start_line": 290, "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" } }, { "name": "type_name", "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" } }, { "name": "equals", "start_line": 305, "end_line": 311, "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": 316, "end_line": 318, "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": 38, "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": 312, "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": "to_string_box", "full_name": "", "start_line": 290, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "equals", "full_name": "", "start_line": 305, "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": 306, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebCanvasBox", "full_name": "", "start_line": 315, "end_line": 319, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 316, "end_line": 318, "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": 6, "node_type_counts": { "function": 37, "if_statement": 25, "variable": 5, "file_root": 1, "import": 4, "class": 5 }, "classes": 5, "functions": 37, "methods": 0, "variables": 5, "control_structures": 25 }, "generated_at": "2025-08-13T11:36:21.750404669Z" }, { "file_info": { "name": "web_console_box.rs", "path": "src/boxes/web/web_console_box.rs", "size_bytes": 0, "total_lines": 191, "code_lines": 140, "comment_lines": 19, "empty_lines": 32, "code_ratio": 0.7329842931937173, "analyzed_at": "2025-08-13T11:36:21.751071169Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WebConsoleBox", "parent_class": null, "start_line": 20, "end_line": 23, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": 184, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "WebConsoleBox", "parent_class": null, "start_line": 187, "end_line": 191, "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": "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "to_string_box", "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": "type_name", "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": "equals", "start_line": 177, "end_line": 183, "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": 188, "end_line": 190, "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": 21, "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": 184, "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": "to_string_box", "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": "type_name", "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": "equals", "full_name": "", "start_line": 177, "end_line": 183, "start_column": 0, "end_column": 0, "depth": 3, "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": "class", "name": "WebConsoleBox", "full_name": "", "start_line": 187, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 188, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 55, "max_depth": 9, "node_type_counts": { "if_statement": 7, "file_root": 1, "import": 4, "class": 5, "function": 21, "variable": 17 }, "classes": 5, "functions": 21, "methods": 0, "variables": 17, "control_structures": 7 }, "generated_at": "2025-08-13T11:36:21.751089468Z" }, { "file_info": { "name": "web_display_box.rs", "path": "src/boxes/web/web_display_box.rs", "size_bytes": 0, "total_lines": 184, "code_lines": 135, "comment_lines": 20, "empty_lines": 29, "code_ratio": 0.7336956521739131, "analyzed_at": "2025-08-13T11:36:21.750908191Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "WebDisplayBox", "parent_class": null, "start_line": 20, "end_line": 23, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "WebDisplayBox", "parent_class": null, "start_line": 155, "end_line": 177, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "WebDisplayBox", "parent_class": null, "start_line": 180, "end_line": 184, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "to_string_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": "type_name", "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": "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": "fmt", "start_line": 181, "end_line": 183, "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": "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": 177, "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": "to_string_box", "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": "type_name", "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": "equals", "full_name": "", "start_line": 170, "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": 171, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "WebDisplayBox", "full_name": "", "start_line": 180, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 181, "end_line": 183, "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": 11, "node_type_counts": { "import": 4, "function": 22, "file_root": 1, "class": 5, "variable": 11, "if_statement": 14 }, "classes": 5, "functions": 22, "methods": 0, "variables": 11, "control_structures": 14 }, "generated_at": "2025-08-13T11:36:21.750919637Z" }, { "file_info": { "name": "box_operators.rs", "path": "src/box_operators.rs", "size_bytes": 0, "total_lines": 531, "code_lines": 376, "comment_lines": 60, "empty_lines": 95, "code_ratio": 0.7080979284369114, "analyzed_at": "2025-08-13T11:36:21.745767914Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "IntegerBox", "parent_class": null, "start_line": 23, "end_line": 29, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashAdd" } }, { "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": { "type": "impl", "implementing_trait": "NyashDiv" } }, { "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": { "implementing_trait": "DynamicSub", "type": "impl" } }, { "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": { "type": "impl", "implementing_trait": "DynamicDiv" } }, { "name": "FloatBox", "parent_class": null, "start_line": 164, "end_line": 170, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashAdd" } }, { "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": { "type": "impl", "implementing_trait": "DynamicDiv" } }, { "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": { "type": "impl", "implementing_trait": "NyashMul" } }, { "name": "StringBox", "parent_class": null, "start_line": 319, "end_line": 334, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicAdd", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 336, "end_line": 344, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicSub" } }, { "name": "StringBox", "parent_class": null, "start_line": 346, "end_line": 362, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "DynamicMul" } }, { "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": { "type": "impl", "implementing_trait": "NyashAdd" } }, { "name": "BoolBox", "parent_class": null, "start_line": 386, "end_line": 409, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "DynamicAdd", "type": "impl" } }, { "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": { "implementing_trait": "DynamicDiv", "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": "test_integer_addition", "start_line": 479, "end_line": 484, "parameters": [], "is_async": 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": 487, "end_line": 492, "parameters": [], "is_async": 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": 495, "end_line": 500, "parameters": [], "is_async": 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": 503, "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_boolean_arithmetic", "start_line": 514, "end_line": 519, "parameters": [], "is_async": 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": 522, "end_line": 530, "parameters": [], "is_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": 476, "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": 27, "function_count": 49, "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": "import", "name": "", "full_name": "", "start_line": 476, "end_line": 476, "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": 479, "end_line": 484, "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": 481, "end_line": 481, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_string_concatenation", "full_name": "", "start_line": 487, "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": 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": "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": "function", "name": "test_string_repetition", "full_name": "", "start_line": 495, "end_line": 500, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 496, "end_line": 496, "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": 497, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_dynamic_addition", "full_name": "", "start_line": 503, "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": 504, "end_line": 504, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 505, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 5, "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 }, { "type": "variable", "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": "function", "name": "test_boolean_arithmetic", "full_name": "", "start_line": 514, "end_line": 519, "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": "variable", "name": "", "full_name": "", "start_line": 517, "end_line": 517, "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": 522, "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": 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": 527, "end_line": 527, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 152, "max_depth": 11, "node_type_counts": { "class": 27, "function": 49, "if_statement": 36, "file_root": 1, "import": 4, "variable": 35 }, "classes": 27, "functions": 49, "methods": 0, "variables": 35, "control_structures": 36 }, "generated_at": "2025-08-13T11:36:21.745795247Z" }, { "file_info": { "name": "box_trait.rs", "path": "src/box_trait.rs", "size_bytes": 0, "total_lines": 1449, "code_lines": 1080, "comment_lines": 126, "empty_lines": 243, "code_ratio": 0.7453416149068323, "analyzed_at": "2025-08-13T11:36:21.756206377Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxBase", "parent_class": null, "start_line": 27, "end_line": 30, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoxBase", "parent_class": null, "start_line": 32, "end_line": 48, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BoxCore", "parent_class": null, "start_line": 53, "end_line": 68, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "NyashBox", "parent_class": null, "start_line": 72, "end_line": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "StringBox", "parent_class": null, "start_line": 97, "end_line": 100, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "StringBox", "parent_class": null, "start_line": 102, "end_line": 195, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 197, "end_line": 217, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 219, "end_line": 240, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "StringBox", "parent_class": null, "start_line": 242, "end_line": 246, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 250, "end_line": 253, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 255, "end_line": 266, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 268, "end_line": 288, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 290, "end_line": 311, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "IntegerBox", "parent_class": null, "start_line": 313, "end_line": 317, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "BoolBox", "parent_class": null, "start_line": 321, "end_line": 324, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "BoolBox", "parent_class": null, "start_line": 326, "end_line": 341, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 343, "end_line": 363, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "BoolBox", "parent_class": null, "start_line": 365, "end_line": 386, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "BoolBox", "parent_class": null, "start_line": 388, "end_line": 392, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "VoidBox", "parent_class": null, "start_line": 396, "end_line": 398, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "VoidBox", "parent_class": null, "start_line": 400, "end_line": 406, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "VoidBox", "parent_class": null, "start_line": 408, "end_line": 412, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } }, { "name": "VoidBox", "parent_class": null, "start_line": 414, "end_line": 434, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "VoidBox", "parent_class": null, "start_line": 436, "end_line": 453, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "VoidBox", "parent_class": null, "start_line": 455, "end_line": 459, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "FileBox", "parent_class": null, "start_line": 466, "end_line": 469, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "FileBox", "parent_class": null, "start_line": 471, "end_line": 518, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FileBox", "parent_class": null, "start_line": 520, "end_line": 540, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "FileBox", "parent_class": null, "start_line": 542, "end_line": 563, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "FileBox", "parent_class": null, "start_line": 565, "end_line": 569, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 573, "end_line": 577, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 579, "end_line": 587, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 589, "end_line": 609, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 611, "end_line": 632, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 634, "end_line": 638, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ResultBox", "parent_class": null, "start_line": 642, "end_line": 647, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ResultBox", "parent_class": null, "start_line": 649, "end_line": 690, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ResultBox", "parent_class": null, "start_line": 692, "end_line": 712, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ResultBox", "parent_class": null, "start_line": 714, "end_line": 777, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "ResultBox", "parent_class": null, "start_line": 779, "end_line": 783, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "FutureBox", "parent_class": null, "start_line": 787, "end_line": 791, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "FutureBox", "parent_class": null, "start_line": 793, "end_line": 801, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Clone", "type": "impl" } }, { "name": "FutureBox", "parent_class": null, "start_line": 803, "end_line": 853, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "FutureBox", "parent_class": null, "start_line": 855, "end_line": 886, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "FutureBox", "parent_class": null, "start_line": 888, "end_line": 908, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "FutureBox", "parent_class": null, "start_line": 910, "end_line": 914, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "AddBox", "parent_class": null, "start_line": 919, "end_line": 923, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "AddBox", "parent_class": null, "start_line": 925, "end_line": 975, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "AddBox", "parent_class": null, "start_line": 977, "end_line": 985, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } }, { "name": "AddBox", "parent_class": null, "start_line": 987, "end_line": 1014, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "AddBox", "parent_class": null, "start_line": 1016, "end_line": 1036, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "AddBox", "parent_class": null, "start_line": 1038, "end_line": 1042, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 1047, "end_line": 1050, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "SubtractBox", "parent_class": null, "start_line": 1052, "end_line": 1095, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 1098, "end_line": 1101, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MultiplyBox", "parent_class": null, "start_line": 1103, "end_line": 1146, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "DivideBox", "parent_class": null, "start_line": 1149, "end_line": 1152, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "DivideBox", "parent_class": null, "start_line": 1154, "end_line": 1213, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "CompareBox", "parent_class": null, "start_line": 1216, "end_line": 1216, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "CompareBox", "parent_class": null, "start_line": 1218, "end_line": 1370, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "next_box_id", "start_line": 18, "end_line": 21, "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": 34, "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": "with_parent_type", "start_line": 42, "end_line": 47, "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": 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": "new", "start_line": 103, "end_line": 108, "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": 110, "end_line": 112, "parameters": [], "is_async": false, "is_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": 117, "end_line": 123, "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": { "type": "function", "modifiers": "pub" } }, { "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": "closure", "start_line": 120, "end_line": 120, "parameters": [], "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": 126, "end_line": 131, "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": 134, "end_line": 136, "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": 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", "modifiers": "pub" } }, { "name": "to_upper", "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", "modifiers": "pub" } }, { "name": "to_lower", "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", "modifiers": "pub" } }, { "name": "contains", "start_line": 154, "end_line": 156, "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": "starts_with", "start_line": 159, "end_line": 161, "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": { "modifiers": "pub", "type": "function" } }, { "name": "ends_with", "start_line": 164, "end_line": 166, "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": 169, "end_line": 180, "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": 173, "end_line": 173, "parameters": [], "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": 183, "end_line": 185, "parameters": [ "&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": 188, "end_line": 194, "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": { "modifiers": "pub", "type": "function" } }, { "name": "box_id", "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": "parent_type_id", "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": "fmt_box", "start_line": 206, "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": "to_string_box", "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" } }, { "name": "equals", "start_line": 224, "end_line": 230, "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": 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": "clone_box", "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": "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": 261, "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": 263, "end_line": 265, "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": 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": "parent_type_id", "start_line": 273, "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": { "type": "function" } }, { "name": "fmt_box", "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": "as_any", "start_line": 281, "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": { "type": "function" } }, { "name": "as_any_mut", "start_line": 285, "end_line": 287, "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": 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": "equals", "start_line": 295, "end_line": 301, "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": 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": "clone_box", "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", "start_line": 314, "end_line": 316, "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": 327, "end_line": 332, "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": { "modifiers": "pub", "type": "function" } }, { "name": "true_box", "start_line": 334, "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", "modifiers": "pub" } }, { "name": "false_box", "start_line": 338, "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", "modifiers": "pub" } }, { "name": "box_id", "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": "parent_type_id", "start_line": 348, "end_line": 350, "parameters": [ "&self" ], "is_async": 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": 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": "as_any", "start_line": 356, "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" } }, { "name": "as_any_mut", "start_line": 360, "end_line": 362, "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": 366, "end_line": 368, "parameters": [ "&self" ], "is_async": 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": 370, "end_line": 376, "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": 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": "clone_box", "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": "fmt", "start_line": 389, "end_line": 391, "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": 401, "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": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 409, "end_line": 411, "parameters": [], "is_async": 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": 415, "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": "parent_type_id", "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": "fmt_box", "start_line": 423, "end_line": 425, "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": 427, "end_line": 429, "parameters": [ "&self" ], "is_async": 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": 431, "end_line": 433, "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": 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": 443, "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": 445, "end_line": 447, "parameters": [ "&self" ], "is_async": 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": 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": "fmt", "start_line": 456, "end_line": 458, "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": 472, "end_line": 477, "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": 482, "end_line": 487, "parameters": [ "&self" ], "is_async": false, "is_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": 490, "end_line": 496, "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": 499, "end_line": 501, "parameters": [ "&self" ], "is_async": false, "is_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": 504, "end_line": 509, "parameters": [ "&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": 512, "end_line": 517, "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": 521, "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" } }, { "name": "parent_type_id", "start_line": 525, "end_line": 527, "parameters": [ "&self" ], "is_async": 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": 529, "end_line": 531, "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": 533, "end_line": 535, "parameters": [ "&self" ], "is_async": 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": 537, "end_line": 539, "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": 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": "equals", "start_line": 547, "end_line": 553, "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": 555, "end_line": 557, "parameters": [ "&self" ], "is_async": 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": 559, "end_line": 561, "parameters": [ "&self" ], "is_async": 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": 566, "end_line": 568, "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": 580, "end_line": 586, "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": 590, "end_line": 592, "parameters": [ "&self" ], "is_async": 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": 594, "end_line": 596, "parameters": [ "&self" ], "is_async": 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": 598, "end_line": 600, "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": 602, "end_line": 604, "parameters": [ "&self" ], "is_async": 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": 606, "end_line": 608, "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": 612, "end_line": 614, "parameters": [ "&self" ], "is_async": 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": 616, "end_line": 622, "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": 624, "end_line": 626, "parameters": [ "&self" ], "is_async": 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": 628, "end_line": 630, "parameters": [ "&self" ], "is_async": 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": 635, "end_line": 637, "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": 650, "end_line": 657, "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": 659, "end_line": 666, "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": 671, "end_line": 673, "parameters": [ "&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": 676, "end_line": 681, "parameters": [ "&self" ], "is_async": false, "is_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": 684, "end_line": 689, "parameters": [ "&self" ], "is_async": false, "is_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": 693, "end_line": 695, "parameters": [ "&self" ], "is_async": 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": 697, "end_line": 699, "parameters": [ "&self" ], "is_async": 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": 701, "end_line": 703, "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": 705, "end_line": 707, "parameters": [ "&self" ], "is_async": 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": 709, "end_line": 711, "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": 715, "end_line": 729, "parameters": [ "&self" ], "is_async": 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": 731, "end_line": 755, "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": 757, "end_line": 759, "parameters": [ "&self" ], "is_async": 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": 761, "end_line": 775, "parameters": [ "&self" ], "is_async": 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": 780, "end_line": 782, "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": 794, "end_line": 800, "parameters": [ "&self" ], "is_async": 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": 804, "end_line": 810, "parameters": [], "is_async": false, "is_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_result", "start_line": 813, "end_line": 818, "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": "get", "start_line": 821, "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", "modifiers": "pub" } }, { "name": "ready", "start_line": 837, "end_line": 839, "parameters": [ "&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": "wait_and_get", "start_line": 842, "end_line": 852, "parameters": [ "&self" ], "is_async": false, "is_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": 850, "end_line": 850, "parameters": [], "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": 851, "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": "closure" } }, { "name": "to_string_box", "start_line": 856, "end_line": 868, "parameters": [ "&self" ], "is_async": 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": 870, "end_line": 876, "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": 878, "end_line": 880, "parameters": [ "&self" ], "is_async": 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": 882, "end_line": 884, "parameters": [ "&self" ], "is_async": 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": 889, "end_line": 891, "parameters": [ "&self" ], "is_async": 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": 893, "end_line": 895, "parameters": [ "&self" ], "is_async": 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": 897, "end_line": 899, "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": 901, "end_line": 903, "parameters": [ "&self" ], "is_async": 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": 905, "end_line": 907, "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": 911, "end_line": 913, "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": 926, "end_line": 932, "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": 935, "end_line": 974, "parameters": [ "&self" ], "is_async": false, "is_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": 978, "end_line": 984, "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": 988, "end_line": 991, "parameters": [ "&self" ], "is_async": 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": 993, "end_line": 1001, "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": 1003, "end_line": 1005, "parameters": [ "&self" ], "is_async": 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": 1007, "end_line": 1012, "parameters": [ "&self" ], "is_async": 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": 1017, "end_line": 1019, "parameters": [ "&self" ], "is_async": 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": 1021, "end_line": 1023, "parameters": [ "&self" ], "is_async": 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": 1025, "end_line": 1027, "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": 1029, "end_line": 1031, "parameters": [ "&self" ], "is_async": 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": 1033, "end_line": 1035, "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": 1039, "end_line": 1041, "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": 1053, "end_line": 1055, "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": 1057, "end_line": 1094, "parameters": [ "&self" ], "is_async": false, "is_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": 1104, "end_line": 1106, "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": 1108, "end_line": 1145, "parameters": [ "&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": 1155, "end_line": 1157, "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": 1159, "end_line": 1212, "parameters": [ "&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": "less", "start_line": 1219, "end_line": 1255, "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": "greater", "start_line": 1257, "end_line": 1293, "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": 1295, "end_line": 1331, "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": 1333, "end_line": 1369, "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_string_box_creation", "start_line": 1379, "end_line": 1384, "parameters": [], "is_async": 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": 1387, "end_line": 1392, "parameters": [], "is_async": 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": 1395, "end_line": 1400, "parameters": [], "is_async": 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": 1403, "end_line": 1410, "parameters": [], "is_async": 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": 1413, "end_line": 1421, "parameters": [], "is_async": 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": 1424, "end_line": 1432, "parameters": [], "is_async": 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": 1435, "end_line": 1441, "parameters": [], "is_async": 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": 1444, "end_line": 1448, "parameters": [], "is_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, Mutex}", "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": 462, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::FloatBox", "imported_names": [], "alias": null, "line_number": 936, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::FloatBox", "imported_names": [], "alias": null, "line_number": 1058, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::FloatBox", "imported_names": [], "alias": null, "line_number": 1109, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::FloatBox", "imported_names": [], "alias": null, "line_number": 1160, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 1220, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 1258, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 1296, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::FloatBox", "imported_names": [], "alias": null, "line_number": 1334, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 1376, "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": 60, "function_count": 159, "import_count": 16, "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": 18, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "COUNTER", "full_name": "", "start_line": 19, "end_line": 19, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxBase", "full_name": "", "start_line": 27, "end_line": 30, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxBase", "full_name": "", "start_line": 32, "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": 34, "end_line": 39, "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": 42, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxCore", "full_name": "", "start_line": 53, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashBox", "full_name": "", "start_line": 72, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 80, "end_line": 82, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 97, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 102, "end_line": 195, "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": 108, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "empty", "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": "split", "full_name": "", "start_line": 117, "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": 118, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 119, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "find", "full_name": "", "start_line": 126, "end_line": 131, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "replace", "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": "trim", "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": "to_upper", "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_lower", "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": "contains", "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": "starts_with", "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": "ends_with", "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": "join", "full_name": "", "start_line": 169, "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": 170, "end_line": 179, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 171, "end_line": 174, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "length", "full_name": "", "start_line": 183, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 188, "end_line": 194, "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": 193, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StringBox", "full_name": "", "start_line": 197, "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": 198, "end_line": 200, "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": 202, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "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": "StringBox", "full_name": "", "start_line": 219, "end_line": 240, "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": 220, "end_line": 222, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 224, "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": 225, "end_line": 229, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "clone_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": "class", "name": "StringBox", "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": "IntegerBox", "full_name": "", "start_line": 250, "end_line": 253, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 255, "end_line": 266, "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": 261, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "zero", "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": "IntegerBox", "full_name": "", "start_line": 268, "end_line": 288, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_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": "fmt_box", "full_name": "", "start_line": 277, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 281, "end_line": 283, "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": 285, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 290, "end_line": 311, "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": 291, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 295, "end_line": 301, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "clone_box", "full_name": "", "start_line": 307, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "IntegerBox", "full_name": "", "start_line": 313, "end_line": 317, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 314, "end_line": 316, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 321, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 326, "end_line": 341, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 327, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "true_box", "full_name": "", "start_line": 334, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "false_box", "full_name": "", "start_line": 338, "end_line": 340, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 343, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "full_name": "", "start_line": 348, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 352, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 356, "end_line": 358, "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": 360, "end_line": 362, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 365, "end_line": 386, "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": 366, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 367, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 370, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 371, "end_line": 375, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "clone_box", "full_name": "", "start_line": 382, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoolBox", "full_name": "", "start_line": 388, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 389, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 396, "end_line": 398, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 400, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 401, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 408, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 409, "end_line": 411, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 414, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 415, "end_line": 417, "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": 419, "end_line": 421, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 423, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 427, "end_line": 429, "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": 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": 436, "end_line": 453, "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": 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": 443, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 445, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 449, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "VoidBox", "full_name": "", "start_line": 455, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 456, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 462, "end_line": 462, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 466, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 471, "end_line": 518, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 472, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "read", "full_name": "", "start_line": 482, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "write", "full_name": "", "start_line": 490, "end_line": 496, "start_column": 0, "end_column": 0, "depth": 3, "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": "function", "name": "exists", "full_name": "", "start_line": 499, "end_line": 501, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "delete", "full_name": "", "start_line": 504, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "copy", "full_name": "", "start_line": 512, "end_line": 517, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 520, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 521, "end_line": 523, "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": 525, "end_line": 527, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 529, "end_line": 531, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 533, "end_line": 535, "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": 537, "end_line": 539, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 542, "end_line": 563, "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": 543, "end_line": 545, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 547, "end_line": 553, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 548, "end_line": 552, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 555, "end_line": 557, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 559, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FileBox", "full_name": "", "start_line": 565, "end_line": 569, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 566, "end_line": 568, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 573, "end_line": 577, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 579, "end_line": 587, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 580, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 589, "end_line": 609, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 590, "end_line": 592, "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": 594, "end_line": 596, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 598, "end_line": 600, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 602, "end_line": 604, "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": 606, "end_line": 608, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 611, "end_line": 632, "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": 612, "end_line": 614, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 616, "end_line": 622, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 617, "end_line": 621, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 624, "end_line": 626, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 628, "end_line": 630, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 634, "end_line": 638, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 635, "end_line": 637, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 642, "end_line": 647, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 649, "end_line": 690, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_success", "full_name": "", "start_line": 650, "end_line": 657, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new_error", "full_name": "", "start_line": 659, "end_line": 666, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_ok", "full_name": "", "start_line": 671, "end_line": 673, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_value", "full_name": "", "start_line": 676, "end_line": 681, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_error", "full_name": "", "start_line": 684, "end_line": 689, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 692, "end_line": 712, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 693, "end_line": 695, "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": 697, "end_line": 699, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "as_any", "full_name": "", "start_line": 705, "end_line": 707, "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": 709, "end_line": 711, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 714, "end_line": 777, "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": 715, "end_line": 729, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 716, "end_line": 728, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 717, "end_line": 721, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 723, "end_line": 727, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 731, "end_line": 755, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 732, "end_line": 754, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 737, "end_line": 751, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 757, "end_line": 759, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 761, "end_line": 775, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 762, "end_line": 774, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 763, "end_line": 767, "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": 773, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ResultBox", "full_name": "", "start_line": 779, "end_line": 783, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 780, "end_line": 782, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 787, "end_line": 791, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 793, "end_line": 801, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone", "full_name": "", "start_line": 794, "end_line": 800, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 803, "end_line": 853, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 804, "end_line": 810, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_result", "full_name": "", "start_line": 813, "end_line": 818, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 814, "end_line": 814, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 816, "end_line": 816, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get", "full_name": "", "start_line": 821, "end_line": 834, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 823, "end_line": 830, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 824, "end_line": 824, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 825, "end_line": 827, "start_column": 0, "end_column": 0, "depth": 9, "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": "function", "name": "ready", "full_name": "", "start_line": 837, "end_line": 839, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "wait_and_get", "full_name": "", "start_line": 842, "end_line": 852, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 844, "end_line": 846, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 848, "end_line": 848, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 855, "end_line": 886, "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": 856, "end_line": 868, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 857, "end_line": 857, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 858, "end_line": 867, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 859, "end_line": 859, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 860, "end_line": 864, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 870, "end_line": 876, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 871, "end_line": 875, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 878, "end_line": 880, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 882, "end_line": 884, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 888, "end_line": 908, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 889, "end_line": 891, "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": 893, "end_line": 895, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 897, "end_line": 899, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 901, "end_line": 903, "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": 905, "end_line": 907, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FutureBox", "full_name": "", "start_line": 910, "end_line": 914, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 911, "end_line": 913, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 919, "end_line": 923, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 925, "end_line": 975, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 926, "end_line": 932, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 935, "end_line": 974, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 936, "end_line": 936, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 939, "end_line": 944, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 947, "end_line": 952, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 955, "end_line": 960, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 963, "end_line": 968, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 971, "end_line": 971, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 972, "end_line": 972, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 977, "end_line": 985, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 978, "end_line": 984, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 987, "end_line": 1014, "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": 988, "end_line": 991, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 989, "end_line": 989, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 993, "end_line": 1001, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 994, "end_line": 1000, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 995, "end_line": 995, "start_column": 0, "end_column": 0, "depth": 8, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 1003, "end_line": 1005, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 1007, "end_line": 1012, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 1016, "end_line": 1036, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 1017, "end_line": 1019, "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": 1021, "end_line": 1023, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "full_name": "", "start_line": 1025, "end_line": 1027, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "as_any", "full_name": "", "start_line": 1029, "end_line": 1031, "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": 1033, "end_line": 1035, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "AddBox", "full_name": "", "start_line": 1038, "end_line": 1042, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 1039, "end_line": 1041, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 1047, "end_line": 1050, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SubtractBox", "full_name": "", "start_line": 1052, "end_line": 1095, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 1053, "end_line": 1055, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 1057, "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": 1058, "end_line": 1058, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1061, "end_line": 1066, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1069, "end_line": 1074, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1077, "end_line": 1082, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1085, "end_line": 1090, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 1098, "end_line": 1101, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MultiplyBox", "full_name": "", "start_line": 1103, "end_line": 1146, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 1104, "end_line": 1106, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 1108, "end_line": 1145, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1109, "end_line": 1109, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1112, "end_line": 1117, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1120, "end_line": 1125, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1128, "end_line": 1133, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1136, "end_line": 1141, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 1149, "end_line": 1152, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DivideBox", "full_name": "", "start_line": 1154, "end_line": 1213, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 1155, "end_line": 1157, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 1159, "end_line": 1212, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1160, "end_line": 1160, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1163, "end_line": 1172, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1167, "end_line": 1170, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1175, "end_line": 1184, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1179, "end_line": 1182, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1187, "end_line": 1196, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1191, "end_line": 1194, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1199, "end_line": 1208, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1203, "end_line": 1206, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareBox", "full_name": "", "start_line": 1216, "end_line": 1216, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareBox", "full_name": "", "start_line": 1218, "end_line": 1370, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "less", "full_name": "", "start_line": 1219, "end_line": 1255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1220, "end_line": 1220, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1223, "end_line": 1228, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1231, "end_line": 1236, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1239, "end_line": 1244, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1247, "end_line": 1252, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "greater", "full_name": "", "start_line": 1257, "end_line": 1293, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "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": 1266, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1269, "end_line": 1274, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1277, "end_line": 1282, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1285, "end_line": 1290, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "less_equal", "full_name": "", "start_line": 1295, "end_line": 1331, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1296, "end_line": 1296, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1299, "end_line": 1304, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1307, "end_line": 1312, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1315, "end_line": 1320, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1323, "end_line": 1328, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "greater_equal", "full_name": "", "start_line": 1333, "end_line": 1369, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1334, "end_line": 1334, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1337, "end_line": 1342, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1345, "end_line": 1350, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1353, "end_line": 1358, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1361, "end_line": 1366, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1376, "end_line": 1376, "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": 1379, "end_line": 1384, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1380, "end_line": 1380, "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": 1387, "end_line": 1392, "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": "function", "name": "test_bool_box_creation", "full_name": "", "start_line": 1395, "end_line": 1400, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1396, "end_line": 1396, "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": 1403, "end_line": 1410, "start_column": 0, "end_column": 0, "depth": 3, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1405, "end_line": 1405, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1406, "end_line": 1406, "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": 1413, "end_line": 1421, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1414, "end_line": 1414, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1415, "end_line": 1415, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1416, "end_line": 1416, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1418, "end_line": 1418, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1419, "end_line": 1419, "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": 1424, "end_line": 1432, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1425, "end_line": 1425, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1426, "end_line": 1426, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1427, "end_line": 1427, "start_column": 0, "end_column": 0, "depth": 5, "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": "function", "name": "test_box_ids_unique", "full_name": "", "start_line": 1435, "end_line": 1441, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1436, "end_line": 1436, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1437, "end_line": 1437, "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": 1444, "end_line": 1448, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1445, "end_line": 1445, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 327, "max_depth": 10, "node_type_counts": { "file_root": 1, "for_loop": 2, "class": 60, "import": 16, "function": 154, "if_statement": 58, "variable": 36 }, "classes": 60, "functions": 154, "methods": 0, "variables": 36, "control_structures": 60 }, "generated_at": "2025-08-13T11:36:21.756275442Z" }, { "file_info": { "name": "channel_box.rs", "path": "src/channel_box.rs", "size_bytes": 0, "total_lines": 246, "code_lines": 179, "comment_lines": 24, "empty_lines": 43, "code_ratio": 0.7276422764227642, "analyzed_at": "2025-08-13T11:36:21.748404642Z", "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": 135, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 137, "end_line": 157, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 159, "end_line": 163, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "ChannelBox", "parent_class": null, "start_line": 165, "end_line": 173, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Debug", "type": "impl" } }, { "name": "MessageBox", "parent_class": null, "start_line": 177, "end_line": 181, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MessageBox", "parent_class": null, "start_line": 183, "end_line": 191, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MessageBox", "parent_class": null, "start_line": 193, "end_line": 218, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "MessageBox", "parent_class": null, "start_line": 220, "end_line": 240, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "MessageBox", "parent_class": null, "start_line": 242, "end_line": 246, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": "equals", "start_line": 123, "end_line": 132, "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": 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": "fmt", "start_line": 160, "end_line": 162, "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": 166, "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": "new", "start_line": 184, "end_line": 190, "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": { "modifiers": "pub", "type": "function" } }, { "name": "type_name", "start_line": 194, "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": { "type": "function" } }, { "name": "to_string_box", "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": "equals", "start_line": 206, "end_line": 215, "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": 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" } }, { "name": "parent_type_id", "start_line": 225, "end_line": 227, "parameters": [ "&self" ], "is_async": 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": 229, "end_line": 231, "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": 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": "as_any_mut", "start_line": 237, "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" } } ], "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": 31, "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": 135, "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": "equals", "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": "class", "name": "ChannelBox", "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": "ChannelBox", "full_name": "", "start_line": 159, "end_line": 163, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": "ChannelBox", "full_name": "", "start_line": 165, "end_line": 173, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 166, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 177, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 183, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 184, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 193, "end_line": 218, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "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": "to_string_box", "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": "equals", "full_name": "", "start_line": 206, "end_line": 215, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 207, "end_line": 214, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "full_name": "", "start_line": 220, "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": 221, "end_line": 223, "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": 225, "end_line": 227, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_box", "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": "as_any", "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": "as_any_mut", "full_name": "", "start_line": 237, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBox", "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 56, "max_depth": 9, "node_type_counts": { "function": 29, "variable": 4, "file_root": 1, "for_loop": 1, "import": 5, "if_statement": 5, "class": 11 }, "classes": 11, "functions": 29, "methods": 0, "variables": 4, "control_structures": 6 }, "generated_at": "2025-08-13T11:36:21.748434142Z" }, { "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-13T11:36:21.758211282Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "Environment", "parent_class": null, "start_line": 16, "end_line": 31, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "EnvironmentError", "parent_class": null, "start_line": 35, "end_line": 44, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "variable": 32, "class": 5, "import": 7, "file_root": 1, "if_statement": 6, "function": 26, "for_loop": 1 }, "classes": 5, "functions": 26, "methods": 0, "variables": 32, "control_structures": 7 }, "generated_at": "2025-08-13T11:36:21.758236331Z" }, { "file_info": { "name": "exception_box.rs", "path": "src/exception_box.rs", "size_bytes": 0, "total_lines": 116, "code_lines": 87, "comment_lines": 9, "empty_lines": 20, "code_ratio": 0.75, "analyzed_at": "2025-08-13T11:36:21.756193795Z", "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": 74, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 76, "end_line": 96, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "ErrorBox", "parent_class": null, "start_line": 98, "end_line": 102, "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": { "modifiers": "pub", "type": "function" } }, { "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": "box_id", "start_line": 77, "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": "parent_type_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": "fmt_box", "start_line": 85, "end_line": 87, "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": 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" } }, { "name": "as_any_mut", "start_line": 93, "end_line": 95, "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": 99, "end_line": 101, "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": 105, "end_line": 110, "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": { "type": "function", "modifiers": "pub" } }, { "name": "create_exception", "start_line": 113, "end_line": 116, "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": 16, "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": 74, "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": "class", "name": "ErrorBox", "full_name": "", "start_line": 76, "end_line": 96, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "full_name": "", "start_line": 77, "end_line": 79, "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": 81, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt_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": "as_any", "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_mut", "full_name": "", "start_line": 93, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ErrorBox", "full_name": "", "start_line": 98, "end_line": 102, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "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": "is_exception_type", "full_name": "", "start_line": 105, "end_line": 110, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "create_exception", "full_name": "", "start_line": 113, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 28, "max_depth": 6, "node_type_counts": { "variable": 1, "file_root": 1, "function": 16, "if_statement": 2, "import": 3, "class": 5 }, "classes": 5, "functions": 16, "methods": 0, "variables": 1, "control_structures": 2 }, "generated_at": "2025-08-13T11:36:21.756200277Z" }, { "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-13T11:36:21.758729226Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxFinalizer", "parent_class": null, "start_line": 32, "end_line": 37, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "file_root": 1, "variable": 4, "import": 6, "for_loop": 1, "function": 9, "class": 4, "if_statement": 3 }, "classes": 4, "functions": 9, "methods": 0, "variables": 4, "control_structures": 4 }, "generated_at": "2025-08-13T11:36:21.758736123Z" }, { "file_info": { "name": "instance.rs", "path": "src/instance.rs", "size_bytes": 0, "total_lines": 525, "code_lines": 347, "comment_lines": 99, "empty_lines": 79, "code_ratio": 0.660952380952381, "analyzed_at": "2025-08-13T11:36:21.756188172Z", "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": 423, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 425, "end_line": 449, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 451, "end_line": 471, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "InstanceBox", "parent_class": null, "start_line": 473, "end_line": 477, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": 275, "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": "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": "set_field", "start_line": 278, "end_line": 286, "parameters": [ "&self", "field_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", "type": "function" } }, { "name": "set_field_dynamic", "start_line": 289, "end_line": 292, "parameters": [ "&mut self", "field_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": "get_method", "start_line": 295, "end_line": 297, "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": { "type": "function", "modifiers": "pub" } }, { "name": "has_method", "start_line": 300, "end_line": 302, "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": { "type": "function", "modifiers": "pub" } }, { "name": "add_method", "start_line": 305, "end_line": 334, "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": 337, "end_line": 370, "parameters": [ "&self" ], "is_async": false, "is_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": 373, "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": "is_finalized", "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", "modifiers": "pub" } }, { "name": "is_in_finalization", "start_line": 415, "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", "modifiers": "pub" } }, { "name": "is_weak_field", "start_line": 420, "end_line": 422, "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": 426, "end_line": 428, "parameters": [ "&self" ], "is_async": 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": 430, "end_line": 437, "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": 439, "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": "clone_box", "start_line": 443, "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": { "type": "function" } }, { "name": "box_id", "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": "parent_type_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": "fmt_box", "start_line": 460, "end_line": 462, "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": 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": "as_any_mut", "start_line": 468, "end_line": 470, "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": 474, "end_line": 476, "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": 487, "end_line": 496, "parameters": [], "is_async": 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": 499, "end_line": 512, "parameters": [], "is_async": 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": 515, "end_line": 524, "parameters": [], "is_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}", "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": 483, "metadata": {} }, { "type": "rust_use", "module_path": "crate::box_trait::IntegerBox", "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": 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": 423, "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": "", "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": 275, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_field", "full_name": "", "start_line": 278, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 3, "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": "if_statement", "name": "", "full_name": "", "start_line": 280, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_field_dynamic", "full_name": "", "start_line": 289, "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": 290, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_method", "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": "has_method", "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": "add_method", "full_name": "", "start_line": 305, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 3, "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": "if_statement", "name": "", "full_name": "", "start_line": 310, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 312, "end_line": 315, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 317, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fini", "full_name": "", "start_line": 337, "end_line": 370, "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 }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 340, "end_line": 343, "start_column": 0, "end_column": 0, "depth": 6, "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": "if_statement", "name": "", "full_name": "", "start_line": 347, "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": 360, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 362, "end_line": 362, "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": 373, "end_line": 407, "start_column": 0, "end_column": 0, "depth": 3, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 377, "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": 379, "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": 385, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 388, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 390, "end_line": 396, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 392, "end_line": 395, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_finalized", "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": "is_in_finalization", "full_name": "", "start_line": 415, "end_line": 417, "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": 420, "end_line": 422, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 425, "end_line": 449, "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": 426, "end_line": 428, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "equals", "full_name": "", "start_line": 430, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 431, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_name", "full_name": "", "start_line": 439, "end_line": 441, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "clone_box", "full_name": "", "start_line": 443, "end_line": 446, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 451, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_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": "fmt_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": "as_any", "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_mut", "full_name": "", "start_line": 468, "end_line": 470, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "InstanceBox", "full_name": "", "start_line": 473, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 474, "end_line": 476, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 483, "end_line": 483, "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_instance_creation", "full_name": "", "start_line": 487, "end_line": 496, "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": "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": "function", "name": "test_field_access", "full_name": "", "start_line": 499, "end_line": 512, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 500, "end_line": 500, "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": 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": 505, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "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": 510, "end_line": 510, "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": 515, "end_line": 524, "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": "variable", "name": "", "full_name": "", "start_line": 517, "end_line": 517, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 114, "max_depth": 23, "node_type_counts": { "for_loop": 4, "if_statement": 25, "class": 5, "import": 11, "variable": 35, "file_root": 1, "function": 33 }, "classes": 5, "functions": 33, "methods": 0, "variables": 35, "control_structures": 29 }, "generated_at": "2025-08-13T11:36:21.756220914Z" }, { "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-13T11:36:21.762718495Z", "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": { "class": 1, "function": 2, "import": 3, "file_root": 1, "variable": 5, "for_loop": 1, "if_statement": 8 }, "classes": 1, "functions": 2, "methods": 0, "variables": 5, "control_structures": 9 }, "generated_at": "2025-08-13T11:36:21.762728941Z" }, { "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-13T11:36:21.762108585Z", "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": { "type": "function", "modifiers": "pub(super)" } }, { "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": { "if_statement": 12, "for_loop": 3, "import": 2, "function": 3, "variable": 11, "class": 1, "file_root": 1 }, "classes": 1, "functions": 3, "methods": 0, "variables": 11, "control_structures": 15 }, "generated_at": "2025-08-13T11:36:21.762126863Z" }, { "file_info": { "name": "core.rs", "path": "src/interpreter/core.rs", "size_bytes": 0, "total_lines": 776, "code_lines": 556, "comment_lines": 89, "empty_lines": 131, "code_ratio": 0.7164948453608248, "analyzed_at": "2025-08-13T11:36:21.762707676Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "RuntimeError", "parent_class": null, "start_line": 33, "end_line": 83, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "RuntimeError", "parent_class": null, "start_line": 85, "end_line": 149, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SharedState", "parent_class": null, "start_line": 153, "end_line": 168, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "SharedState", "parent_class": null, "start_line": 170, "end_line": 187, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashInterpreter", "parent_class": null, "start_line": 190, "end_line": 211, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashInterpreter", "parent_class": null, "start_line": 213, "end_line": 458, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "NyashInterpreter", "parent_class": null, "start_line": 552, "end_line": 776, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "debug_log", "start_line": 20, "end_line": 29, "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": 87, "end_line": 148, "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": { "type": "function", "modifiers": "pub" } }, { "name": "new", "start_line": 172, "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": { "modifiers": "pub", "type": "function" } }, { "name": "new", "start_line": 215, "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", "modifiers": "pub" } }, { "name": "with_shared", "start_line": 230, "end_line": 240, "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": 243, "end_line": 250, "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": { "type": "function", "modifiers": "pub" } }, { "name": "execute_node", "start_line": 253, "end_line": 320, "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": 325, "end_line": 356, "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": 359, "end_line": 390, "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": 393, "end_line": 395, "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": 398, "end_line": 400, "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": "save_local_vars", "start_line": 403, "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", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 405, "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": "closure" } }, { "name": "restore_local_vars", "start_line": 409, "end_line": 411, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "save_outbox_vars", "start_line": 414, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 416, "end_line": 416, "parameters": [], "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": 420, "end_line": 422, "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": "register_global_function", "start_line": 425, "end_line": 430, "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": 428, "end_line": 428, "parameters": [], "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": 437, "end_line": 452, "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": { "type": "function", "modifiers": "pub(super)" } }, { "name": "get_variable", "start_line": 455, "end_line": 457, "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": "test_simple_execution", "start_line": 468, "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": "test_arithmetic", "start_line": 482, "end_line": 494, "parameters": [], "is_async": 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": 497, "end_line": 514, "parameters": [], "is_async": 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": 517, "end_line": 547, "parameters": [], "is_async": 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": 555, "end_line": 563, "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": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 557, "end_line": 559, "parameters": [], "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": 566, "end_line": 596, "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": 599, "end_line": 665, "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": { "type": "function", "modifiers": "pub" } }, { "name": "closure", "start_line": 603, "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": "closure" } }, { "name": "set_static_box_state", "start_line": 668, "end_line": 679, "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": 670, "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": "closure" } }, { "name": "ensure_statics_namespace", "start_line": 682, "end_line": 709, "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": 684, "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": "closure" } }, { "name": "set_static_instance", "start_line": 712, "end_line": 738, "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": 714, "end_line": 716, "parameters": [], "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": 741, "end_line": 747, "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(super)", "type": "function" } }, { "name": "trigger_weak_reference_invalidation", "start_line": 750, "end_line": 775, "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": { "modifiers": "pub(super)", "type": "function" } } ], "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}", "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": "std::sync::{Arc, Mutex, RwLock}", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::{HashMap, HashSet}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "thiserror::Error", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "super::{ControlFlow, BoxDeclaration, ConstructorContext, StaticBoxDefinition, StaticBoxState}", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs::OpenOptions", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::Write", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} }, { "type": "rust_use", "module_path": "std::any::Any", "imported_names": [], "alias": null, "line_number": 439, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 464, "metadata": {} }, { "type": "rust_use", "module_path": "crate::parser::NyashParser", "imported_names": [], "alias": null, "line_number": 465, "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": 38, "import_count": 13, "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": "function", "name": "debug_log", "full_name": "", "start_line": 20, "end_line": 29, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 21, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 4, "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": 6, "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": "class", "name": "RuntimeError", "full_name": "", "start_line": 33, "end_line": 83, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "RuntimeError", "full_name": "", "start_line": 85, "end_line": 149, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "detailed_message", "full_name": "", "start_line": 87, "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": 91, "end_line": 91, "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": 97, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 103, "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": 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": 119, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 125, "end_line": 130, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 136, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SharedState", "full_name": "", "start_line": 153, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SharedState", "full_name": "", "start_line": 170, "end_line": 187, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 172, "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": 173, "end_line": 177, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 190, "end_line": 211, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 213, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 215, "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": 216, "end_line": 216, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "with_shared", "full_name": "", "start_line": 230, "end_line": 240, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute", "full_name": "", "start_line": 243, "end_line": 250, "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": "execute_node", "full_name": "", "start_line": 253, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 258, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 260, "end_line": 278, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 281, "end_line": 291, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 283, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 293, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 298, "end_line": 310, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_variable", "full_name": "", "start_line": 325, "end_line": 356, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 326, "end_line": 327, "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": 335, "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": 341, "start_column": 0, "end_column": 0, "depth": 6, "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": "if_statement", "name": "", "full_name": "", "start_line": 346, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_variable", "full_name": "", "start_line": 359, "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": 361, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 6, "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": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 375, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 8, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "declare_local_variable", "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": "declare_outbox_variable", "full_name": "", "start_line": 398, "end_line": 400, "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": 403, "end_line": 407, "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": 409, "end_line": 411, "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": 414, "end_line": 418, "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": 420, "end_line": 422, "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": 425, "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": 426, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_truthy", "full_name": "", "start_line": 437, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "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": "if_statement", "name": "", "full_name": "", "start_line": 441, "end_line": 451, "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": 451, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 445, "end_line": 451, "start_column": 0, "end_column": 0, "depth": 10, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_variable", "full_name": "", "start_line": 455, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 464, "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": 465, "end_line": 465, "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": 468, "end_line": 479, "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": 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_arithmetic", "full_name": "", "start_line": 482, "end_line": 494, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 483, "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": 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": 492, "end_line": 492, "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": 497, "end_line": 514, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 498, "end_line": 505, "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": 507, "start_column": 0, "end_column": 0, "depth": 5, "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 }, { "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": "function", "name": "test_box_instance_creation", "full_name": "", "start_line": 517, "end_line": 547, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 518, "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": 536, "end_line": 536, "start_column": 0, "end_column": 0, "depth": 5, "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": "variable", "name": "", "full_name": "", "start_line": 541, "end_line": 541, "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": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 552, "end_line": 776, "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": 555, "end_line": 563, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 556, "end_line": 559, "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": 566, "end_line": 596, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 581, "end_line": 592, "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": 599, "end_line": 665, "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": 611, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 602, "end_line": 605, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 614, "end_line": 616, "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": 622, "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": 635, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 641, "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": 643, "end_line": 648, "start_column": 0, "end_column": 0, "depth": 8, "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": 10, "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": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 653, "end_line": 655, "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": 668, "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": 669, "end_line": 672, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 674, "end_line": 676, "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": 682, "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": 683, "end_line": 686, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 689, "end_line": 692, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 695, "end_line": 699, "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": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_static_instance", "full_name": "", "start_line": 712, "end_line": 738, "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": 716, "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": 722, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 724, "end_line": 728, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 732, "end_line": 732, "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": 741, "end_line": 747, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 742, "end_line": 746, "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": 750, "end_line": 775, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 755, "end_line": 774, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 756, "end_line": 756, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 758, "end_line": 758, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 759, "end_line": 759, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 761, "end_line": 766, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 770, "end_line": 773, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 136, "max_depth": 16, "node_type_counts": { "class": 7, "function": 30, "import": 13, "file_root": 1, "if_statement": 28, "variable": 55, "for_loop": 2 }, "classes": 7, "functions": 30, "methods": 0, "variables": 55, "control_structures": 30 }, "generated_at": "2025-08-13T11:36:21.762759483Z" }, { "file_info": { "name": "expressions.rs", "path": "src/interpreter/expressions.rs", "size_bytes": 0, "total_lines": 1088, "code_lines": 736, "comment_lines": 186, "empty_lines": 166, "code_ratio": 0.6764705882352942, "analyzed_at": "2025-08-13T11:36:21.762301419Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 18, "end_line": 1088, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_expression", "start_line": 20, "end_line": 138, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 29, "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": "closure" } }, { "name": "closure", "start_line": 63, "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": { "type": "closure" } }, { "name": "closure", "start_line": 72, "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": "closure", "start_line": 82, "end_line": 84, "parameters": [], "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": 88, "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": "closure" } }, { "name": "closure", "start_line": 101, "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": "closure" } }, { "name": "closure", "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": "closure" } }, { "name": "execute_binary_op", "start_line": 141, "end_line": 221, "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": { "type": "function", "modifiers": "pub(super)" } }, { "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": "closure", "start_line": 186, "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": "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": "closure", "start_line": 198, "end_line": 198, "parameters": [], "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_unary_op", "start_line": 224, "end_line": 252, "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": 255, "end_line": 635, "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": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 565, "end_line": 567, "parameters": [], "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": 638, "end_line": 706, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_static_field_access", "start_line": 709, "end_line": 747, "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": 716, "end_line": 718, "parameters": [], "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": 751, "end_line": 762, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 757, "end_line": 757, "parameters": [], "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": 765, "end_line": 781, "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": 784, "end_line": 790, "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": 817, "end_line": 946, "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": 822, "end_line": 824, "parameters": [], "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": 949, "end_line": 1018, "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": 960, "end_line": 960, "parameters": [], "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": 961, "end_line": 961, "parameters": [], "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": 1021, "end_line": 1087, "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" } } ], "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}", "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", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::operator_traits::OperatorResolver", "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": 29, "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": 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": "class", "name": "NyashInterpreter", "full_name": "", "start_line": 18, "end_line": 1088, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_expression", "full_name": "", "start_line": 20, "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": 48, "end_line": 48, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 71, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 81, "end_line": 84, "start_column": 0, "end_column": 0, "depth": 10, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 100, "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": 105, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_binary_op", "full_name": "", "start_line": 141, "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": 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": 144, "start_column": 0, "end_column": 0, "depth": 5, "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": 10, "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": "variable", "name": "", "full_name": "", "start_line": 164, "end_line": 164, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 165, "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": 168, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 14, "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": 180, "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": 14, "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": "variable", "name": "", "full_name": "", "start_line": 207, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 212, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 10, "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_unary_op", "full_name": "", "start_line": 224, "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": 226, "end_line": 226, "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": 239, "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": 239, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 243, "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": 247, "end_line": 247, "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": 255, "end_line": 635, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 259, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 261, "end_line": 272, "start_column": 0, "end_column": 0, "depth": 8, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 263, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 264, "end_line": 268, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 274, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 276, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 12, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 279, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "end_line": 289, "start_column": 0, "end_column": 0, "depth": 15, "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": 14, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 300, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 15, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 306, "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": 310, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 18, "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": "if_statement", "name": "", "full_name": "", "start_line": 332, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 337, "end_line": 339, "start_column": 0, "end_column": 0, "depth": 6, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 347, "end_line": 349, "start_column": 0, "end_column": 0, "depth": 6, "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": 357, "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": 362, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "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": 372, "end_line": 374, "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": 379, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 382, "end_line": 384, "start_column": 0, "end_column": 0, "depth": 6, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 392, "end_line": 394, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 397, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 402, "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": 407, "end_line": 409, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 412, "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": 417, "end_line": 419, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 422, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 427, "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": 432, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 437, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 6, "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": 6, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 452, "end_line": 454, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 463, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 469, "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": 475, "end_line": 477, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 481, "end_line": 483, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 486, "end_line": 488, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 500, "end_line": 634, "start_column": 0, "end_column": 0, "depth": 6, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 509, "end_line": 570, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 511, "end_line": 530, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 513, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 514, "end_line": 528, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 516, "end_line": 527, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 517, "end_line": 526, "start_column": 0, "end_column": 0, "depth": 24, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 518, "end_line": 525, "start_column": 0, "end_column": 0, "depth": 27, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 538, "end_line": 562, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 539, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 541, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 17, "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": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 549, "end_line": 557, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 553, "end_line": 556, "start_column": 0, "end_column": 0, "depth": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 573, "end_line": 577, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 580, "end_line": 629, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 583, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 12, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 589, "end_line": 594, "start_column": 0, "end_column": 0, "depth": 12, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 604, "end_line": 606, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 609, "end_line": 609, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 610, "end_line": 619, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 614, "end_line": 618, "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": 638, "end_line": 706, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 642, "end_line": 647, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 644, "end_line": 646, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 651, "end_line": 651, "start_column": 0, "end_column": 0, "depth": 5, "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": "if_statement", "name": "", "full_name": "", "start_line": 656, "end_line": 705, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 658, "end_line": 662, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 665, "end_line": 668, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 671, "end_line": 671, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 672, "end_line": 697, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 673, "end_line": 696, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 677, "end_line": 694, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 687, "end_line": 691, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 688, "end_line": 690, "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": 709, "end_line": 747, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 715, "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": 720, "end_line": 723, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 725, "end_line": 729, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 731, "end_line": 734, "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": 740, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_await", "full_name": "", "start_line": 751, "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": 752, "end_line": 752, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 755, "end_line": 761, "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": 765, "end_line": 781, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "hash_string", "full_name": "", "start_line": 784, "end_line": 790, "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": 785, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 786, "end_line": 788, "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": 817, "end_line": 946, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 821, "end_line": 824, "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": 829, "start_column": 0, "end_column": 0, "depth": 5, "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": 833, "end_line": 833, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 835, "end_line": 838, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 841, "end_line": 842, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 844, "end_line": 849, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 852, "end_line": 859, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 864, "end_line": 864, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 866, "end_line": 870, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 873, "end_line": 877, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 882, "end_line": 884, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 887, "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": 894, "end_line": 894, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 895, "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": 900, "end_line": 945, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 902, "end_line": 907, "start_column": 0, "end_column": 0, "depth": 9, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 917, "end_line": 919, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 922, "end_line": 922, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 923, "end_line": 932, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 927, "end_line": 931, "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": 949, "end_line": 1018, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 955, "end_line": 955, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 956, "end_line": 956, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 957, "end_line": 957, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 959, "end_line": 965, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 968, "end_line": 968, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 969, "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": 974, "end_line": 1017, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 976, "end_line": 981, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 984, "end_line": 984, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 991, "end_line": 993, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Box", "full_name": "", "start_line": 996, "end_line": 996, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 997, "end_line": 1006, "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": 1005, "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": 1021, "end_line": 1087, "start_column": 0, "end_column": 0, "depth": 3, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1035, "end_line": 1035, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1039, "end_line": 1039, "start_column": 0, "end_column": 0, "depth": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1047, "end_line": 1047, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1058, "end_line": 1058, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1062, "end_line": 1062, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1066, "end_line": 1066, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1070, "end_line": 1070, "start_column": 0, "end_column": 0, "depth": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1078, "end_line": 1078, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 188, "max_depth": 27, "node_type_counts": { "variable": 74, "if_statement": 80, "for_loop": 14, "import": 6, "class": 1, "file_root": 1, "function": 12 }, "classes": 1, "functions": 12, "methods": 0, "variables": 74, "control_structures": 94 }, "generated_at": "2025-08-13T11:36:21.762373630Z" }, { "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-13T11:36:21.762735201Z", "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": { "import": 1, "variable": 6, "file_root": 1, "function": 2, "if_statement": 6, "class": 1, "for_loop": 3 }, "classes": 1, "functions": 2, "methods": 0, "variables": 6, "control_structures": 9 }, "generated_at": "2025-08-13T11:36:21.762742321Z" }, { "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-13T11:36:21.762909548Z", "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": { "modifiers": "pub(super)", "type": "function" } }, { "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::box_trait::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": { "class": 1, "variable": 15, "if_statement": 2, "import": 4, "file_root": 1, "function": 3 }, "classes": 1, "functions": 3, "methods": 0, "variables": 15, "control_structures": 2 }, "generated_at": "2025-08-13T11:36:21.762918209Z" }, { "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-13T11:36:21.763532365Z", "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": { "import": 1, "class": 1, "function": 2, "variable": 2, "file_root": 1, "for_loop": 2, "if_statement": 24 }, "classes": 1, "functions": 2, "methods": 0, "variables": 2, "control_structures": 26 }, "generated_at": "2025-08-13T11:36:21.763548752Z" }, { "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-13T11:36:21.767139128Z", "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": { "modifiers": "pub(in crate::interpreter)", "type": "function" } }, { "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": { "modifiers": "pub(in crate::interpreter)", "type": "function" } } ], "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": { "file_root": 1, "class": 1, "if_statement": 59, "function": 4, "variable": 19, "import": 3 }, "classes": 1, "functions": 4, "methods": 0, "variables": 19, "control_structures": 59 }, "generated_at": "2025-08-13T11:36:21.767181923Z" }, { "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-13T11:36:21.767276313Z", "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": { "class": 1, "file_root": 1, "import": 3, "function": 2, "if_statement": 31, "variable": 20 }, "classes": 1, "functions": 2, "methods": 0, "variables": 20, "control_structures": 31 }, "generated_at": "2025-08-13T11:36:21.767302115Z" }, { "file_info": { "name": "data_methods.rs", "path": "src/interpreter/methods/data_methods.rs", "size_bytes": 0, "total_lines": 204, "code_lines": 189, "comment_lines": 11, "empty_lines": 4, "code_ratio": 0.9264705882352942, "analyzed_at": "2025-08-13T11:36:21.767366961Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 14, "end_line": 204, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_buffer_method", "start_line": 16, "end_line": 84, "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": 87, "end_line": 147, "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": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "execute_regex_method", "start_line": 150, "end_line": 203, "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": 204, "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": 84, "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": "function", "name": "execute_json_method", "full_name": "", "start_line": 87, "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": 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": "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": 117, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "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": "variable", "name": "", "full_name": "", "start_line": 132, "end_line": 132, "start_column": 0, "end_column": 0, "depth": 10, "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": "function", "name": "execute_regex_method", "full_name": "", "start_line": 150, "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": 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": "variable", "name": "", "full_name": "", "start_line": 168, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 10, "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": 11, "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": "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": "variable", "name": "", "full_name": "", "start_line": 187, "end_line": 187, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 42, "max_depth": 11, "node_type_counts": { "file_root": 1, "if_statement": 18, "variable": 16, "class": 1, "function": 3, "import": 3 }, "classes": 1, "functions": 3, "methods": 0, "variables": 16, "control_structures": 18 }, "generated_at": "2025-08-13T11:36:21.767379735Z" }, { "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-13T11:36:21.767300255Z", "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": { "variable": 2, "if_statement": 9, "class": 1, "function": 2, "import": 3, "file_root": 1 }, "classes": 1, "functions": 2, "methods": 0, "variables": 2, "control_structures": 9 }, "generated_at": "2025-08-13T11:36:21.767307269Z" }, { "file_info": { "name": "mod.rs", "path": "src/interpreter/methods/mod.rs", "size_bytes": 0, "total_lines": 31, "code_lines": 11, "comment_lines": 18, "empty_lines": 2, "code_ratio": 0.3548387096774194, "analyzed_at": "2025-08-13T11:36:21.767203077Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [], "imports": [ { "type": "rust_use", "module_path": "", "imported_names": [], "alias": null, "line_number": 27, "metadata": {} }, { "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": {} } ], "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": 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": 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": "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 6, "max_depth": 1, "node_type_counts": { "file_root": 1, "import": 5 }, "classes": 0, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.767207253Z" }, { "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-13T11:36:21.770743664Z", "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": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "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": { "type": "function", "modifiers": "pub(in crate::interpreter)" } } ], "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": { "variable": 11, "file_root": 1, "class": 1, "import": 3, "function": 2, "if_statement": 10 }, "classes": 1, "functions": 2, "methods": 0, "variables": 11, "control_structures": 10 }, "generated_at": "2025-08-13T11:36:21.770752676Z" }, { "file_info": { "name": "p2p_methods.rs", "path": "src/interpreter/methods/p2p_methods.rs", "size_bytes": 0, "total_lines": 119, "code_lines": 87, "comment_lines": 16, "empty_lines": 16, "code_ratio": 0.7310924369747899, "analyzed_at": "2025-08-13T11:36:21.767550651Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 13, "end_line": 119, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_intent_box_method", "start_line": 15, "end_line": 46, "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": { "type": "function", "modifiers": "pub(in crate::interpreter)" } }, { "name": "closure", "start_line": 21, "end_line": 23, "parameters": [], "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::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": 2, "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": 119, "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": 46, "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": 23, "start_column": 0, "end_column": 0, "depth": 5, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 11, "max_depth": 10, "node_type_counts": { "function": 1, "class": 1, "file_root": 1, "import": 6, "variable": 2 }, "classes": 1, "functions": 1, "methods": 0, "variables": 2, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.767559163Z" }, { "file_info": { "name": "mod.rs", "path": "src/interpreter/mod.rs", "size_bytes": 0, "total_lines": 111, "code_lines": 81, "comment_lines": 18, "empty_lines": 12, "code_ratio": 0.7297297297297297, "analyzed_at": "2025-08-13T11:36:21.763538501Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ControlFlow", "parent_class": null, "start_line": 49, "end_line": 54, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "ConstructorContext", "parent_class": null, "start_line": 58, "end_line": 61, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BoxDeclaration", "parent_class": null, "start_line": 65, "end_line": 76, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "StaticBoxDefinition", "parent_class": null, "start_line": 80, "end_line": 92, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "StaticBoxState", "parent_class": null, "start_line": 96, "end_line": 100, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "FunctionDeclaration", "parent_class": null, "start_line": 104, "end_line": 108, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } } ], "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, CompareBox, ArrayBox, FileBox, ResultBox, ErrorBox, FutureBox, BoxCore}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "crate::instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 11, "metadata": {} }, { "type": "rust_use", "module_path": "crate::channel_box::ChannelBox", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::math_box::{MathBox, FloatBox, RangeBox}", "imported_names": [], "alias": null, "line_number": 13, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::time_box::{TimeBox, DateTimeBox, TimerBox}", "imported_names": [], "alias": null, "line_number": 14, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::map_box::MapBox", "imported_names": [], "alias": null, "line_number": 15, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::random_box::RandomBox", "imported_names": [], "alias": null, "line_number": 16, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::sound_box::SoundBox", "imported_names": [], "alias": null, "line_number": 17, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::debug_box::DebugBox", "imported_names": [], "alias": null, "line_number": 18, "metadata": {} }, { "type": "rust_use", "module_path": "crate::method_box::MethodBox", "imported_names": [], "alias": null, "line_number": 19, "metadata": {} }, { "type": "rust_use", "module_path": "crate::boxes::web::{WebDisplayBox, WebConsoleBox, WebCanvasBox}", "imported_names": [], "alias": null, "line_number": 23, "metadata": {} }, { "type": "rust_use", "module_path": "crate::finalization", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} }, { "type": "rust_use", "module_path": "crate::exception_box", "imported_names": [], "alias": null, "line_number": 25, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 26, "metadata": {} }, { "type": "rust_use", "module_path": "core::NyashInterpreter", "imported_names": [], "alias": null, "line_number": 44, "metadata": {} }, { "type": "rust_use", "module_path": "", "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": 6, "function_count": 0, "import_count": 17, "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": 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": 44, "end_line": 44, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ControlFlow", "full_name": "", "start_line": 49, "end_line": 54, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstructorContext", "full_name": "", "start_line": 58, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BoxDeclaration", "full_name": "", "start_line": 65, "end_line": 76, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StaticBoxDefinition", "full_name": "", "start_line": 80, "end_line": 92, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "StaticBoxState", "full_name": "", "start_line": 96, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "FunctionDeclaration", "full_name": "", "start_line": 104, "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": 111, "end_line": 111, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 24, "max_depth": 1, "node_type_counts": { "file_root": 1, "class": 6, "import": 17 }, "classes": 6, "functions": 0, "methods": 0, "variables": 0, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.763545165Z" }, { "file_info": { "name": "objects.rs", "path": "src/interpreter/objects.rs", "size_bytes": 0, "total_lines": 1062, "code_lines": 800, "comment_lines": 181, "empty_lines": 81, "code_ratio": 0.7532956685499058, "analyzed_at": "2025-08-13T11:36:21.761720568Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 14, "end_line": 1062, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_new", "start_line": 16, "end_line": 689, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "closure", "start_line": 47, "end_line": 49, "parameters": [], "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": 678, "end_line": 678, "parameters": [], "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": 679, "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": "closure" } }, { "name": "execute_constructor", "start_line": 692, "end_line": 751, "parameters": [ "&mut self", "instance: &Box", "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": 754, "end_line": 802, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "validate_generic_arguments", "start_line": 805, "end_line": 842, "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": 845, "end_line": 871, "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": 874, "end_line": 908, "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": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 890, "end_line": 890, "parameters": [], "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": 894, "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": "closure" } }, { "name": "resolve_inheritance", "start_line": 911, "end_line": 1001, "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": 1004, "end_line": 1050, "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": 1053, "end_line": 1061, "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}", "imported_names": [], "alias": null, "line_number": 10, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::Arc", "imported_names": [], "alias": null, "line_number": 12, "metadata": {} }, { "type": "rust_use", "module_path": "std::collections::HashMap", "imported_names": [], "alias": null, "line_number": 1009, "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": 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": "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": 1062, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_new", "full_name": "", "start_line": 16, "end_line": 689, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 23, "end_line": 27, "start_column": 0, "end_column": 0, "depth": 11, "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": "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": "if_statement", "name": "", "full_name": "", "start_line": 35, "end_line": 39, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 41, "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": 42, "end_line": 42, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 46, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 14, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 56, "end_line": 60, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 62, "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": 63, "end_line": 63, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 67, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 14, "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": 14, "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": 85, "end_line": 85, "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": 97, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "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": 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": "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": "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": "variable", "name": "", "full_name": "", "start_line": 126, "end_line": 126, "start_column": 0, "end_column": 0, "depth": 10, "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": "if_statement", "name": "", "full_name": "", "start_line": 129, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "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": "if_statement", "name": "", "full_name": "", "start_line": 155, "end_line": 159, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "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": 11, "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": 10, "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": "variable", "name": "", "full_name": "", "start_line": 225, "end_line": 225, "start_column": 0, "end_column": 0, "depth": 10, "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": "variable", "name": "", "full_name": "", "start_line": 236, "end_line": 236, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 237, "end_line": 244, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "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": "variable", "name": "", "full_name": "", "start_line": 254, "end_line": 254, "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": "if_statement", "name": "", "full_name": "", "start_line": 267, "end_line": 271, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 275, "end_line": 281, "start_column": 0, "end_column": 0, "depth": 10, "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": 11, "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": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 285, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 11, "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": 295, "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": 295, "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": 303, "end_line": 303, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 308, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 314, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 318, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 13, "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": 15, "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": 11, "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": 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": 341, "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": 341, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 343, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 359, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 11, "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": 372, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 15, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 378, "end_line": 386, "start_column": 0, "end_column": 0, "depth": 16, "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": 18, "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": "variable", "name": "", "full_name": "", "start_line": 402, "end_line": 402, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 408, "end_line": 412, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 413, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 419, "end_line": 423, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 430, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 441, "end_line": 445, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 452, "end_line": 456, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 457, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 462, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 468, "end_line": 479, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 483, "end_line": 487, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 489, "end_line": 500, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 505, "end_line": 509, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 513, "end_line": 519, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 513, "end_line": 519, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 523, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 10, "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": 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": 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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 545, "end_line": 551, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 545, "end_line": 551, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 554, "end_line": 554, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 555, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 555, "end_line": 561, "start_column": 0, "end_column": 0, "depth": 11, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 575, "end_line": 575, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 580, "end_line": 584, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 585, "end_line": 585, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 590, "end_line": 594, "start_column": 0, "end_column": 0, "depth": 11, "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": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 601, "end_line": 608, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 602, "end_line": 602, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 614, "end_line": 618, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 621, "end_line": 626, "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": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 629, "end_line": 631, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 634, "end_line": 638, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 641, "end_line": 648, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 641, "end_line": 648, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 651, "end_line": 651, "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": 658, "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": 666, "end_line": 666, "start_column": 0, "end_column": 0, "depth": 5, "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": "if_statement", "name": "", "full_name": "", "start_line": 677, "end_line": 686, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 682, "end_line": 686, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_constructor", "full_name": "", "start_line": 692, "end_line": 751, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 699, "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": 701, "end_line": 701, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 702, "end_line": 704, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 707, "end_line": 711, "start_column": 0, "end_column": 0, "depth": 9, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 718, "end_line": 720, "start_column": 0, "end_column": 0, "depth": 9, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 733, "end_line": 733, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 734, "end_line": 739, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 735, "end_line": 738, "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": 754, "end_line": 802, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 769, "end_line": 782, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 770, "end_line": 770, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 783, "end_line": 794, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 797, "end_line": 797, "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": 805, "end_line": 842, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 808, "end_line": 819, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 822, "end_line": 830, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 833, "end_line": 839, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 834, "end_line": 838, "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": 845, "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": 847, "end_line": 854, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 858, "end_line": 858, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 864, "end_line": 864, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 866, "end_line": 866, "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": 874, "end_line": 908, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 877, "end_line": 882, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 878, "end_line": 878, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 886, "end_line": 886, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 887, "end_line": 887, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 889, "end_line": 907, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 893, "end_line": 896, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_inheritance", "full_name": "", "start_line": 911, "end_line": 1001, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 913, "end_line": 913, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 914, "end_line": 914, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 917, "end_line": 958, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 919, "end_line": 926, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 931, "end_line": 931, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 933, "end_line": 957, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 937, "end_line": 942, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 938, "end_line": 938, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 945, "end_line": 949, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 952, "end_line": 952, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 964, "end_line": 968, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 965, "end_line": 967, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 970, "end_line": 972, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 975, "end_line": 998, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 976, "end_line": 981, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 977, "end_line": 977, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 983, "end_line": 987, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 990, "end_line": 997, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 991, "end_line": 996, "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": 1004, "end_line": 1050, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1009, "end_line": 1009, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1012, "end_line": 1016, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1019, "end_line": 1019, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1020, "end_line": 1022, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1025, "end_line": 1025, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1036, "end_line": 1036, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1037, "end_line": 1043, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1039, "end_line": 1042, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1040, "end_line": 1040, "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": 1053, "end_line": 1061, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 207, "max_depth": 18, "node_type_counts": { "class": 1, "if_statement": 70, "function": 9, "for_loop": 11, "file_root": 1, "import": 4, "variable": 111 }, "classes": 1, "functions": 9, "methods": 0, "variables": 111, "control_structures": 81 }, "generated_at": "2025-08-13T11:36:21.761790186Z" }, { "file_info": { "name": "statements.rs", "path": "src/interpreter/statements.rs", "size_bytes": 0, "total_lines": 488, "code_lines": 361, "comment_lines": 64, "empty_lines": 63, "code_ratio": 0.7397540983606558, "analyzed_at": "2025-08-13T11:36:21.763591073Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashInterpreter", "parent_class": null, "start_line": 12, "end_line": 488, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "execute_statement", "start_line": 14, "end_line": 170, "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": { "type": "function", "modifiers": "pub(super)" } }, { "name": "execute_if", "start_line": 173, "end_line": 197, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_loop", "start_line": 200, "end_line": 238, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "execute_assignment", "start_line": 241, "end_line": 387, "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": { "type": "function", "modifiers": "pub(super)" } }, { "name": "closure", "start_line": 293, "end_line": 293, "parameters": [], "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": 308, "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": "closure" } }, { "name": "closure", "start_line": 320, "end_line": 322, "parameters": [], "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": 341, "end_line": 341, "parameters": [], "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": 353, "end_line": 355, "parameters": [], "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": 374, "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": "closure" } }, { "name": "execute_try_catch", "start_line": 390, "end_line": 471, "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": 474, "end_line": 487, "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)" } } ], "imports": [ { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 9, "metadata": {} }, { "type": "rust_use", "module_path": "std::sync::{Arc, Mutex}", "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": 12, "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": 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": 488, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_statement", "full_name": "", "start_line": 14, "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": 21, "end_line": 21, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 35, "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": 35, "end_line": 39, "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": 81, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 86, "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": 88, "end_line": 114, "start_column": 0, "end_column": 0, "depth": 14, "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": 16, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 93, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 16, "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": 18, "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": "for_loop", "name": "", "full_name": "", "start_line": 139, "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": 140, "end_line": 147, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 142, "end_line": 142, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 154, "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": 155, "end_line": 162, "start_column": 0, "end_column": 0, "depth": 14, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_if", "full_name": "", "start_line": 173, "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": 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": 178, "end_line": 178, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 180, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 181, "end_line": 186, "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": 185, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 187, "end_line": 194, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 188, "end_line": 193, "start_column": 0, "end_column": 0, "depth": 11, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_loop", "full_name": "", "start_line": 200, "end_line": 238, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 201, "end_line": 235, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 204, "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": 205, "end_line": 207, "start_column": 0, "end_column": 0, "depth": 12, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 216, "end_line": 234, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_assignment", "full_name": "", "start_line": 241, "end_line": 387, "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": "if_statement", "name": "", "full_name": "", "start_line": 250, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 11, "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": 14, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 260, "end_line": 265, "start_column": 0, "end_column": 0, "depth": 17, "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": 277, "end_line": 314, "start_column": 0, "end_column": 0, "depth": 11, "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": 14, "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": "if_statement", "name": "", "full_name": "", "start_line": 287, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 14, "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": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 300, "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": 301, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 17, "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": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 319, "end_line": 322, "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": 347, "start_column": 0, "end_column": 0, "depth": 11, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 333, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 334, "end_line": 337, "start_column": 0, "end_column": 0, "depth": 17, "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": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 352, "end_line": 355, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 357, "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": 359, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 366, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 17, "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": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_try_catch", "full_name": "", "start_line": 390, "end_line": 471, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Option>", "full_name": "", "start_line": 392, "end_line": 392, "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": "for_loop", "name": "", "full_name": "", "start_line": 396, "end_line": 417, "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": 408, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 401, "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": 420, "end_line": 450, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 421, "end_line": 449, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 423, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 424, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 430, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 435, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 437, "end_line": 439, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 443, "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": 453, "end_line": 460, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 454, "end_line": 459, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 456, "end_line": 458, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 463, "end_line": 465, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_throw", "full_name": "", "start_line": 474, "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": 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": 478, "end_line": 483, "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": 483, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 87, "max_depth": 19, "node_type_counts": { "variable": 25, "class": 1, "for_loop": 10, "import": 2, "file_root": 1, "function": 6, "if_statement": 42 }, "classes": 1, "functions": 6, "methods": 0, "variables": 25, "control_structures": 52 }, "generated_at": "2025-08-13T11:36:21.763624942Z" }, { "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-13T11:36:21.762348077Z", "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": { "modifiers": "pub(super)", "type": "function" } }, { "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": { "modifiers": "pub(super)", "type": "function" } }, { "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": { "if_statement": 37, "for_loop": 4, "file_root": 1, "function": 4, "import": 3, "class": 1, "variable": 11 }, "classes": 1, "functions": 4, "methods": 0, "variables": 11, "control_structures": 41 }, "generated_at": "2025-08-13T11:36:21.762373646Z" }, { "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-13T11:36:21.762903533Z", "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, "if_statement": 53, "for_loop": 3, "function": 3, "file_root": 1, "import": 2 }, "classes": 1, "functions": 3, "methods": 0, "variables": 37, "control_structures": 56 }, "generated_at": "2025-08-13T11:36:21.762931238Z" }, { "file_info": { "name": "lib.rs", "path": "src/lib.rs", "size_bytes": 0, "total_lines": 202, "code_lines": 132, "comment_lines": 39, "empty_lines": 31, "code_ratio": 0.6534653465346535, "analyzed_at": "2025-08-13T11:36:21.762928262Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashWasm", "parent_class": null, "start_line": 77, "end_line": 79, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "NyashWasm", "parent_class": null, "start_line": 83, "end_line": 202, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 86, "end_line": 98, "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": "eval", "start_line": 102, "end_line": 155, "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": 111, "end_line": 111, "parameters": [], "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": 112, "end_line": 112, "parameters": [], "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": 152, "end_line": 152, "parameters": [], "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": 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": "eval_single_block", "start_line": 158, "end_line": 178, "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": 181, "end_line": 195, "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": 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": "closure", "start_line": 191, "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": { "type": "closure" } }, { "name": "version", "start_line": 199, "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": { "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, AddBox}", "imported_names": [], "alias": null, "line_number": 48, "metadata": {} }, { "type": "rust_use", "module_path": "environment::{Environment, PythonCompatEnvironment}", "imported_names": [], "alias": null, "line_number": 49, "metadata": {} }, { "type": "rust_use", "module_path": "tokenizer::{NyashTokenizer, TokenType, Token}", "imported_names": [], "alias": null, "line_number": 50, "metadata": {} }, { "type": "rust_use", "module_path": "type_box::{TypeBox, TypeRegistry, MethodSignature}", "imported_names": [], "alias": null, "line_number": 51, "metadata": {} }, { "type": "rust_use", "module_path": "ast::{ASTNode, BinaryOperator, LiteralValue}", "imported_names": [], "alias": null, "line_number": 52, "metadata": {} }, { "type": "rust_use", "module_path": "parser::{NyashParser, ParseError}", "imported_names": [], "alias": null, "line_number": 53, "metadata": {} }, { "type": "rust_use", "module_path": "interpreter::{NyashInterpreter, RuntimeError}", "imported_names": [], "alias": null, "line_number": 54, "metadata": {} }, { "type": "rust_use", "module_path": "instance::InstanceBox", "imported_names": [], "alias": null, "line_number": 55, "metadata": {} }, { "type": "rust_use", "module_path": "channel_box::{ChannelBox, MessageBox}", "imported_names": [], "alias": null, "line_number": 56, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::math_box::{MathBox, FloatBox, RangeBox}", "imported_names": [], "alias": null, "line_number": 57, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::time_box::{TimeBox, DateTimeBox, TimerBox}", "imported_names": [], "alias": null, "line_number": 58, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::map_box::MapBox", "imported_names": [], "alias": null, "line_number": 59, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::random_box::RandomBox", "imported_names": [], "alias": null, "line_number": 60, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::sound_box::SoundBox", "imported_names": [], "alias": null, "line_number": 61, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::debug_box::DebugBox", "imported_names": [], "alias": null, "line_number": 62, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::console_box::ConsoleBox", "imported_names": [], "alias": null, "line_number": 63, "metadata": {} }, { "type": "rust_use", "module_path": "method_box::{MethodBox, BoxType, FunctionDefinition, EphemeralInstance}", "imported_names": [], "alias": null, "line_number": 64, "metadata": {} }, { "type": "rust_use", "module_path": "boxes::null_box::{NullBox, null}", "imported_names": [], "alias": null, "line_number": 65, "metadata": {} }, { "type": "rust_use", "module_path": "value::NyashValue", "imported_names": [], "alias": null, "line_number": 68, "metadata": {} }, { "type": "rust_use", "module_path": "wasm_test::wasm_test::test_direct_canvas_draw", "imported_names": [], "alias": null, "line_number": 72, "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": 21, "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": 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": "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": "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": 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": 72, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashWasm", "full_name": "", "start_line": 77, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashWasm", "full_name": "", "start_line": 83, "end_line": 202, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 86, "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": 91, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "eval", "full_name": "", "start_line": 102, "end_line": 155, "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": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 107, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<&str>", "full_name": "", "start_line": 110, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 5, "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": 6, "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": "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": "for_loop", "name": "", "full_name": "", "start_line": 124, "end_line": 140, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 130, "end_line": 139, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 132, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 135, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 12, "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": 6, "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": "if_statement", "name": "", "full_name": "", "start_line": 145, "end_line": 147, "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": 158, "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": 160, "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": 169, "end_line": 169, "start_column": 0, "end_column": 0, "depth": 10, "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": "function", "name": "is_complete_statement", "full_name": "", "start_line": 181, "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": 182, "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": 185, "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": 190, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 5, "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": "function", "name": "version", "full_name": "", "start_line": 199, "end_line": 201, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 51, "max_depth": 12, "node_type_counts": { "class": 2, "file_root": 1, "if_statement": 9, "for_loop": 1, "variable": 12, "function": 5, "import": 21 }, "classes": 2, "functions": 5, "methods": 0, "variables": 12, "control_structures": 10 }, "generated_at": "2025-08-13T11:36:21.762940537Z" }, { "file_info": { "name": "main.rs", "path": "src/main.rs", "size_bytes": 0, "total_lines": 1253, "code_lines": 977, "comment_lines": 100, "empty_lines": 176, "code_ratio": 0.7797286512370312, "analyzed_at": "2025-08-13T11:36:21.763066548Z", "metadata": {} }, "language": "rust", "classes": [], "functions": [ { "name": "main", "start_line": 43, "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": "parse_debug_fuel", "start_line": 149, "end_line": 155, "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": "execute_nyash_file", "start_line": 157, "end_line": 217, "parameters": [ "filename: &str", "debug_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" } }, { "name": "demo_basic_boxes", "start_line": 219, "end_line": 239, "parameters": [], "is_async": 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": 241, "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": "demo_box_collections", "start_line": 269, "end_line": 297, "parameters": [], "is_async": 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": 299, "end_line": 388, "parameters": [], "is_async": 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": 390, "end_line": 520, "parameters": [], "is_async": 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": 436, "end_line": 436, "parameters": [], "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": "demo_parser_system", "start_line": 522, "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": "count_method_calls", "start_line": 682, "end_line": 720, "parameters": [ "node: &ASTNode", "count: &mut 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" } }, { "name": "demo_interpreter_system", "start_line": 722, "end_line": 1100, "parameters": [], "is_async": 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": 1103, "end_line": 1186, "parameters": [ "filename: &str", "dump_mir: bool", "verify_mir: bool", "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": { "type": "function" } }, { "name": "execute_vm_mode", "start_line": 1189, "end_line": 1239, "parameters": [ "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": "test_main_functionality", "start_line": 1246, "end_line": 1252, "parameters": [], "is_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": "box_trait::{NyashBox, StringBox, IntegerBox, BoolBox, VoidBox, AddBox, BoxCore}", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} }, { "type": "rust_use", "module_path": "environment::{Environment, PythonCompatEnvironment}", "imported_names": [], "alias": null, "line_number": 25, "metadata": {} }, { "type": "rust_use", "module_path": "tokenizer::{NyashTokenizer, TokenType}", "imported_names": [], "alias": null, "line_number": 26, "metadata": {} }, { "type": "rust_use", "module_path": "ast::ASTNode", "imported_names": [], "alias": null, "line_number": 27, "metadata": {} }, { "type": "rust_use", "module_path": "parser::NyashParser", "imported_names": [], "alias": null, "line_number": 28, "metadata": {} }, { "type": "rust_use", "module_path": "interpreter::NyashInterpreter", "imported_names": [], "alias": null, "line_number": 29, "metadata": {} }, { "type": "rust_use", "module_path": "mir::{MirCompiler, MirPrinter}", "imported_names": [], "alias": null, "line_number": 33, "metadata": {} }, { "type": "rust_use", "module_path": "backend::VM", "imported_names": [], "alias": null, "line_number": 37, "metadata": {} }, { "type": "rust_use", "module_path": "std::env", "imported_names": [], "alias": null, "line_number": 38, "metadata": {} }, { "type": "rust_use", "module_path": "std::fs", "imported_names": [], "alias": null, "line_number": 39, "metadata": {} }, { "type": "rust_use", "module_path": "std::process", "imported_names": [], "alias": null, "line_number": 40, "metadata": {} }, { "type": "rust_use", "module_path": "clap::{Arg, Command}", "imported_names": [], "alias": null, "line_number": 41, "metadata": {} }, { "type": "rust_use", "module_path": "std::io::Write", "imported_names": [], "alias": null, "line_number": 196, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 1243, "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": 15, "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": 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": "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": 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": "function", "name": "main", "full_name": "", "start_line": 43, "end_line": 146, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 45, "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": 90, "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": 93, "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": 94, "end_line": 94, "start_column": 0, "end_column": 0, "depth": 3, "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": 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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 98, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 100, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 103, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 9, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_debug_fuel", "full_name": "", "start_line": 149, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 1, "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": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_nyash_file", "full_name": "", "start_line": 157, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 159, "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": 175, "end_line": 184, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 191, "end_line": 199, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "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": "variable", "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": "variable", "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": "variable", "name": "", "full_name": "", "start_line": 204, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_basic_boxes", "full_name": "", "start_line": 219, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 1, "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": 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": 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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_box_operations", "full_name": "", "start_line": 241, "end_line": 267, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 245, "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": 246, "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": 247, "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": 248, "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": 253, "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": 254, "end_line": 254, "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": 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": 3, "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": 3, "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": 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": 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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_box_collections", "full_name": "", "start_line": 269, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec>", "full_name": "", "start_line": 273, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 281, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 4, "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": 3, "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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_environment_system", "full_name": "", "start_line": 299, "end_line": 388, "start_column": 0, "end_column": 0, "depth": 1, "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": 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": 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": 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": 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": 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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 359, "end_line": 361, "start_column": 0, "end_column": 0, "depth": 4, "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": 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": 3, "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": 3, "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": 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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 385, "end_line": 387, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_tokenizer_system", "full_name": "", "start_line": 390, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 1, "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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 402, "end_line": 408, "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": 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": 432, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 435, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 443, "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": 448, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 449, "end_line": 469, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 450, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 472, "end_line": 474, "start_column": 0, "end_column": 0, "depth": 9, "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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 486, "end_line": 490, "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": 489, "start_column": 0, "end_column": 0, "depth": 12, "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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 502, "end_line": 506, "start_column": 0, "end_column": 0, "depth": 9, "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": 12, "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": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_parser_system", "full_name": "", "start_line": 522, "end_line": 679, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 527, "end_line": 535, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 542, "end_line": 547, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 544, "end_line": 546, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 554, "end_line": 559, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 565, "end_line": 570, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 567, "end_line": 569, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 577, "end_line": 580, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 586, "end_line": 592, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 587, "end_line": 591, "start_column": 0, "end_column": 0, "depth": 12, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 599, "end_line": 610, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 616, "end_line": 620, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 617, "end_line": 619, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 627, "end_line": 642, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 648, "end_line": 675, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 652, "end_line": 652, "start_column": 0, "end_column": 0, "depth": 11, "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": 11, "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": 11, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 657, "end_line": 667, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "count_method_calls", "full_name": "", "start_line": 682, "end_line": 720, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 688, "end_line": 690, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 704, "end_line": 706, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 709, "end_line": 711, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 714, "end_line": 716, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "demo_interpreter_system", "full_name": "", "start_line": 722, "end_line": 1100, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 727, "end_line": 732, "start_column": 0, "end_column": 0, "depth": 3, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 750, "end_line": 755, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 759, "end_line": 759, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 772, "end_line": 782, "start_column": 0, "end_column": 0, "depth": 3, "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": 799, "end_line": 806, "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": 810, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 823, "end_line": 834, "start_column": 0, "end_column": 0, "depth": 3, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 851, "end_line": 879, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 883, "end_line": 883, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 896, "end_line": 902, "start_column": 0, "end_column": 0, "depth": 3, "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": 8, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 944, "end_line": 964, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 968, "end_line": 968, "start_column": 0, "end_column": 0, "depth": 13, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1006, "end_line": 1016, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1020, "end_line": 1020, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1039, "end_line": 1039, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1060, "end_line": 1086, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1090, "end_line": 1090, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_mir_mode", "full_name": "", "start_line": 1103, "end_line": 1186, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1105, "end_line": 1111, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1114, "end_line": 1120, "start_column": 0, "end_column": 0, "depth": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1124, "end_line": 1130, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1133, "end_line": 1150, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1136, "end_line": 1138, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1142, "end_line": 1144, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1145, "end_line": 1147, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1153, "end_line": 1162, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1154, "end_line": 1158, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1154, "end_line": 1158, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1160, "end_line": 1160, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1165, "end_line": 1185, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1166, "end_line": 1166, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1174, "end_line": 1184, "start_column": 0, "end_column": 0, "depth": 7, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1175, "end_line": 1183, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1176, "end_line": 1176, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "execute_vm_mode", "full_name": "", "start_line": 1189, "end_line": 1239, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1191, "end_line": 1197, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1200, "end_line": 1206, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1209, "end_line": 1209, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1210, "end_line": 1216, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1219, "end_line": 1225, "start_column": 0, "end_column": 0, "depth": 4, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1221, "end_line": 1223, "start_column": 0, "end_column": 0, "depth": 7, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 1243, "end_line": 1243, "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": 1246, "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": 1249, "end_line": 1249, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 174, "max_depth": 15, "node_type_counts": { "variable": 101, "function": 14, "import": 14, "file_root": 1, "if_statement": 24, "for_loop": 20 }, "classes": 0, "functions": 14, "methods": 0, "variables": 101, "control_structures": 44 }, "generated_at": "2025-08-13T11:36:21.763143658Z" }, { "file_info": { "name": "message_bus.rs", "path": "src/messaging/message_bus.rs", "size_bytes": 0, "total_lines": 141, "code_lines": 87, "comment_lines": 35, "empty_lines": 19, "code_ratio": 0.6170212765957447, "analyzed_at": "2025-08-13T11:36:21.770933102Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BusEndpoint", "parent_class": null, "start_line": 31, "end_line": 34, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "BusEndpoint", "parent_class": null, "start_line": 36, "end_line": 64, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "SendError", "parent_class": null, "start_line": 68, "end_line": 73, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 76, "end_line": 79, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 81, "end_line": 87, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Debug" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 92, "end_line": 129, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MessageBusData", "parent_class": null, "start_line": 136, "end_line": 141, "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": { "type": "function", "modifiers": "pub" } }, { "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": 63, "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": { "modifiers": "pub", "type": "function" } }, { "name": "fmt", "start_line": 82, "end_line": 86, "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": 94, "end_line": 98, "parameters": [], "is_async": 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": 101, "end_line": 103, "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": { "modifiers": "pub", "type": "function" } }, { "name": "unregister_node", "start_line": 106, "end_line": 108, "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": 111, "end_line": 113, "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": { "type": "function", "modifiers": "pub" } }, { "name": "route", "start_line": 116, "end_line": 123, "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": 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", "modifiers": "pub" } }, { "name": "closure", "start_line": 132, "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": "global", "start_line": 138, "end_line": 140, "parameters": [], "is_async": false, "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": 64, "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": 63, "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": "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": "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": "for_loop", "name": "", "full_name": "", "start_line": 59, "end_line": 61, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "SendError", "full_name": "", "start_line": 68, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "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": "MessageBusData", "full_name": "", "start_line": 81, "end_line": 87, "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": 86, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "full_name": "", "start_line": 92, "end_line": 129, "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": 98, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_node", "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": "unregister_node", "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": "node_exists", "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": "route", "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": "get_nodes", "full_name": "", "start_line": 126, "end_line": 128, "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": 132, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MessageBusData", "full_name": "", "start_line": 136, "end_line": 141, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "global", "full_name": "", "start_line": 138, "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": 31, "max_depth": 9, "node_type_counts": { "if_statement": 2, "for_loop": 1, "file_root": 1, "class": 7, "import": 4, "variable": 5, "function": 11 }, "classes": 7, "functions": 11, "methods": 0, "variables": 5, "control_structures": 3 }, "generated_at": "2025-08-13T11:36:21.770942688Z" }, { "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-13T11:36:21.768286715Z", "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-13T11:36:21.768287757Z" }, { "file_info": { "name": "method_box.rs", "path": "src/method_box.rs", "size_bytes": 0, "total_lines": 217, "code_lines": 146, "comment_lines": 35, "empty_lines": 36, "code_ratio": 0.6728110599078341, "analyzed_at": "2025-08-13T11:36:21.763465058Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "BoxType", "parent_class": null, "start_line": 17, "end_line": 26, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "FunctionDefinition", "parent_class": null, "start_line": 30, "end_line": 35, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MethodBox", "parent_class": null, "start_line": 39, "end_line": 51, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": 123, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "NyashBox", "type": "impl" } }, { "name": "MethodBox", "parent_class": null, "start_line": 125, "end_line": 145, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "BoxCore" } }, { "name": "MethodBox", "parent_class": null, "start_line": 147, "end_line": 151, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Display" } }, { "name": "EphemeralInstance", "parent_class": null, "start_line": 155, "end_line": 161, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "EphemeralInstance", "parent_class": null, "start_line": 165, "end_line": 212, "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": "box_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": "parent_type_id", "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": { "type": "function" } }, { "name": "fmt_box", "start_line": 134, "end_line": 136, "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": 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": "as_any_mut", "start_line": 142, "end_line": 144, "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": 148, "end_line": 150, "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": 167, "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": { "modifiers": "pub", "type": "function" } }, { "name": "from_instance", "start_line": 175, "end_line": 180, "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": { "modifiers": "pub", "type": "function" } }, { "name": "set_local", "start_line": 183, "end_line": 185, "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": 188, "end_line": 190, "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": 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": "resolve_variable", "start_line": 193, "end_line": 211, "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": 215, "end_line": 217, "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": { "modifiers": "pub", "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::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": 163, "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": 21, "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": 123, "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": "class", "name": "MethodBox", "full_name": "", "start_line": 125, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_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": "parent_type_id", "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": "fmt_box", "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", "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": "as_any_mut", "full_name": "", "start_line": 142, "end_line": 144, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MethodBox", "full_name": "", "start_line": 147, "end_line": 151, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 148, "end_line": 150, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EphemeralInstance", "full_name": "", "start_line": 155, "end_line": 161, "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": "class", "name": "EphemeralInstance", "full_name": "", "start_line": 165, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 167, "end_line": 172, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_instance", "full_name": "", "start_line": 175, "end_line": 180, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "set_local", "full_name": "", "start_line": 183, "end_line": 185, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_local", "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": "resolve_variable", "full_name": "", "start_line": 193, "end_line": 211, "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": 197, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 200, "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": 202, "end_line": 206, "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": 205, "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": 215, "end_line": 217, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 47, "max_depth": 13, "node_type_counts": { "import": 7, "variable": 4, "if_statement": 7, "function": 19, "file_root": 1, "class": 9 }, "classes": 9, "functions": 19, "methods": 0, "variables": 4, "control_structures": 7 }, "generated_at": "2025-08-13T11:36:21.763477832Z" }, { "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-13T11:36:21.767108193Z", "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": { "implementing_trait": "fmt::Display", "type": "impl" } }, { "name": "BasicBlock", "parent_class": null, "start_line": 45, "end_line": 66, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": { "implementing_trait": "fmt::Display", "type": "impl" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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, "if_statement": 8, "class": 9, "import": 5, "function": 36, "variable": 33, "for_loop": 1 }, "classes": 9, "functions": 36, "methods": 0, "variables": 33, "control_structures": 9 }, "generated_at": "2025-08-13T11:36:21.767132178Z" }, { "file_info": { "name": "effect.rs", "path": "src/mir/effect.rs", "size_bytes": 0, "total_lines": 295, "code_lines": 198, "comment_lines": 44, "empty_lines": 53, "code_ratio": 0.6711864406779661, "analyzed_at": "2025-08-13T11:36:21.768136066Z", "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": 42, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "EffectMask", "parent_class": null, "start_line": 44, "end_line": 165, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "EffectMask", "parent_class": null, "start_line": 167, "end_line": 171, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Default" } }, { "name": "EffectMask", "parent_class": null, "start_line": 173, "end_line": 182, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "fmt::Display", "type": "impl" } }, { "name": "EffectMask", "parent_class": null, "start_line": 184, "end_line": 190, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::ops::BitOr" } }, { "name": "EffectMask", "parent_class": null, "start_line": 192, "end_line": 196, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::ops::BitOrAssign" } }, { "name": "EffectMask", "parent_class": null, "start_line": 198, "end_line": 204, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::ops::BitAnd", "type": "impl" } }, { "name": "EffectMask", "parent_class": null, "start_line": 206, "end_line": 210, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "std::ops::BitAndAssign", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 67, "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": { "modifiers": "pub", "type": "function" } }, { "name": "from_bits", "start_line": 72, "end_line": 74, "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": 77, "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": "add", "start_line": 82, "end_line": 84, "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": "remove", "start_line": 87, "end_line": 89, "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", "start_line": 92, "end_line": 94, "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": 97, "end_line": 99, "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": 102, "end_line": 104, "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": "union", "start_line": 107, "end_line": 109, "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": "intersection", "start_line": 112, "end_line": 114, "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": 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", "modifiers": "pub" } }, { "name": "is_read_only", "start_line": 122, "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": "is_parallel_safe", "start_line": 130, "end_line": 134, "parameters": [ "self" ], "is_async": false, "is_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": 137, "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": { "type": "function", "modifiers": "pub" } }, { "name": "effect_names", "start_line": 142, "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", "modifiers": "pub" } }, { "name": "default", "start_line": 168, "end_line": 170, "parameters": [], "is_async": 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": 174, "end_line": 181, "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": 187, "end_line": 189, "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": 193, "end_line": 195, "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": 201, "end_line": 203, "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": 207, "end_line": 209, "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": 217, "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_effect_combination", "start_line": 231, "end_line": 246, "parameters": [], "is_async": 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": 249, "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_parallel_safety", "start_line": 262, "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" } }, { "name": "test_effect_names", "start_line": 275, "end_line": 283, "parameters": [], "is_async": 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": 286, "end_line": 294, "parameters": [], "is_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": 214, "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": 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": 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": 42, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 44, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "PURE", "full_name": "", "start_line": 46, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "READ", "full_name": "", "start_line": 49, "end_line": 49, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "WRITE", "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": "IO", "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": "P2P", "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": "PANIC", "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": "ALL", "full_name": "", "start_line": 64, "end_line": 64, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 67, "end_line": 69, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "from_bits", "full_name": "", "start_line": 72, "end_line": 74, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bits", "full_name": "", "start_line": 77, "end_line": 79, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "add", "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": "remove", "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": "contains", "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": "contains_any", "full_name": "", "start_line": 97, "end_line": 99, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "contains_all", "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": "union", "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": "intersection", "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_pure", "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": "is_read_only", "full_name": "", "start_line": 122, "end_line": 127, "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": 130, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_moveable", "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": "effect_names", "full_name": "", "start_line": 142, "end_line": 164, "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": 145, "end_line": 148, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 150, "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": 151, "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": 152, "end_line": 152, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 153, "end_line": 153, "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": 154, "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": 155, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 156, "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": 157, "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": 158, "end_line": 158, "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": 159, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 160, "end_line": 160, "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": 161, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 167, "end_line": 171, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 168, "end_line": 170, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 173, "end_line": 182, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 174, "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": 175, "end_line": 175, "start_column": 0, "end_column": 0, "depth": 5, "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": "EffectMask", "full_name": "", "start_line": 184, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitor", "full_name": "", "start_line": 187, "end_line": 189, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "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": "bitor_assign", "full_name": "", "start_line": 193, "end_line": 195, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 198, "end_line": 204, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitand", "full_name": "", "start_line": 201, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "EffectMask", "full_name": "", "start_line": 206, "end_line": 210, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "bitand_assign", "full_name": "", "start_line": 207, "end_line": 209, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 214, "end_line": 214, "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": 217, "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": 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": 220, "end_line": 220, "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": 231, "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": 232, "end_line": 232, "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": 249, "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": 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": "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 }, { "type": "function", "name": "test_parallel_safety", "full_name": "", "start_line": 262, "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": 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": "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_effect_names", "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": 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": 279, "end_line": 279, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_effect_display", "full_name": "", "start_line": 286, "end_line": 294, "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": 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": 291, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 79, "max_depth": 6, "node_type_counts": { "class": 9, "file_root": 1, "variable": 26, "if_statement": 14, "function": 27, "import": 2 }, "classes": 9, "functions": 27, "methods": 0, "variables": 26, "control_structures": 14 }, "generated_at": "2025-08-13T11:36:21.768151900Z" }, { "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-13T11:36:21.767149909Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "FunctionSignature", "parent_class": null, "start_line": 13, "end_line": 25, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MirFunction", "parent_class": null, "start_line": 29, "end_line": 50, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": { "type": "struct", "modifiers": "pub" } }, { "name": "MirModule", "parent_class": null, "start_line": 256, "end_line": 268, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "ModuleMetadata", "parent_class": null, "start_line": 272, "end_line": 284, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "file_root": 1, "class": 11, "function": 27, "import": 5, "variable": 30, "for_loop": 12, "if_statement": 15 }, "classes": 11, "functions": 27, "methods": 0, "variables": 30, "control_structures": 27 }, "generated_at": "2025-08-13T11:36:21.767179229Z" }, { "file_info": { "name": "instruction.rs", "path": "src/mir/instruction.rs", "size_bytes": 0, "total_lines": 696, "code_lines": 486, "comment_lines": 112, "empty_lines": 98, "code_ratio": 0.6982758620689655, "analyzed_at": "2025-08-13T11:36:21.767056576Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MirInstruction", "parent_class": null, "start_line": 13, "end_line": 253, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "ConstValue", "parent_class": null, "start_line": 257, "end_line": 264, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "BinaryOp", "parent_class": null, "start_line": 268, "end_line": 277, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "UnaryOp", "parent_class": null, "start_line": 281, "end_line": 290, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "CompareOp", "parent_class": null, "start_line": 294, "end_line": 296, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "MirType", "parent_class": null, "start_line": 300, "end_line": 309, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "MirInstruction", "parent_class": null, "start_line": 311, "end_line": 468, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "ConstValue", "parent_class": null, "start_line": 470, "end_line": 497, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirInstruction", "parent_class": null, "start_line": 499, "end_line": 541, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } }, { "name": "ConstValue", "parent_class": null, "start_line": 543, "end_line": 554, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "fmt::Display" } } ], "functions": [ { "name": "effects", "start_line": 313, "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": { "modifiers": "pub", "type": "function" } }, { "name": "dst_value", "start_line": 367, "end_line": 404, "parameters": [ "&self" ], "is_async": false, "is_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": 407, "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", "modifiers": "pub" } }, { "name": "closure", "start_line": 432, "end_line": 432, "parameters": [], "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": 450, "end_line": 450, "parameters": [], "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": 500, "end_line": 540, "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": 544, "end_line": 553, "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": 561, "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": "function" } }, { "name": "test_binop_instruction", "start_line": 574, "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": "function" } }, { "name": "test_call_instruction", "start_line": 589, "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_ref_new_instruction", "start_line": 621, "end_line": 629, "parameters": [], "is_async": 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": 632, "end_line": 642, "parameters": [], "is_async": 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": 645, "end_line": 655, "parameters": [], "is_async": 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": 658, "end_line": 666, "parameters": [], "is_async": 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": 669, "end_line": 678, "parameters": [], "is_async": 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": 681, "end_line": 695, "parameters": [], "is_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": 558, "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": 16, "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": 253, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 257, "end_line": 264, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "BinaryOp", "full_name": "", "start_line": 268, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "UnaryOp", "full_name": "", "start_line": 281, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "CompareOp", "full_name": "", "start_line": 294, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirType", "full_name": "", "start_line": 300, "end_line": 309, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstruction", "full_name": "", "start_line": 311, "end_line": 468, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "effects", "full_name": "", "start_line": 313, "end_line": 364, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dst_value", "full_name": "", "start_line": 367, "end_line": 404, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "used_values", "full_name": "", "start_line": 407, "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": 436, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 470, "end_line": 497, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirInstruction", "full_name": "", "start_line": 499, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 500, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 521, "end_line": 529, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 532, "end_line": 536, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "ConstValue", "full_name": "", "start_line": 543, "end_line": 554, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 544, "end_line": 553, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 558, "end_line": 558, "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": 561, "end_line": 571, "start_column": 0, "end_column": 0, "depth": 3, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 563, "end_line": 566, "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": 574, "end_line": 586, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 575, "end_line": 575, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 577, "end_line": 577, "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": 581, "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": 589, "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": 590, "end_line": 590, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 591, "end_line": 591, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 592, "end_line": 592, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 593, "end_line": 593, "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": 600, "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": 621, "end_line": 629, "start_column": 0, "end_column": 0, "depth": 3, "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 }, { "type": "variable", "name": "", "full_name": "", "start_line": 623, "end_line": 623, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_ref_get_instruction", "full_name": "", "start_line": 632, "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": 633, "end_line": 633, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 634, "end_line": 634, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 635, "end_line": 635, "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": "function", "name": "test_ref_set_instruction", "full_name": "", "start_line": 645, "end_line": 655, "start_column": 0, "end_column": 0, "depth": 3, "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": "variable", "name": "", "full_name": "", "start_line": 648, "end_line": 648, "start_column": 0, "end_column": 0, "depth": 5, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_weak_new_instruction", "full_name": "", "start_line": 658, "end_line": 666, "start_column": 0, "end_column": 0, "depth": 3, "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": 661, "end_line": 661, "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": 669, "end_line": 678, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 670, "end_line": 670, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 671, "end_line": 671, "start_column": 0, "end_column": 0, "depth": 5, "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": "function", "name": "test_barrier_instructions", "full_name": "", "start_line": 681, "end_line": 695, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 682, "end_line": 682, "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": 690, "end_line": 690, "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": 11, "node_type_counts": { "import": 3, "class": 10, "file_root": 1, "variable": 33, "if_statement": 2, "function": 14 }, "classes": 10, "functions": 14, "methods": 0, "variables": 33, "control_structures": 2 }, "generated_at": "2025-08-13T11:36:21.767096321Z" }, { "file_info": { "name": "mod.rs", "path": "src/mir/mod.rs", "size_bytes": 0, "total_lines": 206, "code_lines": 159, "comment_lines": 16, "empty_lines": 31, "code_ratio": 0.7718446601941747, "analyzed_at": "2025-08-13T11:36:21.767022846Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MirCompileResult", "parent_class": null, "start_line": 29, "end_line": 32, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MirCompiler", "parent_class": null, "start_line": 35, "end_line": 38, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "MirCompiler", "parent_class": null, "start_line": 40, "end_line": 67, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirCompiler", "parent_class": null, "start_line": 69, "end_line": 73, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Default", "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 42, "end_line": 47, "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", "start_line": 50, "end_line": 61, "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": 64, "end_line": 66, "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": { "modifiers": "pub", "type": "function" } }, { "name": "default", "start_line": 70, "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": "function" } }, { "name": "test_basic_mir_compilation", "start_line": 81, "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": "test_mir_dump", "start_line": 99, "end_line": 112, "parameters": [], "is_async": 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": 115, "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": "function" } }, { "name": "test_loop_compilation", "start_line": 136, "end_line": 163, "parameters": [], "is_async": 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": 166, "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": "function" } } ], "imports": [ { "type": "rust_use", "module_path": "instruction::{MirInstruction, BinaryOp, CompareOp, UnaryOp, ConstValue, MirType}", "imported_names": [], "alias": null, "line_number": 18, "metadata": {} }, { "type": "rust_use", "module_path": "basic_block::{BasicBlock, BasicBlockId, BasicBlockIdGenerator}", "imported_names": [], "alias": null, "line_number": 19, "metadata": {} }, { "type": "rust_use", "module_path": "function::{MirFunction, MirModule, FunctionSignature}", "imported_names": [], "alias": null, "line_number": 20, "metadata": {} }, { "type": "rust_use", "module_path": "builder::MirBuilder", "imported_names": [], "alias": null, "line_number": 21, "metadata": {} }, { "type": "rust_use", "module_path": "verification::{MirVerifier, VerificationError}", "imported_names": [], "alias": null, "line_number": 22, "metadata": {} }, { "type": "rust_use", "module_path": "printer::MirPrinter", "imported_names": [], "alias": null, "line_number": 23, "metadata": {} }, { "type": "rust_use", "module_path": "value_id::{ValueId, LocalId, ValueIdGenerator}", "imported_names": [], "alias": null, "line_number": 24, "metadata": {} }, { "type": "rust_use", "module_path": "effect::{EffectMask, Effect}", "imported_names": [], "alias": null, "line_number": 25, "metadata": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 77, "metadata": {} }, { "type": "rust_use", "module_path": "crate::ast::{ASTNode, LiteralValue}", "imported_names": [], "alias": null, "line_number": 78, "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": 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": 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": 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": "class", "name": "MirCompileResult", "full_name": "", "start_line": 29, "end_line": 32, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirCompiler", "full_name": "", "start_line": 35, "end_line": 38, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirCompiler", "full_name": "", "start_line": 40, "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": 42, "end_line": 47, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "compile", "full_name": "", "start_line": 50, "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": 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": 55, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "dump_mir", "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": "MirCompiler", "full_name": "", "start_line": 69, "end_line": 73, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 70, "end_line": 72, "start_column": 0, "end_column": 0, "depth": 3, "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": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "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": "test_basic_mir_compilation", "full_name": "", "start_line": 81, "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": 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": 88, "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": 91, "start_column": 0, "end_column": 0, "depth": 5, "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": "function", "name": "test_mir_dump", "full_name": "", "start_line": 99, "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": 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": 102, "end_line": 105, "start_column": 0, "end_column": 0, "depth": 5, "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": "function", "name": "test_throw_compilation", "full_name": "", "start_line": 115, "end_line": 133, "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": 118, "end_line": 124, "start_column": 0, "end_column": 0, "depth": 5, "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": 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": "test_loop_compilation", "full_name": "", "start_line": 136, "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": 137, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 139, "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": 156, "end_line": 156, "start_column": 0, "end_column": 0, "depth": 5, "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": 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": "function", "name": "test_try_catch_compilation", "full_name": "", "start_line": 166, "end_line": 205, "start_column": 0, "end_column": 0, "depth": 3, "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": 169, "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": 199, "end_line": 199, "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": "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 49, "max_depth": 5, "node_type_counts": { "function": 9, "class": 4, "file_root": 1, "import": 10, "variable": 25 }, "classes": 4, "functions": 9, "methods": 0, "variables": 25, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.767035407Z" }, { "file_info": { "name": "printer.rs", "path": "src/mir/printer.rs", "size_bytes": 0, "total_lines": 417, "code_lines": 307, "comment_lines": 32, "empty_lines": 78, "code_ratio": 0.7362110311750599, "analyzed_at": "2025-08-13T11:36:21.767159839Z", "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": 366, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "MirPrinter", "parent_class": null, "start_line": 368, "end_line": 372, "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": 351, "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": "format_type", "start_line": 354, "end_line": 365, "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": 369, "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": "function" } }, { "name": "test_empty_module_printing", "start_line": 380, "end_line": 388, "parameters": [], "is_async": 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": 391, "end_line": 406, "parameters": [], "is_async": 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": 409, "end_line": 416, "parameters": [], "is_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": 376, "metadata": {} }, { "type": "rust_use", "module_path": "crate::mir::{MirModule, MirFunction, FunctionSignature, MirType, EffectMask, BasicBlockId}", "imported_names": [], "alias": null, "line_number": 377, "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": 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": 366, "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": 351, "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": "function", "name": "format_type", "full_name": "", "start_line": 354, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "MirPrinter", "full_name": "", "start_line": 368, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "default", "full_name": "", "start_line": 369, "end_line": 371, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 376, "end_line": 376, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 377, "end_line": 377, "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": 380, "end_line": 388, "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": "variable", "name": "", "full_name": "", "start_line": 382, "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": 384, "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": 391, "end_line": 406, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 392, "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": 399, "end_line": 399, "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": "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": "test_verbose_printing", "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": 413, "end_line": 413, "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": 16, "variable": 22, "class": 3, "file_root": 1, "function": 13, "for_loop": 5, "import": 4 }, "classes": 3, "functions": 13, "methods": 0, "variables": 22, "control_structures": 21 }, "generated_at": "2025-08-13T11:36:21.767191349Z" }, { "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-13T11:36:21.767154132Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ValueId", "parent_class": null, "start_line": 11, "end_line": 11, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": { "implementing_trait": "fmt::Display", "type": "impl" } }, { "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": { "modifiers": "pub", "type": "struct" } }, { "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": { "type": "impl", "implementing_trait": "Default" } }, { "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": { "implementing_trait": "Default", "type": "impl" } } ], "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "variable": 17, "function": 22, "file_root": 1, "class": 12, "import": 2 }, "classes": 12, "functions": 22, "methods": 0, "variables": 17, "control_structures": 0 }, "generated_at": "2025-08-13T11:36:21.767167671Z" }, { "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-13T11:36:21.766953929Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "VerificationError", "parent_class": null, "start_line": 12, "end_line": 51, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "MirVerifier", "parent_class": null, "start_line": 54, "end_line": 57, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "variable": 14, "function": 13, "for_loop": 16, "file_root": 1, "if_statement": 24, "class": 5, "import": 4 }, "classes": 5, "functions": 13, "methods": 0, "variables": 14, "control_structures": 40 }, "generated_at": "2025-08-13T11:36:21.766975555Z" }, { "file_info": { "name": "operator_traits.rs", "path": "src/operator_traits.rs", "size_bytes": 0, "total_lines": 373, "code_lines": 241, "comment_lines": 72, "empty_lines": 60, "code_ratio": 0.646112600536193, "analyzed_at": "2025-08-13T11:36:21.765373948Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashAdd", "parent_class": null, "start_line": 22, "end_line": 28, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "NyashSub", "parent_class": null, "start_line": 31, "end_line": 37, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "NyashMul", "parent_class": null, "start_line": 40, "end_line": 46, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "NyashDiv", "parent_class": null, "start_line": 49, "end_line": 55, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "DynamicAdd", "parent_class": null, "start_line": 61, "end_line": 68, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "DynamicSub", "parent_class": null, "start_line": 71, "end_line": 77, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "trait", "modifiers": "pub" } }, { "name": "DynamicMul", "parent_class": null, "start_line": 80, "end_line": 86, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "DynamicDiv", "parent_class": null, "start_line": 89, "end_line": 95, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "trait" } }, { "name": "OperatorResolver", "parent_class": null, "start_line": 101, "end_line": 101, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "OperatorResolver", "parent_class": null, "start_line": 103, "end_line": 251, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "OperatorError", "parent_class": null, "start_line": 257, "end_line": 273, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "OperatorError", "parent_class": null, "start_line": 275, "end_line": 291, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::fmt::Display" } }, { "name": "OperatorError", "parent_class": null, "start_line": 293, "end_line": 293, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "std::error::Error" } }, { "name": "OperatorSignature", "parent_class": null, "start_line": 299, "end_line": 304, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "OperatorSignature", "parent_class": null, "start_line": 306, "end_line": 338, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "resolve_add", "start_line": 105, "end_line": 143, "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_sub", "start_line": 146, "end_line": 174, "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": 177, "end_line": 211, "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": 214, "end_line": 250, "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": "fmt", "start_line": 276, "end_line": 290, "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": 314, "parameters": [ "left_type: &str", "right_type: &str", "output_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": "calculate_specificity", "start_line": 318, "end_line": 337, "parameters": [ "left_type: &str", "right_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": "test_operator_signature_specificity", "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" } }, { "name": "test_operator_error_display", "start_line": 361, "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" } } ], "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": {} }, { "type": "rust_use", "module_path": "super::*", "imported_names": [], "alias": null, "line_number": 342, "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": 9, "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": 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": 22, "end_line": 28, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashSub", "full_name": "", "start_line": 31, "end_line": 37, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashMul", "full_name": "", "start_line": 40, "end_line": 46, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashDiv", "full_name": "", "start_line": 49, "end_line": 55, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicAdd", "full_name": "", "start_line": 61, "end_line": 68, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicSub", "full_name": "", "start_line": 71, "end_line": 77, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicMul", "full_name": "", "start_line": 80, "end_line": 86, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "DynamicDiv", "full_name": "", "start_line": 89, "end_line": 95, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorResolver", "full_name": "", "start_line": 101, "end_line": 101, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorResolver", "full_name": "", "start_line": 103, "end_line": 251, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_add", "full_name": "", "start_line": 105, "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": 113, "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": 114, "end_line": 116, "start_column": 0, "end_column": 0, "depth": 9, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 120, "end_line": 122, "start_column": 0, "end_column": 0, "depth": 9, "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": 6, "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": "if_statement", "name": "", "full_name": "", "start_line": 131, "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": 132, "end_line": 134, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_sub", "full_name": "", "start_line": 146, "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": 151, "end_line": 155, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 152, "end_line": 154, "start_column": 0, "end_column": 0, "depth": 9, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 158, "end_line": 160, "start_column": 0, "end_column": 0, "depth": 9, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 164, "end_line": 166, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_mul", "full_name": "", "start_line": 177, "end_line": 211, "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": 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": 188, "end_line": 192, "start_column": 0, "end_column": 0, "depth": 6, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 194, "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": 195, "end_line": 197, "start_column": 0, "end_column": 0, "depth": 9, "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": "if_statement", "name": "", "full_name": "", "start_line": 201, "end_line": 203, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "resolve_div", "full_name": "", "start_line": 214, "end_line": 250, "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": 226, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 220, "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": 228, "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": 229, "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": 237, "end_line": 243, "start_column": 0, "end_column": 0, "depth": 6, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorError", "full_name": "", "start_line": 257, "end_line": 273, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorError", "full_name": "", "start_line": 275, "end_line": 291, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 276, "end_line": 290, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorError", "full_name": "", "start_line": 293, "end_line": 293, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorSignature", "full_name": "", "start_line": 299, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "OperatorSignature", "full_name": "", "start_line": 306, "end_line": 338, "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": 314, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "calculate_specificity", "full_name": "", "start_line": 318, "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": 320, "end_line": 320, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 323, "end_line": 325, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 327, "end_line": 329, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 332, "end_line": 334, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 342, "end_line": 342, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_operator_signature_specificity", "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": 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": "function", "name": "test_operator_error_display", "full_name": "", "start_line": 361, "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": 362, "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": 368, "end_line": 368, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 65, "max_depth": 9, "node_type_counts": { "import": 3, "function": 9, "if_statement": 31, "file_root": 1, "class": 15, "variable": 6 }, "classes": 15, "functions": 9, "methods": 0, "variables": 6, "control_structures": 31 }, "generated_at": "2025-08-13T11:36:21.765394650Z" }, { "file_info": { "name": "expressions.rs", "path": "src/parser/expressions.rs", "size_bytes": 0, "total_lines": 532, "code_lines": 422, "comment_lines": 37, "empty_lines": 73, "code_ratio": 0.793233082706767, "analyzed_at": "2025-08-13T11:36:21.768044407Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashParser", "parent_class": null, "start_line": 44, "end_line": 532, "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": 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": "parse_unary", "start_line": 197, "end_line": 228, "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": 231, "end_line": 311, "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": 314, "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": { "type": "function" } }, { "name": "parse_from_call", "start_line": 463, "end_line": 531, "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, 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": 532, "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": 194, "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": 191, "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": 182, "start_column": 0, "end_column": 0, "depth": 8, "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": "function", "name": "parse_unary", "full_name": "", "start_line": 197, "end_line": 228, "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": 206, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "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": 210, "end_line": 210, "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": 225, "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": "parse_call", "full_name": "", "start_line": 231, "end_line": 311, "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": "for_loop", "name": "", "full_name": "", "start_line": 234, "end_line": 308, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 235, "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": 238, "end_line": 283, "start_column": 0, "end_column": 0, "depth": 12, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 242, "end_line": 275, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 245, "end_line": 245, "start_column": 0, "end_column": 0, "depth": 17, "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": "for_loop", "name": "", "full_name": "", "start_line": 248, "end_line": 258, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 254, "end_line": 257, "start_column": 0, "end_column": 0, "depth": 21, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 284, "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": 286, "end_line": 304, "start_column": 0, "end_column": 0, "depth": 14, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 290, "end_line": 297, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 294, "end_line": 296, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_primary", "full_name": "", "start_line": 314, "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": 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": 326, "end_line": 326, "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": "if_statement", "name": "", "full_name": "", "start_line": 372, "end_line": 434, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 377, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 377, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 14, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 381, "end_line": 399, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 382, "end_line": 398, "start_column": 0, "end_column": 0, "depth": 20, "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": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 392, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 23, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 410, "end_line": 417, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 414, "end_line": 416, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 428, "end_line": 428, "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": 10, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 456, "end_line": 456, "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": 463, "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": 467, "end_line": 478, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 467, "end_line": 478, "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": "variable", "name": "", "full_name": "", "start_line": 472, "end_line": 472, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 484, "end_line": 506, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 499, "end_line": 499, "start_column": 0, "end_column": 0, "depth": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 510, "end_line": 510, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 512, "end_line": 521, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 517, "end_line": 520, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 93, "max_depth": 23, "node_type_counts": { "class": 1, "if_statement": 18, "import": 3, "file_root": 1, "function": 11, "variable": 47, "for_loop": 12 }, "classes": 1, "functions": 11, "methods": 0, "variables": 47, "control_structures": 30 }, "generated_at": "2025-08-13T11:36:21.768089689Z" }, { "file_info": { "name": "mod.rs", "path": "src/parser/mod.rs", "size_bytes": 0, "total_lines": 1461, "code_lines": 1107, "comment_lines": 137, "empty_lines": 217, "code_ratio": 0.757700205338809, "analyzed_at": "2025-08-13T11:36:21.768153344Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "ParseError", "parent_class": null, "start_line": 61, "end_line": 82, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "enum" } }, { "name": "NyashParser", "parent_class": null, "start_line": 85, "end_line": 92, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NyashParser", "parent_class": null, "start_line": 94, "end_line": 1460, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 96, "end_line": 103, "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": 106, "end_line": 108, "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": "parse_from_string_with_fuel", "start_line": 112, "end_line": 120, "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": 123, "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": "parse_program", "start_line": 130, "end_line": 157, "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": 161, "end_line": 612, "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": 615, "end_line": 710, "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": 713, "end_line": 733, "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": 737, "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_static_declaration", "start_line": 805, "end_line": 821, "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": 824, "end_line": 907, "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": 910, "end_line": 1183, "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": 1186, "end_line": 1215, "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": 1222, "end_line": 1228, "parameters": [ "&self" ], "is_async": 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": 1231, "end_line": 1237, "parameters": [ "&self" ], "is_async": 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": 1240, "end_line": 1244, "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": 1247, "end_line": 1255, "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": 1258, "end_line": 1273, "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": 1276, "end_line": 1279, "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": 1282, "end_line": 1285, "parameters": [ "&self" ], "is_async": 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": 1292, "end_line": 1300, "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": 1303, "end_line": 1356, "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": 1359, "end_line": 1373, "parameters": [ "&self" ], "is_async": 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": 1376, "end_line": 1409, "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": 1395, "end_line": 1395, "parameters": [], "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": 1414, "end_line": 1459, "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": 82, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashParser", "full_name": "", "start_line": 85, "end_line": 92, "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": 1460, "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": 103, "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": 106, "end_line": 108, "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": 112, "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": 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": 114, "start_column": 0, "end_column": 0, "depth": 5, "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": 118, "end_line": 118, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse", "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": "parse_program", "full_name": "", "start_line": 130, "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": 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": 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": 150, "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": 139, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 142, "end_line": 145, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_box_declaration", "full_name": "", "start_line": 161, "end_line": 612, "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": 175, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 164, "end_line": 175, "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": 8, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 178, "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": 178, "end_line": 206, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 182, "end_line": 200, "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": 199, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 187, "end_line": 191, "start_column": 0, "end_column": 0, "depth": 15, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 209, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 209, "end_line": 237, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 212, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 214, "end_line": 232, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 215, "end_line": 231, "start_column": 0, "end_column": 0, "depth": 12, "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": 15, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 240, "end_line": 268, "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": 268, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 245, "end_line": 263, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 246, "end_line": 262, "start_column": 0, "end_column": 0, "depth": 12, "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": 15, "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": 15, "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": "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": 277, "end_line": 277, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 279, "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": 283, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 288, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 293, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 12, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 301, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 301, "end_line": 306, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 308, "end_line": 326, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 310, "end_line": 312, "start_column": 0, "end_column": 0, "depth": 18, "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": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 322, "end_line": 322, "start_column": 0, "end_column": 0, "depth": 27, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 335, "end_line": 338, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 341, "end_line": 584, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 346, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 12, "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": 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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 359, "end_line": 370, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 362, "end_line": 365, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 367, "end_line": 369, "start_column": 0, "end_column": 0, "depth": 18, "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": "for_loop", "name": "", "full_name": "", "start_line": 376, "end_line": 381, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 378, "end_line": 380, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 385, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 14, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 401, "end_line": 584, "start_column": 0, "end_column": 0, "depth": 11, "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": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 406, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 408, "end_line": 414, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 418, "end_line": 418, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 419, "end_line": 430, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 422, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 427, "end_line": 429, "start_column": 0, "end_column": 0, "depth": 20, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 436, "end_line": 441, "start_column": 0, "end_column": 0, "depth": 17, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 438, "end_line": 440, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 445, "end_line": 452, "start_column": 0, "end_column": 0, "depth": 16, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 458, "end_line": 584, "start_column": 0, "end_column": 0, "depth": 13, "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": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 463, "end_line": 577, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 465, "end_line": 566, "start_column": 0, "end_column": 0, "depth": 19, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 467, "end_line": 473, "start_column": 0, "end_column": 0, "depth": 22, "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": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 478, "end_line": 489, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 481, "end_line": 484, "start_column": 0, "end_column": 0, "depth": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 486, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 25, "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": 21, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 495, "end_line": 500, "start_column": 0, "end_column": 0, "depth": 22, "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": 25, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 504, "end_line": 511, "start_column": 0, "end_column": 0, "depth": 21, "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": 21, "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": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 521, "end_line": 541, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 524, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 26, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 528, "end_line": 531, "start_column": 0, "end_column": 0, "depth": 29, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 532, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 28, "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": 30, "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": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 547, "end_line": 552, "start_column": 0, "end_column": 0, "depth": 23, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 549, "end_line": 551, "start_column": 0, "end_column": 0, "depth": 26, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 556, "end_line": 563, "start_column": 0, "end_column": 0, "depth": 22, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 569, "end_line": 575, "start_column": 0, "end_column": 0, "depth": 20, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 581, "end_line": 581, "start_column": 0, "end_column": 0, "depth": 16, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 592, "end_line": 594, "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": 615, "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": 619, "end_line": 630, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 619, "end_line": 630, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 620, "end_line": 620, "start_column": 0, "end_column": 0, "depth": 8, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 635, "end_line": 635, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 637, "end_line": 691, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 639, "end_line": 690, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 640, "end_line": 640, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 644, "end_line": 682, "start_column": 0, "end_column": 0, "depth": 12, "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": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 648, "end_line": 657, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 649, "end_line": 652, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 654, "end_line": 656, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 662, "end_line": 669, "start_column": 0, "end_column": 0, "depth": 14, "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": 15, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_global_var", "full_name": "", "start_line": 713, "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": 716, "end_line": 727, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 716, "end_line": 727, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 721, "end_line": 721, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 730, "end_line": 730, "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": 737, "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": 741, "end_line": 752, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 741, "end_line": 752, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 742, "end_line": 742, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 746, "end_line": 746, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 756, "end_line": 756, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 758, "end_line": 776, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 761, "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": 765, "end_line": 767, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 768, "end_line": 775, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 769, "end_line": 769, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 784, "end_line": 784, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 785, "end_line": 790, "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": "function", "name": "parse_static_declaration", "full_name": "", "start_line": 805, "end_line": 821, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 813, "end_line": 813, "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": 824, "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": 828, "end_line": 857, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 828, "end_line": 857, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 829, "end_line": 829, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 833, "end_line": 847, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 836, "end_line": 846, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 840, "end_line": 840, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 851, "end_line": 851, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 861, "end_line": 861, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 863, "end_line": 881, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 866, "end_line": 880, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 870, "end_line": 872, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 873, "end_line": 880, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 874, "end_line": 874, "start_column": 0, "end_column": 0, "depth": 13, "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": "for_loop", "name": "", "full_name": "", "start_line": 890, "end_line": 895, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 892, "end_line": 894, "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": 910, "end_line": 1183, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 913, "end_line": 924, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 913, "end_line": 924, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 914, "end_line": 914, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 918, "end_line": 918, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 927, "end_line": 955, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 927, "end_line": 955, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 929, "end_line": 929, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 931, "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": 932, "end_line": 948, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 936, "end_line": 940, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 942, "end_line": 942, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 958, "end_line": 986, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 958, "end_line": 986, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 961, "end_line": 961, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 963, "end_line": 981, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 964, "end_line": 980, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 968, "end_line": 972, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 974, "end_line": 974, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 989, "end_line": 1017, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 989, "end_line": 1017, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 992, "end_line": 992, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 994, "end_line": 1012, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 995, "end_line": 1011, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 999, "end_line": 1003, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1005, "end_line": 1005, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1022, "end_line": 1022, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1023, "end_line": 1023, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1024, "end_line": 1024, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1025, "end_line": 1025, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1026, "end_line": 1026, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1027, "end_line": 1027, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1029, "end_line": 1156, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1033, "end_line": 1035, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1038, "end_line": 1053, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1042, "end_line": 1042, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1043, "end_line": 1048, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1045, "end_line": 1047, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1056, "end_line": 1099, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1061, "end_line": 1095, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1064, "end_line": 1066, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1069, "end_line": 1074, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1069, "end_line": 1074, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1076, "end_line": 1094, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1078, "end_line": 1080, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1084, "end_line": 1086, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1090, "end_line": 1090, "start_column": 0, "end_column": 0, "depth": 27, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1101, "end_line": 1155, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1106, "end_line": 1148, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1110, "end_line": 1110, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1111, "end_line": 1120, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1112, "end_line": 1115, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1117, "end_line": 1119, "start_column": 0, "end_column": 0, "depth": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1125, "end_line": 1125, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1126, "end_line": 1131, "start_column": 0, "end_column": 0, "depth": 15, "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": 18, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1135, "end_line": 1142, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1161, "end_line": 1166, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1162, "end_line": 1162, "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": 1186, "end_line": 1215, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1189, "end_line": 1189, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1192, "end_line": 1214, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1207, "end_line": 1207, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "current_token", "full_name": "", "start_line": 1222, "end_line": 1228, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "peek_token", "full_name": "", "start_line": 1231, "end_line": 1237, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1232, "end_line": 1236, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "advance", "full_name": "", "start_line": 1240, "end_line": 1244, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "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": "function", "name": "skip_newlines", "full_name": "", "start_line": 1247, "end_line": 1255, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1248, "end_line": 1248, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1249, "end_line": 1252, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1253, "end_line": 1254, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "consume", "full_name": "", "start_line": 1258, "end_line": 1273, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1260, "end_line": 1272, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1262, "end_line": 1262, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1266, "end_line": 1266, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "match_token", "full_name": "", "start_line": 1276, "end_line": 1279, "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": 1282, "end_line": 1285, "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": 1292, "end_line": 1300, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1293, "end_line": 1293, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1295, "end_line": 1297, "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": 1303, "end_line": 1356, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1307, "end_line": 1309, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1313, "end_line": 1315, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1330, "end_line": 1332, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1333, "end_line": 1337, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1334, "end_line": 1336, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1341, "end_line": 1343, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1346, "end_line": 1348, "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": 1359, "end_line": 1373, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1360, "end_line": 1360, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1361, "end_line": 1361, "start_column": 0, "end_column": 0, "depth": 5, "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": 1370, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1365, "end_line": 1369, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1366, "end_line": 1368, "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": 1376, "end_line": 1409, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1387, "end_line": 1404, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1388, "end_line": 1403, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1389, "end_line": 1402, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1390, "end_line": 1392, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1393, "end_line": 1402, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1395, "end_line": 1395, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec", "full_name": "", "start_line": 1396, "end_line": 1396, "start_column": 0, "end_column": 0, "depth": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1397, "end_line": 1397, "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": 1414, "end_line": 1459, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1415, "end_line": 1415, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 1418, "end_line": 1450, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1419, "end_line": 1449, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1420, "end_line": 1448, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 1427, "end_line": 1430, "start_column": 0, "end_column": 0, "depth": 14, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1432, "end_line": 1438, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1441, "end_line": 1447, "start_column": 0, "end_column": 0, "depth": 15, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 1453, "end_line": 1456, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 293, "max_depth": 30, "node_type_counts": { "file_root": 1, "import": 4, "function": 25, "variable": 113, "for_loop": 37, "if_statement": 110, "class": 3 }, "classes": 3, "functions": 25, "methods": 0, "variables": 113, "control_structures": 147 }, "generated_at": "2025-08-13T11:36:21.768276523Z" }, { "file_info": { "name": "statements.rs", "path": "src/parser/statements.rs", "size_bytes": 0, "total_lines": 458, "code_lines": 352, "comment_lines": 47, "empty_lines": 59, "code_ratio": 0.7685589519650655, "analyzed_at": "2025-08-13T11:36:21.769195447Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashParser", "parent_class": null, "start_line": 12, "end_line": 458, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "parse_statement", "start_line": 14, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_if", "start_line": 87, "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": { "modifiers": "pub(super)", "type": "function" } }, { "name": "parse_loop", "start_line": 138, "end_line": 162, "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": 165, "end_line": 168, "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": 171, "end_line": 184, "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": 187, "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", "modifiers": "pub(super)" } }, { "name": "parse_nowait", "start_line": 197, "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": { "type": "function", "modifiers": "pub(super)" } }, { "name": "parse_include", "start_line": 225, "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", "modifiers": "pub(super)" } }, { "name": "parse_local", "start_line": 245, "end_line": 303, "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": 306, "end_line": 347, "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": 350, "end_line": 440, "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_throw", "start_line": 443, "end_line": 447, "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_from_call_statement", "start_line": 450, "end_line": 457, "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": 13, "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": 458, "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": 84, "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": 81, "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": 10, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_if", "full_name": "", "start_line": 87, "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": 91, "end_line": 91, "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": "for_loop", "name": "", "full_name": "", "start_line": 96, "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": 98, "end_line": 100, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 105, "end_line": 127, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 105, "end_line": 127, "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": 124, "start_column": 0, "end_column": 0, "depth": 9, "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": 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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 116, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 13, "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": 16, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_loop", "full_name": "", "start_line": 138, "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": 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": 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": 154, "start_column": 0, "end_column": 0, "depth": 6, "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": "parse_break", "full_name": "", "start_line": 165, "end_line": 168, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_return", "full_name": "", "start_line": 171, "end_line": 184, "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": 181, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 175, "end_line": 181, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_print", "full_name": "", "start_line": 187, "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": 190, "end_line": 190, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_nowait", "full_name": "", "start_line": 197, "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": 201, "end_line": 212, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 201, "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": 202, "end_line": 202, "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": 206, "start_column": 0, "end_column": 0, "depth": 9, "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": "parse_include", "full_name": "", "start_line": 225, "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": 228, "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": 228, "end_line": 239, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_local", "full_name": "", "start_line": 245, "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": 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": "if_statement", "name": "", "full_name": "", "start_line": 252, "end_line": 302, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 257, "end_line": 294, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 272, "end_line": 287, "start_column": 0, "end_column": 0, "depth": 13, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 275, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 16, "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": 19, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_outbox", "full_name": "", "start_line": 306, "end_line": 347, "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": "if_statement", "name": "", "full_name": "", "start_line": 312, "end_line": 346, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 317, "end_line": 331, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 320, "end_line": 330, "start_column": 0, "end_column": 0, "depth": 12, "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": 15, "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": 8, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_try_catch", "full_name": "", "start_line": 350, "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": 354, "end_line": 354, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 355, "end_line": 360, "start_column": 0, "end_column": 0, "depth": 6, "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": 9, "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": "for_loop", "name": "", "full_name": "", "start_line": 367, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 372, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 372, "end_line": 378, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 381, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 381, "end_line": 392, "start_column": 0, "end_column": 0, "depth": 9, "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": 11, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 397, "end_line": 397, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 398, "end_line": 403, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 400, "end_line": 402, "start_column": 0, "end_column": 0, "depth": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 416, "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": 416, "end_line": 432, "start_column": 0, "end_column": 0, "depth": 6, "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": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 421, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 9, "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": 12, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parse_throw", "full_name": "", "start_line": 443, "end_line": 447, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 445, "end_line": 445, "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": 450, "end_line": 457, "start_column": 0, "end_column": 0, "depth": 3, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 84, "max_depth": 19, "node_type_counts": { "for_loop": 9, "if_statement": 19, "import": 3, "file_root": 1, "variable": 38, "function": 13, "class": 1 }, "classes": 1, "functions": 13, "methods": 0, "variables": 38, "control_structures": 28 }, "generated_at": "2025-08-13T11:36:21.769226382Z" }, { "file_info": { "name": "tokenizer.rs", "path": "src/tokenizer.rs", "size_bytes": 0, "total_lines": 623, "code_lines": 518, "comment_lines": 40, "empty_lines": 65, "code_ratio": 0.8314606741573034, "analyzed_at": "2025-08-13T11:36:21.766373457Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "TokenType", "parent_class": null, "start_line": 12, "end_line": 83, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "Token", "parent_class": null, "start_line": 87, "end_line": 91, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "Token", "parent_class": null, "start_line": 93, "end_line": 97, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TokenizeError", "parent_class": null, "start_line": 101, "end_line": 113, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "name": "NyashTokenizer", "parent_class": null, "start_line": 116, "end_line": 121, "methods": [], "properties": [], "member_variables": [], "metadata": { "modifiers": "pub", "type": "struct" } }, { "name": "NyashTokenizer", "parent_class": null, "start_line": 123, "end_line": 467, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } } ], "functions": [ { "name": "new", "start_line": 94, "end_line": 96, "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": 125, "end_line": 133, "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": 136, "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", "modifiers": "pub" } }, { "name": "tokenize_next", "start_line": 159, "end_line": 292, "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": 295, "end_line": 330, "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": 333, "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": "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": 357, "end_line": 357, "parameters": [], "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": 362, "end_line": 362, "parameters": [], "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": 367, "end_line": 417, "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": 420, "end_line": 427, "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": 430, "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": "current_char", "start_line": 441, "end_line": 443, "parameters": [ "&self" ], "is_async": 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": 446, "end_line": 448, "parameters": [ "&self" ], "is_async": 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": 451, "end_line": 461, "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": 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": "test_simple_tokens", "start_line": 476, "end_line": 488, "parameters": [], "is_async": 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": 491, "end_line": 500, "parameters": [], "is_async": 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": 503, "end_line": 520, "parameters": [], "is_async": 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": 523, "end_line": 540, "parameters": [], "is_async": 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": 543, "end_line": 554, "parameters": [], "is_async": 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": 557, "end_line": 581, "parameters": [], "is_async": 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": 575, "end_line": 575, "parameters": [], "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": 584, "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": "test_comments", "start_line": 595, "end_line": 606, "parameters": [], "is_async": 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": 604, "end_line": 604, "parameters": [], "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": 609, "end_line": 622, "parameters": [], "is_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": 473, "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": 83, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Token", "full_name": "", "start_line": 87, "end_line": 91, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "Token", "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": "new", "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": "TokenizeError", "full_name": "", "start_line": 101, "end_line": 113, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashTokenizer", "full_name": "", "start_line": 116, "end_line": 121, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "NyashTokenizer", "full_name": "", "start_line": 123, "end_line": 467, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 125, "end_line": 133, "start_column": 0, "end_column": 0, "depth": 3, "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": "function", "name": "tokenize", "full_name": "", "start_line": 136, "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": 137, "end_line": 137, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 139, "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": 143, "end_line": 145, "start_column": 0, "end_column": 0, "depth": 9, "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": "function", "name": "tokenize_next", "full_name": "", "start_line": 159, "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": 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": "variable", "name": "", "full_name": "", "start_line": 165, "end_line": 165, "start_column": 0, "end_column": 0, "depth": 10, "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": "function", "name": "read_string", "full_name": "", "start_line": 295, "end_line": 330, "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": "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": "for_loop", "name": "", "full_name": "", "start_line": 301, "end_line": 327, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 302, "end_line": 305, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 308, "end_line": 324, "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": 333, "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": 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": "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": "for_loop", "name": "", "full_name": "", "start_line": 339, "end_line": 351, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 340, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 343, "end_line": 350, "start_column": 0, "end_column": 0, "depth": 11, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 353, "end_line": 363, "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": 367, "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": 368, "end_line": 368, "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": 377, "start_column": 0, "end_column": 0, "depth": 6, "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": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "skip_line_comment", "full_name": "", "start_line": 420, "end_line": 427, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 421, "end_line": 426, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 422, "end_line": 424, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "skip_whitespace", "full_name": "", "start_line": 430, "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": 431, "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": 432, "end_line": 436, "start_column": 0, "end_column": 0, "depth": 9, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "current_char", "full_name": "", "start_line": 441, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "peek_char", "full_name": "", "start_line": 446, "end_line": 448, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "advance", "full_name": "", "start_line": 451, "end_line": 461, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 452, "end_line": 460, "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": 458, "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": 464, "end_line": 466, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "import", "name": "", "full_name": "", "start_line": 473, "end_line": 473, "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": 476, "end_line": 488, "start_column": 0, "end_column": 0, "depth": 3, "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": "function", "name": "test_string_literal", "full_name": "", "start_line": 491, "end_line": 500, "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": 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 }, { "type": "function", "name": "test_number_literal", "full_name": "", "start_line": 503, "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": 504, "end_line": 504, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 505, "end_line": 505, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_identifier", "full_name": "", "start_line": 523, "end_line": 540, "start_column": 0, "end_column": 0, "depth": 3, "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": "function", "name": "test_operators", "full_name": "", "start_line": 543, "end_line": 554, "start_column": 0, "end_column": 0, "depth": 3, "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": 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": "function", "name": "test_complex_code", "full_name": "", "start_line": 557, "end_line": 581, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 558, "end_line": 569, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 571, "end_line": 571, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 572, "end_line": 572, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 575, "end_line": 575, "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": 584, "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": 585, "end_line": 585, "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": "variable", "name": "", "full_name": "", "start_line": 587, "end_line": 587, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "test_comments", "full_name": "", "start_line": 595, "end_line": 606, "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": 598, "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": "variable", "name": "", "full_name": "", "start_line": 601, "end_line": 601, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "Vec<_>", "full_name": "", "start_line": 604, "end_line": 604, "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": 609, "end_line": 622, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 610, "end_line": 610, "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 } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 85, "max_depth": 11, "node_type_counts": { "function": 22, "import": 2, "class": 6, "variable": 37, "if_statement": 11, "for_loop": 6, "file_root": 1 }, "classes": 6, "functions": 22, "methods": 0, "variables": 37, "control_structures": 17 }, "generated_at": "2025-08-13T11:36:21.766410216Z" }, { "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-13T11:36:21.768251358Z", "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": { "implementing_trait": "Transport", "type": "impl" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "import": 4, "file_root": 1, "function": 8, "class": 4, "variable": 8, "if_statement": 1 }, "classes": 4, "functions": 8, "methods": 0, "variables": 8, "control_structures": 1 }, "generated_at": "2025-08-13T11:36:21.768259679Z" }, { "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-13T11:36:21.768534208Z", "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": { "modifiers": "pub", "type": "trait" } } ], "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-13T11:36:21.768537662Z" }, { "file_info": { "name": "type_box.rs", "path": "src/type_box.rs", "size_bytes": 0, "total_lines": 443, "code_lines": 304, "comment_lines": 60, "empty_lines": 79, "code_ratio": 0.6862302483069977, "analyzed_at": "2025-08-13T11:36:21.767053973Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "MethodSignature", "parent_class": null, "start_line": 16, "end_line": 22, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "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": { "type": "struct", "modifiers": "pub" } }, { "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": 258, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "NyashBox" } }, { "name": "TypeBox", "parent_class": null, "start_line": 260, "end_line": 280, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "BoxCore", "type": "impl" } }, { "name": "TypeBox", "parent_class": null, "start_line": 282, "end_line": 286, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "TypeRegistry", "parent_class": null, "start_line": 290, "end_line": 300, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TypeRegistry", "parent_class": null, "start_line": 302, "end_line": 400, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl" } }, { "name": "TypeBoxBuilder", "parent_class": null, "start_line": 403, "end_line": 405, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "struct", "modifiers": "pub" } }, { "name": "TypeBoxBuilder", "parent_class": null, "start_line": 407, "end_line": 443, "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": "box_id", "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": "parent_type_id", "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": "fmt_box", "start_line": 269, "end_line": 271, "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": 273, "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": { "type": "function" } }, { "name": "as_any_mut", "start_line": 277, "end_line": 279, "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": 283, "end_line": 285, "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": 304, "end_line": 314, "parameters": [], "is_async": false, "is_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": 317, "end_line": 324, "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": 327, "end_line": 340, "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": 343, "end_line": 345, "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": "is_compatible", "start_line": 348, "end_line": 358, "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": { "modifiers": "pub", "type": "function" } }, { "name": "get_all_type_names", "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": "instantiate_generic", "start_line": 366, "end_line": 399, "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": { "modifiers": "pub", "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": "closure", "start_line": 389, "end_line": 389, "parameters": [], "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": 409, "end_line": 413, "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": 416, "end_line": 419, "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": 422, "end_line": 425, "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": 428, "end_line": 431, "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": 434, "end_line": 437, "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": 440, "end_line": 442, "parameters": [ "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, 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": 49, "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": 258, "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": "class", "name": "TypeBox", "full_name": "", "start_line": 260, "end_line": 280, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "box_id", "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": "parent_type_id", "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": "fmt_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": "as_any", "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": "as_any_mut", "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": "TypeBox", "full_name": "", "start_line": 282, "end_line": 286, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "fmt", "full_name": "", "start_line": 283, "end_line": 285, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeRegistry", "full_name": "", "start_line": 290, "end_line": 300, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeRegistry", "full_name": "", "start_line": 302, "end_line": 400, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 304, "end_line": 314, "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": 309, "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": 317, "end_line": 324, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "register_type", "full_name": "", "start_line": 327, "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": 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": 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": 332, "end_line": 332, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 333, "end_line": 336, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_type", "full_name": "", "start_line": 343, "end_line": 345, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "is_compatible", "full_name": "", "start_line": 348, "end_line": 358, "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": 351, "start_column": 0, "end_column": 0, "depth": 6, "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": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "get_all_type_names", "full_name": "", "start_line": 361, "end_line": 363, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "instantiate_generic", "full_name": "", "start_line": 366, "end_line": 399, "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": 368, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 370, "end_line": 372, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "if_statement", "name": "", "full_name": "", "start_line": 374, "end_line": 379, "start_column": 0, "end_column": 0, "depth": 6, "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": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "for_loop", "name": "", "full_name": "", "start_line": 387, "end_line": 391, "start_column": 0, "end_column": 0, "depth": 6, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 388, "end_line": 389, "start_column": 0, "end_column": 0, "depth": 8, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "variable", "name": "", "full_name": "", "start_line": 393, "end_line": 393, "start_column": 0, "end_column": 0, "depth": 5, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBoxBuilder", "full_name": "", "start_line": 403, "end_line": 405, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "class", "name": "TypeBoxBuilder", "full_name": "", "start_line": 407, "end_line": 443, "start_column": 0, "end_column": 0, "depth": 1, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "new", "full_name": "", "start_line": 409, "end_line": 413, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "field", "full_name": "", "start_line": 416, "end_line": 419, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "method", "full_name": "", "start_line": 422, "end_line": 425, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "parent", "full_name": "", "start_line": 428, "end_line": 431, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "type_param", "full_name": "", "start_line": 434, "end_line": 437, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null }, { "type": "function", "name": "build", "full_name": "", "start_line": 440, "end_line": 442, "start_column": 0, "end_column": 0, "depth": 3, "scope_path": "", "children": [], "attributes": {}, "source_text": null } ], "attributes": {}, "source_text": null }, "ast_statistics": { "total_nodes": 89, "max_depth": 9, "node_type_counts": { "file_root": 1, "function": 44, "if_statement": 13, "for_loop": 2, "import": 5, "class": 11, "variable": 13 }, "classes": 11, "functions": 44, "methods": 0, "variables": 13, "control_structures": 15 }, "generated_at": "2025-08-13T11:36:21.767078989Z" }, { "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-13T11:36:21.767000561Z", "metadata": {} }, "language": "rust", "classes": [ { "name": "NyashValue", "parent_class": null, "start_line": 17, "end_line": 37, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "enum", "modifiers": "pub" } }, { "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": { "implementing_trait": "PartialEq", "type": "impl" } }, { "name": "NyashValue", "parent_class": null, "start_line": 285, "end_line": 289, "methods": [], "properties": [], "member_variables": [], "metadata": { "implementing_trait": "Display", "type": "impl" } }, { "name": "NyashValue", "parent_class": null, "start_line": 291, "end_line": 312, "methods": [], "properties": [], "member_variables": [], "metadata": { "type": "impl", "implementing_trait": "Debug" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "modifiers": "pub", "type": "function" } }, { "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": { "type": "function", "modifiers": "pub" } }, { "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, "class": 7, "import": 11, "function": 34, "variable": 29, "if_statement": 14 }, "classes": 7, "functions": 34, "methods": 0, "variables": 29, "control_structures": 14 }, "generated_at": "2025-08-13T11:36:21.767034472Z" } ], "combined_ast_stats": { "total_nodes": 5636, "max_depth": 30, "node_type_counts": { "function": 1564, "class": 506, "if_statement": 1251, "file_root": 85, "variable": 1549, "for_loop": 223, "import": 458 }, "classes": 506, "functions": 1564, "methods": 0, "variables": 1549, "control_structures": 1474 } }