{ "ast": { "items": [ { "use": { "tree": { "path": { "ident": "dioxus", "tree": { "group": [ { "path": { "ident": "html", "tree": { "ident": "HasFileData" } } }, { "path": { "ident": "prelude", "tree": "*" } } ] } } } } }, { "use": { "tree": { "path": { "ident": "std", "tree": { "path": { "ident": "sync", "tree": { "ident": "Arc" } } } } } } }, { "use": { "tree": { "path": { "ident": "crate", "tree": { "path": { "ident": "extractor", "tree": { "path": { "ident": "components", "tree": { "path": { "ident": "dropzone", "tree": { "path": { "ident": "dioxus_elements", "tree": { "ident": "FileEngine" } } } } } } } } } } } } }, { "fn": { "attrs": [ { "meta": { "path": { "segments": [ { "ident": "component" } ] } }, "style": "outer" } ], "ident": "DropZone", "inputs": [ { "typed": { "pat": { "ident": { "ident": "hovered" } }, "ty": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "ident": "bool" } ] } } } ] } }, "ident": "Signal" } ] } } } }, { "typed": { "pat": { "ident": { "ident": "read_files" } }, "ty": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "path": { "segments": [ { "arguments": { "angle_bracketed": { "args": [ { "type": { "trait_object": { "bounds": [ { "trait": { "path": { "segments": [ { "ident": "FileEngine" } ] } } } ], "dyn": true } } } ] } }, "ident": "Arc" } ] } } } ] } }, "ident": "EventHandler" } ] } } } } ], "output": { "path": { "segments": [ { "ident": "Element" } ] } }, "stmts": [ { "macro": { "delimiter": "brace", "path": { "segments": [ { "ident": "rsx" } ] }, "tokens": [ { "ident": "div" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "class" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "if" }, { "ident": "hovered" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "group": { "delimiter": "brace", "stream": [ { "lit": "\"upload-area drag-over\"" } ] } }, { "ident": "else" }, { "group": { "delimiter": "brace", "stream": [ { "lit": "\"upload-area\"" } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "ondragover" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "move" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "evt" }, { "punct": { "op": "|", "spacing": "alone" } }, { "group": { "delimiter": "brace", "stream": [ { "ident": "evt" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "prevent_default" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "punct": { "op": ";", "spacing": "alone" } }, { "ident": "hovered" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "set" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "true" } ] } }, { "punct": { "op": ";", "spacing": "alone" } } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "ondragleave" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "move" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "_" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "hovered" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "set" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "false" } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "ident": "ondrop" }, { "punct": { "op": ":", "spacing": "alone" } }, { "ident": "move" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "evt" }, { "punct": { "op": "|", "spacing": "alone" } }, { "ident": "async" }, { "ident": "move" }, { "group": { "delimiter": "brace", "stream": [ { "ident": "evt" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "prevent_default" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "punct": { "op": ";", "spacing": "alone" } }, { "ident": "hovered" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "set" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "false" } ] } }, { "punct": { "op": ";", "spacing": "alone" } }, { "ident": "if" }, { "ident": "let" }, { "ident": "Some" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "file_engine" } ] } }, { "punct": { "op": "=", "spacing": "alone" } }, { "ident": "evt" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "files" }, { "group": { "delimiter": "parenthesis", "stream": [] } }, { "group": { "delimiter": "brace", "stream": [ { "ident": "read_files" }, { "punct": { "op": ".", "spacing": "alone" } }, { "ident": "call" }, { "group": { "delimiter": "parenthesis", "stream": [ { "ident": "file_engine" } ] } }, { "punct": { "op": ";", "spacing": "alone" } } ] } } ] } }, { "punct": { "op": ",", "spacing": "alone" } }, { "lit": "\"🎯 Drop markdown files here or click above to select\"" } ] } } ] } } ], "vis": "pub" } } ] }, "file_path": "src\\extractor\\components\\dropzone.rs", "summary": { "emoji_counts_in_strings": { "🎯": 1 }, "string_literals": [ "\"upload-area drag-over\"", "\"upload-area\"", "\"🎯 Drop markdown files here or click above to select\"" ], "top_level_nodes": 1, "total_nodes": 204, "type_counts": { "angle_bracketed": 3, "args": 3, "arguments": 3, "attrs": 1, "bounds": 1, "delimiter": 16, "dyn": 1, "fn": 1, "group": 16, "ident": 64, "inputs": 1, "items": 1, "lit": 3, "macro": 1, "meta": 1, "op": 27, "output": 1, "pat": 2, "path": 18, "punct": 27, "segments": 8, "spacing": 27, "stmts": 1, "stream": 15, "style": 1, "tokens": 1, "trait": 1, "trait_object": 1, "tree": 13, "ty": 2, "type": 3, "typed": 2, "use": 3, "vis": 1 }, "word_counts": { "above": 1, "area": 2, "click": 1, "drag": 1, "drop": 1, "files": 1, "here": 1, "markdown": 1, "or": 1, "over": 1, "select": 1, "to": 1, "upload": 2 }, "word_emoji_counts": { "🔀": 1 } }, "timestamp": 1751588260 }