{ "ast": { "items": [ { "use": { "tree": { "path": { "ident": "dioxus", "tree": { "group": [ { "path": { "ident": "html", "tree": { "group": [ { "ident": "FileEngine" }, { "ident": "HasFileData" } ] } } }, { "path": { "ident": "prelude", "tree": { "group": [ { "ident": "FormEvent" }, "*" ] } } } ] } } } } }, { "use": { "tree": { "path": { "ident": "std", "tree": { "group": [ { "path": { "ident": "pin", "tree": { "ident": "Pin" } } }, { "path": { "ident": "sync", "tree": { "ident": "Arc" } } } ] } } } } }, { "fn": { "generics": { "params": [ { "type": { "ident": "T" } } ] }, "ident": "create_upload_handler", "inputs": [ { "typed": { "pat": { "ident": { "ident": "read_files" } }, "ty": { "impl_trait": { "bounds": [ { "trait": { "path": { "segments": [ { "arguments": { "parenthesized": { "inputs": [ { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "trait_object": { "bounds": [ { "trait": { "path": { "segments": [ { "ident": "FileEngine" } ] } } } ], "dyn": true } } } ] } }, "ident": "Arc" } ] } } ], "output": { "path": { "segments": [ { "ident": "T" } ] } } } }, "ident": "Fn" } ] } } }, { "lifetime": "static" }, { "trait": { "path": { "segments": [ { "ident": "Clone" } ] } } } ] } } } } ], "output": { "impl_trait": { "bounds": [ { "trait": { "path": { "segments": [ { "arguments": { "parenthesized": { "inputs": [ { "path": { "segments": [ { "ident": "FormEvent" } ] } } ], "output": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "trait_object": { "bounds": [ { "trait": { "path": { "segments": [ { "ident": "std" }, { "ident": "future" }, { "arguments": { "angle_bracketed": { "args": [ { "assoc_type": { "ident": "Output", "ty": { "tuple": { "elems": [] } } } } ] } }, "ident": "Future" } ] } } } ], "dyn": true } } } ] } }, "ident": "Box" } ] } } } ] } }, "ident": "Pin" } ] } } } }, "ident": "Fn" } ] } } } ] } }, "stmts": [ { "let": { "init": { "expr": { "method_call": { "args": [], "method": "clone", "receiver": { "path": { "segments": [ { "ident": "read_files" } ] } } } } }, "pat": { "ident": { "ident": "read_files2" } } } }, { "expr": [ { "closure": { "body": { "block": { "stmts": [ { "expr": [ { "call": { "args": [ { "block": { "stmts": [ { "let": { "init": { "expr": { "method_call": { "args": [], "method": "clone", "receiver": { "path": { "segments": [ { "ident": "read_files2" } ] } } } } }, "pat": { "ident": { "ident": "value" } } } }, { "expr": [ { "async": { "move": true, "stmts": [ { "expr": [ { "if": { "cond": { "let": { "expr": { "method_call": { "args": [], "method": "files", "receiver": { "path": { "segments": [ { "ident": "evt" } ] } } } }, "pat": { "tuple_struct": { "elems": [ { "ident": { "ident": "file_engine" } } ], "path": { "segments": [ { "ident": "Some" } ] } } } } }, "then_branch": [ { "expr": [ { "call": { "args": [ { "path": { "segments": [ { "ident": "file_engine" } ] } } ], "func": { "path": { "segments": [ { "ident": "value" } ] } } } }, true ] } ] } }, false ] } ] } }, false ] } ] } } ], "func": { "path": { "segments": [ { "ident": "Box" }, { "ident": "pin" } ] } } } }, false ] } ] } }, "inputs": [ { "type": { "pat": { "ident": { "ident": "evt" } }, "ty": { "path": { "segments": [ { "ident": "FormEvent" } ] } } } } ], "move": true, "output": null } }, false ] } ], "vis": "pub" } }, { "fn": { "generics": { "params": [ { "type": { "ident": "T" } } ] }, "ident": "create_drop_handler", "inputs": [ { "typed": { "pat": { "ident": { "ident": "read_files" } }, "ty": { "impl_trait": { "bounds": [ { "trait": { "path": { "segments": [ { "arguments": { "parenthesized": { "inputs": [ { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "trait_object": { "bounds": [ { "trait": { "path": { "segments": [ { "ident": "FileEngine" } ] } } } ], "dyn": true } } } ] } }, "ident": "Arc" } ] } } ], "output": { "path": { "segments": [ { "ident": "T" } ] } } } }, "ident": "Fn" } ] } } }, { "lifetime": "static" }, { "trait": { "path": { "segments": [ { "ident": "Clone" } ] } } } ] } } } } ], "output": { "impl_trait": { "bounds": [ { "trait": { "path": { "segments": [ { "arguments": { "parenthesized": { "inputs": [ { "path": { "segments": [ { "ident": "DragEvent" } ] } } ], "output": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "trait_object": { "bounds": [ { "trait": { "path": { "segments": [ { "ident": "std" }, { "ident": "future" }, { "arguments": { "angle_bracketed": { "args": [ { "assoc_type": { "ident": "Output", "ty": { "tuple": { "elems": [] } } } } ] } }, "ident": "Future" } ] } } } ], "dyn": true } } } ] } }, "ident": "Box" } ] } } } ] } }, "ident": "Pin" } ] } } } }, "ident": "Fn" } ] } } } ] } }, "stmts": [ { "let": { "init": { "expr": { "method_call": { "args": [], "method": "clone", "receiver": { "path": { "segments": [ { "ident": "read_files" } ] } } } } }, "pat": { "ident": { "ident": "read_files2" } } } }, { "expr": [ { "closure": { "body": { "block": { "stmts": [ { "expr": [ { "call": { "args": [ { "block": { "stmts": [ { "let": { "init": { "expr": { "method_call": { "args": [], "method": "clone", "receiver": { "path": { "segments": [ { "ident": "read_files2" } ] } } } } }, "pat": { "ident": { "ident": "value" } } } }, { "expr": [ { "async": { "move": true, "stmts": [ { "expr": [ { "if": { "cond": { "let": { "expr": { "method_call": { "args": [], "method": "files", "receiver": { "path": { "segments": [ { "ident": "evt" } ] } } } }, "pat": { "tuple_struct": { "elems": [ { "ident": { "ident": "file_engine" } } ], "path": { "segments": [ { "ident": "Some" } ] } } } } }, "then_branch": [ { "expr": [ { "call": { "args": [ { "path": { "segments": [ { "ident": "file_engine" } ] } } ], "func": { "path": { "segments": [ { "ident": "value" } ] } } } }, true ] } ] } }, false ] } ] } }, false ] } ] } } ], "func": { "path": { "segments": [ { "ident": "Box" }, { "ident": "pin" } ] } } } }, false ] } ] } }, "inputs": [ { "type": { "pat": { "ident": { "ident": "evt" } }, "ty": { "path": { "segments": [ { "ident": "DragEvent" } ] } } } } ], "move": true, "output": null } }, false ] } ], "vis": "pub" } } ] }, "file_path": "src\\extractor\\model\\drag.rs", "summary": { "emoji_counts_in_strings": {}, "string_literals": [], "top_level_nodes": 1, "total_nodes": 312, "type_counts": { "angle_bracketed": 8, "args": 18, "arguments": 12, "assoc_type": 2, "async": 2, "block": 4, "body": 2, "bounds": 8, "call": 4, "closure": 2, "cond": 2, "dyn": 4, "elems": 4, "expr": 16, "fn": 2, "func": 4, "generics": 2, "group": 4, "ident": 79, "if": 2, "impl_trait": 4, "init": 4, "inputs": 8, "items": 1, "let": 6, "lifetime": 2, "method": 6, "method_call": 6, "move": 4, "output": 8, "params": 2, "parenthesized": 4, "pat": 10, "path": 42, "receiver": 6, "segments": 36, "stmts": 8, "then_branch": 2, "trait": 10, "trait_object": 4, "tree": 8, "tuple": 2, "tuple_struct": 2, "ty": 6, "type": 10, "typed": 2, "use": 2, "vis": 2 }, "word_counts": {}, "word_emoji_counts": {} }, "timestamp": 1751588211 }