| { | |
| "ast": { | |
| "items": [ | |
| { | |
| "use": { | |
| "tree": { | |
| "path": { | |
| "ident": "regex", | |
| "tree": { | |
| "ident": "Regex" | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "fn": { | |
| "attrs": [ | |
| { | |
| "meta": { | |
| "name_value": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "doc" | |
| } | |
| ] | |
| }, | |
| "value": { | |
| "lit": { | |
| "str": "\" Cleans HTML tags from a string.\"" | |
| } | |
| } | |
| } | |
| }, | |
| "style": "outer" | |
| } | |
| ], | |
| "ident": "clean_html", | |
| "inputs": [ | |
| { | |
| "typed": { | |
| "pat": { | |
| "ident": { | |
| "ident": "text" | |
| } | |
| }, | |
| "ty": { | |
| "reference": { | |
| "elem": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "str" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| ], | |
| "output": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "String" | |
| } | |
| ] | |
| } | |
| }, | |
| "stmts": [ | |
| { | |
| "let": { | |
| "init": { | |
| "expr": { | |
| "method_call": { | |
| "args": [], | |
| "method": "unwrap", | |
| "receiver": { | |
| "call": { | |
| "args": [ | |
| { | |
| "lit": { | |
| "str": "\"<[^>]*>\"" | |
| } | |
| } | |
| ], | |
| "func": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "Regex" | |
| }, | |
| { | |
| "ident": "new" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| "pat": { | |
| "ident": { | |
| "ident": "html_tag_re" | |
| } | |
| } | |
| } | |
| }, | |
| { | |
| "expr": [ | |
| { | |
| "method_call": { | |
| "args": [], | |
| "method": "to_string", | |
| "receiver": { | |
| "method_call": { | |
| "args": [ | |
| { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "text" | |
| } | |
| ] | |
| } | |
| }, | |
| { | |
| "lit": { | |
| "str": "\"\"" | |
| } | |
| } | |
| ], | |
| "method": "replace_all", | |
| "receiver": { | |
| "path": { | |
| "segments": [ | |
| { | |
| "ident": "html_tag_re" | |
| } | |
| ] | |
| } | |
| } | |
| } | |
| } | |
| } | |
| }, | |
| false | |
| ] | |
| } | |
| ], | |
| "vis": "pub" | |
| } | |
| } | |
| ] | |
| }, | |
| "file_path": "src\\extractor\\model\\clean_html.rs", | |
| "summary": { | |
| "emoji_counts_in_strings": {}, | |
| "string_literals": [ | |
| "\" Cleans HTML tags from a string.\"", | |
| "\"<[^>]*>\"", | |
| "\"\"" | |
| ], | |
| "top_level_nodes": 1, | |
| "total_nodes": 55, | |
| "type_counts": { | |
| "args": 4, | |
| "attrs": 1, | |
| "call": 1, | |
| "elem": 1, | |
| "expr": 2, | |
| "fn": 1, | |
| "func": 1, | |
| "ident": 14, | |
| "init": 1, | |
| "inputs": 1, | |
| "items": 1, | |
| "let": 1, | |
| "lit": 3, | |
| "meta": 1, | |
| "method": 3, | |
| "method_call": 3, | |
| "name_value": 1, | |
| "output": 1, | |
| "pat": 2, | |
| "path": 7, | |
| "receiver": 3, | |
| "reference": 1, | |
| "segments": 6, | |
| "stmts": 1, | |
| "str": 3, | |
| "style": 1, | |
| "tree": 2, | |
| "ty": 1, | |
| "typed": 1, | |
| "use": 1, | |
| "value": 1, | |
| "vis": 1 | |
| }, | |
| "word_counts": { | |
| "a": 1, | |
| "cleans": 1, | |
| "from": 1, | |
| "html": 1, | |
| "string": 1, | |
| "tags": 1 | |
| }, | |
| "word_emoji_counts": {} | |
| }, | |
| "timestamp": 1751588227 | |
| } |