Trait hir::HasSource[][src]

pub trait HasSource {
    type Ast;
    fn source(self, db: &dyn HirDatabase) -> Option<InFile<Self::Ast>>;
}

Associated Types

Required methods

Fetches the definition’s source node. Using crate::Semantics::source is preferred when working with crate::Semantics, as that caches the parsed file in the semantics’ cache.

Implementors