1 viewer
rust 1,859,748 · typescript 235,215 · javascript 132,932 · python 20,426 · 6,405 files · digest 3ddca2872e6e · built in 1.4 s · crystals off
crates/cre8-code-graph/src/scan.rs
Items
struct FileScan struct UseEntry struct ItemScan struct Metrics enum CallSite struct FnScan struct Walker struct FnContext impl Walker struct BodyVisitor impl BodyVisitor impl Visit for BodyVisitor const SAMPLE
Functions
By call-graph weight (PageRank; 1.0 is the average function). 36 functions in all.
| function | kind | lines | cyclomatic | callers | callees | weight | crystal |
|---|---|---|---|---|---|---|---|
| scan_sourcesrc/scan.rs:93 | fn | 25 | 3 | 6 | 3 | 3 | |
| count_linessrc/scan.rs:135 | fn | 24 | 7 | 4 | 0 | 2.3 | |
| BodyVisitor::entersrc/scan.rs:496 | method | 4 | 1 | 5 | 0 | 1.5 | |
| BodyVisitor::leavesrc/scan.rs:501 | method | 3 | 1 | 5 | 0 | 1.5 | |
| count_identssrc/scan.rs:119 | fn | 13 | 4 | 1 | 0 | 1.4 | |
| line_startssrc/scan.rs:160 | fn | 5 | 1 | 1 | 0 | 1.4 | |
| path_segmentssrc/scan.rs:474 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| starts_uppersrc/scan.rs:478 | fn | 3 | 1 | 2 | 0 | 0.9 | |
| byte_offsetsrc/scan.rs:168 | fn | 4 | 1 | 1 | 0 | 0.6 | |
| Walker::itemssrc/scan.rs:192 | method | 105 | 26 | 1 | 7 | 0.6 | |
| attribute_flagssrc/scan.rs:390 | fn | 13 | 5 | 1 | 0 | 0.6 | |
| Walker::itemsrc/scan.rs:298 | method | 10 | 1 | 1 | 1 | 0.6 | |
| Walker::functionsrc/scan.rs:309 | method | 79 | 18 | 1 | 4 | 0.6 | |
| has_cfg_testsrc/scan.rs:404 | fn | 6 | 2 | 1 | 1 | 0.6 | |
| is_pubsrc/scan.rs:411 | fn | 3 | 1 | 1 | 0 | 0.6 | |
| type_namesrc/scan.rs:415 | fn | 22 | 11 | 1 | 0 | 0.6 | |
| flatten_usesrc/scan.rs:438 | fn | 35 | 9 | 1 | 0 | 0.6 | |
| BodyVisitor::visit_itemsrc/scan.rs:507 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| BodyVisitor::visit_pat_identsrc/scan.rs:512 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| BodyVisitor::visit_stmtsrc/scan.rs:517 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| BodyVisitor::visit_expr_ifsrc/scan.rs:522 | trait impl | 18 | 3 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_expr_matchsrc/scan.rs:541 | trait impl | 15 | 3 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_expr_whilesrc/scan.rs:557 | trait impl | 7 | 1 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_expr_for_loopsrc/scan.rs:565 | trait impl | 8 | 1 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_expr_loopsrc/scan.rs:574 | trait impl | 5 | 1 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_expr_binarysrc/scan.rs:580 | trait impl | 6 | 2 | 0 | 0 | 0.5 | |
| BodyVisitor::visit_expr_trysrc/scan.rs:587 | trait impl | 4 | 1 | 0 | 0 | 0.5 | |
| BodyVisitor::visit_expr_callsrc/scan.rs:592 | trait impl | 19 | 5 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_expr_method_callsrc/scan.rs:612 | trait impl | 5 | 1 | 0 | 0 | 0.5 | |
| BodyVisitor::visit_expr_pathsrc/scan.rs:618 | trait impl | 9 | 4 | 0 | 2 | 0.5 | |
| BodyVisitor::visit_macrosrc/scan.rs:628 | trait impl | 13 | 3 | 0 | 0 | 0.5 | |
| scans_functions_items_and_usessrc/scan.rs:683 | fn | 37 | 6 | 0 | 1 | 0.5 | |
| local_bindings_never_become_referencessrc/scan.rs:722 | fn | 7 | 3 | 0 | 1 | 0.5 | |
| constructors_are_not_callssrc/scan.rs:731 | fn | 4 | 1 | 0 | 1 | 0.5 | |
| parse_failures_are_reported_not_fatalsrc/scan.rs:737 | fn | 5 | 1 | 0 | 1 | 0.5 | |
| line_classessrc/scan.rs:744 | fn | 4 | 1 | 0 | 1 | 0.5 |
Source not readable from this process.