Greg647465374's picture
shorten the files
41c095f
{
"ast": {
"items": [
{
"use": {
"tree": {
"path": {
"ident": "dioxus",
"tree": {
"path": {
"ident": "prelude",
"tree": "*"
}
}
}
}
}
},
{
"use": {
"tree": {
"path": {
"ident": "crate",
"tree": {
"path": {
"ident": "extractor",
"tree": {
"path": {
"ident": "types",
"tree": {
"ident": "ProcessingFile"
}
}
}
}
}
}
}
}
},
{
"fn": {
"attrs": [
{
"meta": {
"path": {
"segments": [
{
"ident": "component"
}
]
}
},
"style": "outer"
}
],
"ident": "ProcessingIndicator",
"inputs": [
{
"typed": {
"pat": {
"ident": {
"ident": "processing_file"
}
},
"ty": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"arguments": {
"angle_bracketed": {
"args": [
{
"type": {
"path": {
"segments": [
{
"ident": "ProcessingFile"
}
]
}
}
}
]
}
},
"ident": "Option"
}
]
}
}
}
]
}
},
"ident": "ReadOnlySignal"
}
]
}
}
}
}
],
"output": {
"path": {
"segments": [
{
"ident": "Element"
}
]
}
},
"stmts": [
{
"expr": [
{
"if": {
"cond": {
"let": {
"expr": {
"call": {
"args": [],
"func": {
"path": {
"segments": [
{
"ident": "processing_file"
}
]
}
}
}
},
"pat": {
"tuple_struct": {
"elems": [
{
"ident": {
"ident": "pf"
}
}
],
"path": {
"segments": [
{
"ident": "Some"
}
]
}
}
}
}
},
"else_branch": {
"block": {
"stmts": [
{
"macro": {
"delimiter": "brace",
"path": {
"segments": [
{
"ident": "rsx"
}
]
},
"tokens": []
}
}
]
}
},
"then_branch": [
{
"macro": {
"delimiter": "brace",
"path": {
"segments": [
{
"ident": "rsx"
}
]
},
"tokens": [
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "class"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"processing-indicator\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "h3"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"🔄 Processing: {pf.name}\""
}
]
}
},
{
"ident": "if"
},
{
"ident": "pf"
},
{
"punct": {
"op": ".",
"spacing": "alone"
}
},
{
"ident": "total_lines"
},
{
"punct": {
"op": ">",
"spacing": "alone"
}
},
{
"lit": "0"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"lit": "\"Progress: {pf.progress} / {pf.total_lines} lines ({((pf.progress as f32 / pf.total_lines as f32) * 100.0) as i32}%)\""
}
]
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "class"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"progress-bar\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "div"
},
{
"group": {
"delimiter": "brace",
"stream": [
{
"ident": "class"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"progress-fill\""
},
{
"punct": {
"op": ",",
"spacing": "alone"
}
},
{
"ident": "style"
},
{
"punct": {
"op": ":",
"spacing": "alone"
}
},
{
"lit": "\"width: {((pf.progress as f32 / pf.total_lines as f32) * 100.0)}%\""
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
}
]
}
},
false
]
}
],
"vis": "pub"
}
}
]
},
"file_path": "src\\extractor\\components\\progress.rs",
"summary": {
"emoji_counts_in_strings": {
"🔄": 1
},
"string_literals": [
"\"processing-indicator\"",
"\"🔄 Processing: {pf.name}\"",
"0",
"\"Progress: {pf.progress} / {pf.total_lines} lines ({((pf.progress as f32 / pf.total_lines as f32) * 100.0) as i32}%)\"",
"\"progress-bar\"",
"\"progress-fill\"",
"\"width: {((pf.progress as f32 / pf.total_lines as f32) * 100.0)}%\""
],
"top_level_nodes": 1,
"total_nodes": 119,
"type_counts": {
"angle_bracketed": 2,
"args": 3,
"arguments": 2,
"attrs": 1,
"block": 1,
"call": 1,
"cond": 1,
"delimiter": 8,
"elems": 1,
"else_branch": 1,
"expr": 2,
"fn": 1,
"func": 1,
"group": 6,
"ident": 32,
"if": 1,
"inputs": 1,
"items": 1,
"let": 1,
"lit": 7,
"macro": 2,
"meta": 1,
"op": 9,
"output": 1,
"pat": 2,
"path": 14,
"punct": 9,
"segments": 9,
"spacing": 9,
"stmts": 2,
"stream": 6,
"style": 1,
"then_branch": 1,
"tokens": 2,
"tree": 7,
"tuple_struct": 1,
"ty": 1,
"type": 2,
"typed": 1,
"use": 2,
"vis": 1
},
"word_counts": {
"0": 3,
"100": 2,
"as": 5,
"bar": 1,
"f32": 4,
"fill": 1,
"i32": 1,
"indicator": 1,
"lines": 1,
"name": 1,
"pf": 7,
"processing": 2,
"progress": 6,
"total_lines": 3,
"width": 1
},
"word_emoji_counts": {
"0️⃣": 3,
"💯": 2
}
},
"timestamp": 1751588261
}