Skip to main content

Module internal_function_used_once

Module internal_function_used_once 

Source

Re-exportsΒ§

use super::InternalFunctionUsedOnce; πŸ”’
use crate::linter::Lint; πŸ”’
use crate::linter::ProjectLintEmitter; πŸ”’
use crate::linter::ProjectLintPass; πŸ”’
use crate::linter::ProjectSource; πŸ”’
use crate::sol::Severity; πŸ”’
use crate::sol::SolLint; πŸ”’
use solar::interface::data_structures::Never; πŸ”’
use solar::interface::source_map::FileName; πŸ”’
use solar::sema::Gcx; πŸ”’
use solar::sema::hir; πŸ”’
use solar::sema::hir::Visit; πŸ”’
use std::collections::HashMap; πŸ”’
use std::collections::HashSet; πŸ”’
use std::ops::ControlFlow; πŸ”’

StructsΒ§

RefInfo πŸ”’
The references resolving to one function. Self-references are recorded apart rather than counted; first_from is None for a reference outside any function body.
ReferenceCounter πŸ”’
Counts, for every function of the unit, the expressions the type checker resolved to it, direct calls and value-position references alike.

StaticsΒ§

INTERNAL_FUNCTION_USED_ONCE

FunctionsΒ§

only_referenced_within_cycle πŸ”’
Whether a function’s single reference only enters it through a reference cycle: the chain of single-reference sources loops back on start itself. A loop closing on a later node is someone else’s cycle, and start hangs off it as an inlineable tail.