ligen-utils 0.1.18

Ligen (Language Interface Generator) is an extensible automatic binding generator ecosystem.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
use ligen_ir::{Import, Path, Library};
use crate::visitors::{ModuleVisitor, Visitor};

pub type ImportVisitor = Visitor<ModuleVisitor, Import>;

impl ImportVisitor {
    /// Returns the parent library.
    pub fn parent_library(&self) -> &Library {
        self.parent.parent_library()
    }

    pub fn find_absolute_path(&self) -> Option<Path> {
        self.parent.find_absolute_path(&self.current.path)
    }
}